客户添加备注

master
yqy 1 year ago
parent af44c4217c
commit f55cdbdb90

@ -17,7 +17,6 @@ public class CustomDTO {
@NotNull(message = "ID不能为空", groups = { UpdateGroup.class }) @NotNull(message = "ID不能为空", groups = { UpdateGroup.class })
private Long customId; private Long customId;
@Schema(title = "客户名称") @Schema(title = "客户名称")
@NotNull(message = "客户名称不能为空", groups = { CreateGroup.class }) @NotNull(message = "客户名称不能为空", groups = { CreateGroup.class })
private String customName; private String customName;
@ -35,7 +34,6 @@ public class CustomDTO {
private String market; private String market;
@Schema(title = "区") @Schema(title = "区")
@NotNull(message = "地址不能为空", groups = { CreateGroup.class })
private String distinguish; private String distinguish;
@Schema(title = "详细地址") @Schema(title = "详细地址")
@ -50,6 +48,9 @@ public class CustomDTO {
@NotNull(message = "状态不能为空", groups = { CreateGroup.class }) @NotNull(message = "状态不能为空", groups = { CreateGroup.class })
private Integer enrollStatus; private Integer enrollStatus;
@Schema(title = "备注")
private String remark;
@Schema(title = "门店信息") @Schema(title = "门店信息")
@NotEmpty(message = "门店信息不能为空", groups = { CreateGroup.class }) @NotEmpty(message = "门店信息不能为空", groups = { CreateGroup.class })
private List<CustomStoreEntity> customStoreEntities; private List<CustomStoreEntity> customStoreEntities;

@ -79,8 +79,6 @@ public class CustomEntity extends BaseEntity {
@Schema(description = "分发时间") @Schema(description = "分发时间")
private Date distributeTime; private Date distributeTime;
@Schema(title = "备注")
private String remark;
} }

@ -22,7 +22,7 @@ public interface CustomMapper extends ExtendMapper<CustomEntity> {
wrapperX.eqIfPresent(CustomEntity::getCreateBy, qo.getCreateBy()) wrapperX.eqIfPresent(CustomEntity::getCreateBy, qo.getCreateBy())
.likeIfPresent(CustomEntity::getCustomName, qo.getCustomName()) .likeIfPresent(CustomEntity::getCustomName, qo.getCustomName())
.likeIfPresent(CustomEntity::getBatchNo, qo.getBatchNo()) .likeIfPresent(CustomEntity::getBatchNo, qo.getBatchNo())
.eqIfPresent(CustomEntity::getCustomId,qo.getCompanyId()) .eqIfPresent(CustomEntity::getCompanyId,qo.getCompanyId())
.eqIfPresent(CustomEntity::getType,qo.getSalesmanType()) .eqIfPresent(CustomEntity::getType,qo.getSalesmanType())
.eqIfPresent(CustomEntity::getCustomNid, qo.getCustomNid()) .eqIfPresent(CustomEntity::getCustomNid, qo.getCustomNid())
.eqIfPresent(CustomEntity::getEnrollStatus, qo.getEnrollStatus()); .eqIfPresent(CustomEntity::getEnrollStatus, qo.getEnrollStatus());

@ -54,4 +54,7 @@ public class CustomVO {
@Schema(description = "公司id") @Schema(description = "公司id")
private Long companyId; private Long companyId;
@Schema(title = "备注")
private String remark;
} }

@ -13,11 +13,13 @@
cm.radius, cm.radius,
cm.batch_no, cm.batch_no,
cm.enroll_status, cm.enroll_status,
cm.remark,
cm.create_time cm.create_time
</sql> </sql>
<select id="selectByPage" resultType="com.baiye.modules.distribute.vo.CustomVO"> <select id="selectByPage" resultType="com.baiye.modules.distribute.vo.CustomVO">
SELECT SELECT
DISTINCT
<include refid="Base_Alias_Column_List"/> <include refid="Base_Alias_Column_List"/>
FROM FROM
tb_custom cm JOIN tb_custom_store s on cm.custom_id = s.custom_id tb_custom cm JOIN tb_custom_store s on cm.custom_id = s.custom_id
@ -26,7 +28,7 @@
<if test="storeId != null"> <if test="storeId != null">
and s.store_id = #{storeId,jdbcType=BIGINT} and s.store_id = #{storeId,jdbcType=BIGINT}
</if> </if>
order by cm.create_time desc order by cm.create_time desc, cm.custom_id desc
</select> </select>
<select id="selectMaxBatchNoByCompanyId" resultType="java.lang.String"> <select id="selectMaxBatchNoByCompanyId" resultType="java.lang.String">

Loading…
Cancel
Save