bug: 体系搜索国内标准实施日期处理
This commit is contained in:
@@ -85,6 +85,11 @@ public class StandSystemDTO {
|
||||
@ApiModelProperty(value = "开始实施日期")
|
||||
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")
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@@ -96,6 +101,11 @@ public class StandSystemDTO {
|
||||
@ApiModelProperty(value = "结束实施日期")
|
||||
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")
|
||||
@ApiModelProperty(value = "代替标准")
|
||||
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) {
|
||||
this.standSystemId = standSystemId;
|
||||
if (StrUtil.isNotBlank(standSystemId)) {
|
||||
|
||||
@@ -186,7 +186,10 @@
|
||||
WHEN gb.ISSUE_TIME = '' THEN NULL
|
||||
ELSE gb.ISSUE_TIME
|
||||
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,
|
||||
gba.QCDW AS dept,
|
||||
gba.WSSMR AS draftUserName,
|
||||
@@ -231,11 +234,11 @@
|
||||
AND gb.ISSUE_TIME <= CONCAT(#{param.endReleaseDateString}, ' 23:59:59')
|
||||
</if>
|
||||
<!-- 实施日期 -->
|
||||
<if test="param.startImplementDate != null">
|
||||
AND gb.PUT_TIME >= #{param.startImplementDate}
|
||||
<if test="param.startImplementDateString != null and param.startImplementDateString != ''">
|
||||
AND gba.SSRQ >= #{param.startImplementDateString}
|
||||
</if>
|
||||
<if test="param.endImplementDate != null">
|
||||
AND gb.PUT_TIME <= CONCAT(#{param.endImplementDate}, ' 23:59:59')
|
||||
<if test="param.endImplementDateString != null and param.endImplementDateString != '' ">
|
||||
AND gba.SSRQ <= CONCAT(#{param.endImplementDateString}, ' 23:59:59')
|
||||
</if>
|
||||
<!--代替标准-->
|
||||
<if test="param.replaceStandardNo != null and param.replaceStandardNo != ''">
|
||||
|
||||
Reference in New Issue
Block a user