Commit 06ed62fc authored by KeYong's avatar KeYong

更新排序等bug

parent 501bcde4
...@@ -2,7 +2,9 @@ package com.yeejoin.amos.boot.module.jg.api.dto; ...@@ -2,7 +2,9 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -31,6 +33,7 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -31,6 +33,7 @@ public class JgTransferNoticeDto extends BaseDto {
private String applyNo; private String applyNo;
@ApiModelProperty(value = "告知日期") @ApiModelProperty(value = "告知日期")
@JsonFormat(pattern = "yyyy-MM-dd")
private Date noticeDate; private Date noticeDate;
@ApiModelProperty(value = "告知状态") @ApiModelProperty(value = "告知状态")
...@@ -58,6 +61,8 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -58,6 +61,8 @@ public class JgTransferNoticeDto extends BaseDto {
private String executeSequence; private String executeSequence;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonSerialize(using = BizCustomDateSerializer.class)
private Date createDate; private Date createDate;
@ApiModelProperty(value = "创建人id ") @ApiModelProperty(value = "创建人id ")
...@@ -73,6 +78,8 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -73,6 +78,8 @@ public class JgTransferNoticeDto extends BaseDto {
private String instanceStatus; private String instanceStatus;
@ApiModelProperty(value = "受理完成日期") @ApiModelProperty(value = "受理完成日期")
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonSerialize(using = BizCustomDateSerializer.class)
private Date acceptDate; private Date acceptDate;
@ApiModelProperty(value = "施工区域-省") @ApiModelProperty(value = "施工区域-省")
...@@ -183,6 +190,7 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -183,6 +190,7 @@ public class JgTransferNoticeDto extends BaseDto {
return (StringUtils.isEmpty(this.provinceName) ? "" : this.provinceName) return (StringUtils.isEmpty(this.provinceName) ? "" : this.provinceName)
+ (StringUtils.isEmpty(this.cityName) ? "" : this.cityName) + (StringUtils.isEmpty(this.cityName) ? "" : this.cityName)
+ (StringUtils.isEmpty(this.countyName) ? "" : this.countyName) + (StringUtils.isEmpty(this.countyName) ? "" : this.countyName)
+ (StringUtils.isEmpty(this.street) ? "" : this.street)
+ (StringUtils.isEmpty(this.address) ? "" : this.address); + (StringUtils.isEmpty(this.address) ? "" : this.address);
} }
...@@ -198,6 +206,8 @@ public class JgTransferNoticeDto extends BaseDto { ...@@ -198,6 +206,8 @@ public class JgTransferNoticeDto extends BaseDto {
private String equipCateName; private String equipCateName;
@ApiModelProperty(value = "办理日期") @ApiModelProperty(value = "办理日期")
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonSerialize(using = BizCustomDateSerializer.class)
private Date handleDate; private Date handleDate;
private String noticeReportUrl; private String noticeReportUrl;
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</if> </if>
</where> </where>
ORDER BY ORDER BY
tjtn.notice_date DESC tjtn.apply_no DESC
</select> </select>
<select id="queryEquipInformation" resultType="java.util.Map"> <select id="queryEquipInformation" resultType="java.util.Map">
...@@ -90,10 +90,10 @@ ...@@ -90,10 +90,10 @@
tjtn.city_name AS cityName, tjtn.city_name AS cityName,
tjtn.county_name AS countyName, tjtn.county_name AS countyName,
tjtn.promoter AS promoter, tjtn.promoter AS promoter,
tjtn.equ_register_code AS equRegisterCode,
tjtn.plan_date AS installStartDate, tjtn.plan_date AS installStartDate,
tjtn.construction_manager AS installLeaderName, tjtn.construction_manager AS installLeaderName,
tjtn.construction_manager_phone AS installLeaderPhone, tjtn.construction_manager_phone AS installLeaderPhone,
ri.equ_code AS equRegisterCode,
ri.equ_list AS equList, ri.equ_list AS equList,
ri.equ_category AS equCategory, ri.equ_category AS equCategory,
ri.EQU_DEFINE AS equDefine, ri.EQU_DEFINE AS equDefine,
......
...@@ -119,7 +119,6 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -119,7 +119,6 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
return null; return null;
} }
Map<String, Object> transferNotice = BeanUtil.beanToMap(notice); Map<String, Object> transferNotice = BeanUtil.beanToMap(notice);
transferNotice.put("province", notice.getProvince() + "_" + notice.getProvinceName()); transferNotice.put("province", notice.getProvince() + "_" + notice.getProvinceName());
transferNotice.put("city", notice.getCity() + "_" + notice.getCityName()); transferNotice.put("city", notice.getCity() + "_" + notice.getCityName());
transferNotice.put("county", notice.getCounty() + "_" + notice.getCountyName()); transferNotice.put("county", notice.getCounty() + "_" + notice.getCountyName());
...@@ -128,11 +127,12 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -128,11 +127,12 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
if(!ValidationUtil.isEmpty(notice.getFactoryUseSiteStreet()) && !ValidationUtil.isEmpty(notice.getStreetName())) { if(!ValidationUtil.isEmpty(notice.getFactoryUseSiteStreet()) && !ValidationUtil.isEmpty(notice.getStreetName())) {
transferNotice.put("factoryUseSiteStreet", notice.getFactoryUseSiteStreet() + "_" + notice.getStreetName()); transferNotice.put("factoryUseSiteStreet", notice.getFactoryUseSiteStreet() + "_" + notice.getStreetName());
} }
if(!ValidationUtil.isEmpty(notice.getConstructionManagerId()) && !ValidationUtil.isEmpty(notice.getConstructionManager())) {
transferNotice.put("constructionManagerId", notice.getConstructionManagerId() + "_" + notice.getConstructionManager());
}
String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard", String[] fields = {"productPhoto", "designDoc", "designStandard", "factoryStandard",
"productQualityYieldProve", "insUseMaintainExplain", "inspectReport", "productQualityYieldProve", "insUseMaintainExplain", "inspectReport",
"proxyStatementAttachment", "installContractAttachment", "powerOfAttorney", "constructionContract"}; "proxyStatementAttachment", "installContractAttachment", "powerOfAttorney", "constructionContract"};
// 设备信息 // 设备信息
List<Map<String, Object>> equipmentInfos = jgTransferNoticeMapper.queryEquipInformation(sequenceNbr); List<Map<String, Object>> equipmentInfos = jgTransferNoticeMapper.queryEquipInformation(sequenceNbr);
...@@ -201,7 +201,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto ...@@ -201,7 +201,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
placeholders.put("productName", getValue.apply("productName")); placeholders.put("productName", getValue.apply("productName"));
placeholders.put("equipType", getValue.apply("equType")); placeholders.put("equipType", getValue.apply("equType"));
placeholders.put("equipCode", getValue.apply("equRegisterCode")); placeholders.put("equipCode", getValue.apply("equRegisterCode"));
placeholders.put("produceCode", getValue.apply("produceCode")); // TODO: 制造编号 placeholders.put("produceCode", getValue.apply("factoryNum")); // TODO: 制造编号 - 设备出厂编号
placeholders.put("produceUnitName", getValue.apply("produceUnitName")); placeholders.put("produceUnitName", getValue.apply("produceUnitName"));
placeholders.put("produceLicenseNum", getValue.apply("produceLicenseNum")); placeholders.put("produceLicenseNum", getValue.apply("produceLicenseNum"));
placeholders.put("fullAddress", getValue.apply("provinceName") + getValue.apply("cityName") + getValue.apply("countyName") + getValue.apply("address")); placeholders.put("fullAddress", getValue.apply("provinceName") + getValue.apply("cityName") + getValue.apply("countyName") + getValue.apply("address"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment