Commit 9ecdb420 by 杨林龙

新E盾 1.30 版本开发 修改里程统计

1 parent 2f95b04c
...@@ -77,7 +77,7 @@ public class MileageController { ...@@ -77,7 +77,7 @@ public class MileageController {
log.info("日里程详细报表导出===start"); log.info("日里程详细报表导出===start");
String fileName = "日里程统计(按日" + DateFormatUtils.format(new Date(), "yyyy-MM-dd") + ")表"; String fileName = "日里程统计(按日" + DateFormatUtils.format(new Date(), "yyyy-MM-dd") + ")表";
List<String> dateList = DateUtil.getStaticYMD(search.getMileageStartTime(), search.getMileageEndTime()); List<String> dateList = DateUtil.getStaticYMD(DateUtil.parseDate(search.getMileageStartTime()), DateUtil.parseDate(search.getMileageEndTime()));
List<List<String>> headList = new ArrayList<>(); List<List<String>> headList = new ArrayList<>();
headList.add(Lists.newArrayList("日里程报表")); headList.add(Lists.newArrayList("日里程报表"));
headList.add(dateList); headList.add(dateList);
......
...@@ -49,11 +49,11 @@ public class MileageSearch extends Page { ...@@ -49,11 +49,11 @@ public class MileageSearch extends Page {
* 里程开始时间 * 里程开始时间
*/ */
@ApiModelProperty("里程开始时间") @ApiModelProperty("里程开始时间")
private Date mileageStartTime; private String mileageStartTime;
/** /**
* 里程结束时间 * 里程结束时间
*/ */
@ApiModelProperty("里程结束时间") @ApiModelProperty("里程结束时间")
private Date mileageEndTime; private String mileageEndTime;
} }
...@@ -138,10 +138,10 @@ ...@@ -138,10 +138,10 @@
<if test="sn != null and sn!='' "> <if test="sn != null and sn!='' ">
and tefd.sn = #{sn} and tefd.sn = #{sn}
</if> </if>
<if test="mileageStartTime != null"> <if test="mileageStartTime != null and mileageStartTime != ''">
and tefd.journey_time &gt;= #{mileageStartTime} and tefd.journey_time &gt;= #{mileageStartTime}
</if> </if>
<if test="mileageEndTime != null"> <if test="mileageEndTime != null and mileageEndTime != ''">
and tefd.journey_end_time &lt;= #{mileageEndTime} and tefd.journey_end_time &lt;= #{mileageEndTime}
</if> </if>
</where> </where>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!