bug: 体系搜索国内标准实施日期处理
This commit is contained in:
@@ -85,6 +85,11 @@ public class StandSystemDTO {
|
|||||||
@ApiModelProperty(value = "开始实施日期")
|
@ApiModelProperty(value = "开始实施日期")
|
||||||
private Date startImplementDate;
|
private Date startImplementDate;
|
||||||
|
|
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
|
@ApiModelProperty(value = "开始实施日期")
|
||||||
|
private String startImplementDateString;
|
||||||
|
|
||||||
@Excel(name = "实施日期", width = 25, orderNum = "5", exportFormat = "yyyy-MM-dd")
|
@Excel(name = "实施日期", width = 25, orderNum = "5", exportFormat = "yyyy-MM-dd")
|
||||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
@@ -96,6 +101,11 @@ public class StandSystemDTO {
|
|||||||
@ApiModelProperty(value = "结束实施日期")
|
@ApiModelProperty(value = "结束实施日期")
|
||||||
private Date endImplementDate;
|
private Date endImplementDate;
|
||||||
|
|
||||||
|
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||||
|
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||||
|
@ApiModelProperty(value = "结束实施日期")
|
||||||
|
private String endImplementDateString;
|
||||||
|
|
||||||
@Excel(name = "代替标准", width = 25, orderNum = "5")
|
@Excel(name = "代替标准", width = 25, orderNum = "5")
|
||||||
@ApiModelProperty(value = "代替标准")
|
@ApiModelProperty(value = "代替标准")
|
||||||
private String replaceStandardNo;
|
private String replaceStandardNo;
|
||||||
@@ -167,6 +177,22 @@ public class StandSystemDTO {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setStartImplementDate(Date startImplementDate) {
|
||||||
|
this.startImplementDate = startImplementDate;
|
||||||
|
if (startImplementDate != null) {
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
this.startImplementDateString = sdf.format(startImplementDate);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setEndImplementDate(Date endImplementDate) {
|
||||||
|
this.endImplementDate = endImplementDate;
|
||||||
|
if (endImplementDate != null) {
|
||||||
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
|
this.endImplementDateString = sdf.format(endImplementDate);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void setStandSystemId(String standSystemId) {
|
public void setStandSystemId(String standSystemId) {
|
||||||
this.standSystemId = standSystemId;
|
this.standSystemId = standSystemId;
|
||||||
if (StrUtil.isNotBlank(standSystemId)) {
|
if (StrUtil.isNotBlank(standSystemId)) {
|
||||||
|
|||||||
@@ -186,7 +186,10 @@
|
|||||||
WHEN gb.ISSUE_TIME = '' THEN NULL
|
WHEN gb.ISSUE_TIME = '' THEN NULL
|
||||||
ELSE gb.ISSUE_TIME
|
ELSE gb.ISSUE_TIME
|
||||||
END AS releaseDate,
|
END AS releaseDate,
|
||||||
gb.PUT_TIME AS implementDate,
|
CASE
|
||||||
|
WHEN gba.SSRQ = '' THEN NULL
|
||||||
|
ELSE gba.SSRQ
|
||||||
|
END AS implementDate,
|
||||||
gb.REPLACE_STAND_NUM AS replaceStandardNo,
|
gb.REPLACE_STAND_NUM AS replaceStandardNo,
|
||||||
gba.QCDW AS dept,
|
gba.QCDW AS dept,
|
||||||
gba.WSSMR AS draftUserName,
|
gba.WSSMR AS draftUserName,
|
||||||
@@ -231,11 +234,11 @@
|
|||||||
AND gb.ISSUE_TIME <= CONCAT(#{param.endReleaseDateString}, ' 23:59:59')
|
AND gb.ISSUE_TIME <= CONCAT(#{param.endReleaseDateString}, ' 23:59:59')
|
||||||
</if>
|
</if>
|
||||||
<!-- 实施日期 -->
|
<!-- 实施日期 -->
|
||||||
<if test="param.startImplementDate != null">
|
<if test="param.startImplementDateString != null and param.startImplementDateString != ''">
|
||||||
AND gb.PUT_TIME >= #{param.startImplementDate}
|
AND gba.SSRQ >= #{param.startImplementDateString}
|
||||||
</if>
|
</if>
|
||||||
<if test="param.endImplementDate != null">
|
<if test="param.endImplementDateString != null and param.endImplementDateString != '' ">
|
||||||
AND gb.PUT_TIME <= CONCAT(#{param.endImplementDate}, ' 23:59:59')
|
AND gba.SSRQ <= CONCAT(#{param.endImplementDateString}, ' 23:59:59')
|
||||||
</if>
|
</if>
|
||||||
<!--代替标准-->
|
<!--代替标准-->
|
||||||
<if test="param.replaceStandardNo != null and param.replaceStandardNo != ''">
|
<if test="param.replaceStandardNo != null and param.replaceStandardNo != ''">
|
||||||
|
|||||||
Reference in New Issue
Block a user