11 changed files with 258 additions and 87 deletions
@ -0,0 +1,93 @@ |
|||
package com.qs.serve.modules.bms.entity; |
|||
|
|||
import java.time.LocalDate; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* 客户大区 实体类 |
|||
* @author YenHex |
|||
* @since 2023-12-30 |
|||
*/ |
|||
@Data |
|||
@TableName("bms_supplier_com_region") |
|||
public class BmsSupplierComRegion implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** id */ |
|||
@TableId(type = IdType.AUTO) |
|||
private Long id; |
|||
|
|||
/** 大区编码 */ |
|||
@Length(max = 255,message = "大区编码长度不能超过255字") |
|||
private String regionCode; |
|||
|
|||
/** 大区名称 */ |
|||
@Length(max = 255,message = "大区名称长度不能超过255字") |
|||
private String regionName; |
|||
|
|||
/** 备注 */ |
|||
@Length(max = 255,message = "备注长度不能超过255字") |
|||
private String remark; |
|||
|
|||
/** 创建时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private LocalDateTime createTime; |
|||
|
|||
/** 最后更新时间 */ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
|||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private LocalDateTime updateTime; |
|||
|
|||
/** 所属租户 */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String tenantId; |
|||
|
|||
/** 逻辑删除标记(0:显示;1:隐藏) */ |
|||
@JsonIgnore |
|||
@JsonProperty |
|||
private String delFlag; |
|||
|
|||
/** 创建人 */ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String createBy; |
|||
|
|||
/** 更新人 */ |
|||
@TableField(fill = FieldFill.UPDATE) |
|||
private String updateBy; |
|||
|
|||
|
|||
public static BmsSupplierComRegion toNewObject(BmsSupplierComRegion source){ |
|||
BmsSupplierComRegion supplierComRegion = new BmsSupplierComRegion(); |
|||
supplierComRegion.setId(source.getId()); |
|||
supplierComRegion.setRegionCode(source.getRegionCode()); |
|||
supplierComRegion.setRegionName(source.getRegionName()); |
|||
supplierComRegion.setRemark(source.getRemark()); |
|||
supplierComRegion.setCreateTime(source.getCreateTime()); |
|||
supplierComRegion.setUpdateTime(source.getUpdateTime()); |
|||
supplierComRegion.setTenantId(source.getTenantId()); |
|||
supplierComRegion.setDelFlag(source.getDelFlag()); |
|||
supplierComRegion.setCreateBy(source.getCreateBy()); |
|||
supplierComRegion.setUpdateBy(source.getUpdateBy()); |
|||
return supplierComRegion; |
|||
} |
|||
|
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.qs.serve.modules.bms.mapper; |
|||
|
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import com.qs.serve.modules.bms.entity.BmsSupplierComRegion; |
|||
|
|||
/** |
|||
* 客户大区 Mapper |
|||
* @author YenHex |
|||
* @date 2023-12-30 |
|||
*/ |
|||
public interface BmsSupplierComRegionMapper extends BaseMapper<BmsSupplierComRegion> { |
|||
|
|||
} |
|||
|
@ -0,0 +1,35 @@ |
|||
package com.qs.serve.modules.vtb.entity.vo; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @author YenHex |
|||
* @since 2023/12/30 |
|||
*/ |
|||
@Data |
|||
public class VtbCostInfo { |
|||
|
|||
/** 费用申请金额 */ |
|||
BigDecimal costAmt; |
|||
|
|||
/** 费用已核销金额 */ |
|||
BigDecimal costUsedAmt; |
|||
|
|||
/** 活动申请金额 */ |
|||
BigDecimal activityAmt; |
|||
|
|||
/** 活动已核销金额 */ |
|||
BigDecimal activityUsedAmt; |
|||
|
|||
/** 活动释放金额 */ |
|||
BigDecimal activityReleaseAmt; |
|||
|
|||
/** 本次核销金额 */ |
|||
BigDecimal verificationAmt; |
|||
|
|||
/** 拓展:活动未核销金额(activityAmt-activityUsedAmt) */ |
|||
BigDecimal activityNotUsedAmt; |
|||
|
|||
} |
Loading…
Reference in new issue