添加显示字段

master
bynt 1 year ago
parent ca6a39f862
commit 67d6acc5d3

@ -139,7 +139,7 @@ public class CustomServiceImpl extends ExtendServiceImpl<CustomMapper, CustomEnt
customEntity.setType(3); customEntity.setType(3);
return SqlHelper.retBool(baseMapper.updateById(customEntity)); return SqlHelper.retBool(baseMapper.updateById(customEntity));
} }
Gson gson = new Gson(); Gson gson = new Gson();
AddressDTO address = new AddressDTO(); AddressDTO address = new AddressDTO();
List<ClueDTO> list = Lists.newArrayList(); List<ClueDTO> list = Lists.newArrayList();
BeanUtils.copyProperties(customEntity, address); BeanUtils.copyProperties(customEntity, address);

@ -4,6 +4,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data; import lombok.Data;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.util.Date;
import java.util.List; import java.util.List;
@Data @Data
@ -40,12 +41,18 @@ public class CustomVO {
@Schema(title = "半径") @Schema(title = "半径")
private String radius; private String radius;
@Schema(title = "录入时间")
private String enterName;
@Schema(title = "报名状态 0:待提交 1:已报名") @Schema(title = "报名状态 0:待提交 1:已报名")
private Integer enrollStatus; private Integer enrollStatus;
@Schema(title = "创建时间") @Schema(title = "创建时间")
private LocalDateTime createTime; private LocalDateTime createTime;
@Schema(description = "分发时间")
private Date distributeTime;
@Schema(title = "门店信息") @Schema(title = "门店信息")
private List<CustomStoreVO> customStoreVOList; private List<CustomStoreVO> customStoreVOList;
@ -55,6 +62,7 @@ public class CustomVO {
@Schema(description = "公司id") @Schema(description = "公司id")
private Long companyId; private Long companyId;
@Schema(title = "备注") @Schema(title = "备注")
private String remark; private String remark;
} }

@ -3,6 +3,7 @@
<mapper namespace="com.baiye.modules.distribute.mapper.CustomMapper"> <mapper namespace="com.baiye.modules.distribute.mapper.CustomMapper">
<sql id="Base_Alias_Column_List"> <sql id="Base_Alias_Column_List">
s.store_name, s.store_name,
cm.enter_name,
cm.custom_id, cm.custom_id,
cm.custom_name, cm.custom_name,
cm.custom_nid, cm.custom_nid,
@ -14,7 +15,8 @@
cm.batch_no, cm.batch_no,
cm.enroll_status, cm.enroll_status,
cm.remark, cm.remark,
cm.create_time cm.create_time,
cm.distribute_time
</sql> </sql>
<select id="selectByPage" resultType="com.baiye.modules.distribute.vo.CustomVO"> <select id="selectByPage" resultType="com.baiye.modules.distribute.vo.CustomVO">

Loading…
Cancel
Save