Commit 18d6976b authored by KeYong's avatar KeYong

更新sql

parent 18ccbad9
...@@ -1082,9 +1082,9 @@ public class PlanTaskController extends AbstractBaseController { ...@@ -1082,9 +1082,9 @@ public class PlanTaskController extends AbstractBaseController {
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY) @TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@ApiOperation(value = "idx消防巡查报表调用", notes = "idx消防巡查报表调用") @ApiOperation(value = "idx消防巡查报表调用", notes = "idx消防巡查报表调用")
@RequestMapping(value = "/report/info", produces = "application/json;charset=UTF-8", method = RequestMethod.GET) @RequestMapping(value = "/report/info", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
public CommonResponse getPlanTaskInfoList(@ApiParam(value = "站编码") @RequestParam String bizOrgCode, public CommonResponse getPlanTaskInfoList(@ApiParam(value = "站编码") @RequestParam(required = false) String bizOrgCode,
@ApiParam(value = "开始日期", required = true) @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate, @ApiParam(value = "开始日期") @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date startDate,
@ApiParam(value = "结束日期", required = true) @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) { @ApiParam(value = "结束日期") @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endDate) {
try { try {
Map<String, Object> map = planTaskService.queryPatrolInfoList(bizOrgCode, startDate, endDate); Map<String, Object> map = planTaskService.queryPatrolInfoList(bizOrgCode, startDate, endDate);
return CommonResponseUtil.success(map); return CommonResponseUtil.success(map);
......
...@@ -1486,7 +1486,7 @@ ...@@ -1486,7 +1486,7 @@
LEFT JOIN p_route r ON r.id = pt.route_id LEFT JOIN p_route r ON r.id = pt.route_id
<where> <where>
<if test="bizOrgCode != null"> <if test="bizOrgCode != null">
pt.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%') p.biz_org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if> </if>
<if test="startDate != null"> <if test="startDate != null">
AND DATE_FORMAT(pt.end_time, '%Y-%m-%d') &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d') AND DATE_FORMAT(pt.end_time, '%Y-%m-%d') &gt;= DATE_FORMAT(#{startDate}, '%Y-%m-%d')
......
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