standRegionalTimeDto 字段与数据库字段匹配

This commit is contained in:
zhaokaiyao@91isoft.com
2021-09-09 10:59:26 +08:00
parent 1d915c30d2
commit 0cdf343a09
3 changed files with 7 additions and 8 deletions
@@ -26,10 +26,10 @@ public class StandRegionalTimeDto {
@ApiModelProperty(value = "在产车实施日期")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date ZCCSSRQ;
private Date zccssrq;
@ApiModelProperty(value = "新车型实施日期")
@DateTimeFormat(pattern="yyyy-MM-dd")
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
private Date XCXSSRQ;
private Date xcxssrq;
}
@@ -289,11 +289,10 @@ public class SarLawsAttrDetailedListServiceImpl extends ServiceImpl<SarLawsAttrD
private void dateTime(LinkedHashMap<String, List<String>> mapList, List<String> putTime, List<String> xcx, List<String> zcc, StandRegionalTimeDto s) {
//临时
if (s.getPutTime()!=null){
putTime.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getPutTime()));
}
xcx.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getXCXSSRQ()));
zcc.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getZCCSSRQ()));
putTime.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getPutTime()));
xcx.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getXcxssrq()));
zcc.add(new SimpleDateFormat("yyyy-MM-dd").format(s.getZccssrq()));
mapList.put("实施日期("+s.getCountry()+")",putTime);
mapList.put("新车型实施日期("+s.getCountry()+")",xcx);
mapList.put("在产车实施日期("+s.getCountry()+")",zcc);
@@ -156,7 +156,7 @@
<select id="selectTimes" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.StandRegionalTimeDto">
SELECT
b.country_area AS country,
a.ssrq AS ssrq,
a.ssrq AS putTime,
a.xcxssrq AS xcxssrq,
a.zccssrq AS zccssrq
FROM