Commit 1fe08bb3 authored by suhuiguang's avatar suhuiguang

1.维保日历-测试

parent cfa26b9a
...@@ -295,11 +295,12 @@ public class CheckController extends AbstractBaseController { ...@@ -295,11 +295,12 @@ public class CheckController extends AbstractBaseController {
/** /**
* 获取巡检日历数据 * 获取巡检日历数据
* *
* @param queryRequests * @param date
* @return * @return
*/ */
@PersonIdentify
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "获取巡检日历数据-mobile", notes = "获取巡检日历数据-mobile") @ApiOperation(value = "维保日历-mobile", notes = "维保日历-mobile")
@GetMapping(value = "/{date}/checkCalendar", produces = "application/json;charset=UTF-8") @GetMapping(value = "/{date}/checkCalendar", produces = "application/json;charset=UTF-8")
public CommonResponse checkCalendar( public CommonResponse checkCalendar(
@ApiParam(value = "date,格式YYYY-MM-DD",required = true)@PathVariable String date) { @ApiParam(value = "date,格式YYYY-MM-DD",required = true)@PathVariable String date) {
......
...@@ -304,14 +304,14 @@ ...@@ -304,14 +304,14 @@
</sql> </sql>
<select id="calendarData" resultType="Map"> <select id="calendarData" resultType="Map">
SELECT SELECT
sum(is_ok) AS count, count(id) AS count,
DATE_FORMAT(check_time, '%Y-%m-%d') time, DATE_FORMAT(check_time, '%Y-%m-%d') time,
is_ok status is_ok status
FROM FROM
p_check p_check
<include refid="calendar-where"/> <include refid="calendar-where"/>
GROUP BY is_ok,time GROUP BY is_ok,time
ORDER BY time ORDER BY check_time
</select> </select>
......
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