Commit 05242cef authored by KeYong's avatar KeYong

更新巡检查询

parent 99494901
...@@ -417,7 +417,7 @@ public interface EquipFeignClient { ...@@ -417,7 +417,7 @@ public interface EquipFeignClient {
@RequestMapping(value = "equipSpecific/getListByEquipmentCodeEQ/{code}", method = RequestMethod.GET) @RequestMapping(value = "equipSpecific/getListByEquipmentCodeEQ/{code}", method = RequestMethod.GET)
ResponseModel<List<Map<String, Object>>> getListByEquipmentCodeEQ(@PathVariable("code") String code); ResponseModel<List<Map<String, Object>>> getListByEquipmentCodeEQ(@PathVariable("code") String code);
@RequestMapping(value = "equipSpecific/getListByEquipmentIds", method = RequestMethod.GET) @RequestMapping(value = "equipSpecific/list", method = RequestMethod.GET)
ResponseModel<List<Map<String, Object>>> getListByEquipmentSpesById(@RequestParam("ids") String ids, @RequestParam("type") String type); ResponseModel<List<Map<String, Object>>> getListByEquipmentSpesById(@RequestParam("ids") String ids, @RequestParam("type") String type);
} }
...@@ -37,7 +37,7 @@ public class ControlScreenController extends AbstractBaseController { ...@@ -37,7 +37,7 @@ public class ControlScreenController extends AbstractBaseController {
@GetMapping("/statics") @GetMapping("/statics")
@ApiOperation(value = "消防运维信息") @ApiOperation(value = "消防运维信息")
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
public CommonResponse getStatics(@RequestParam(required = false) String companyCode) { public CommonResponse getStatics(@RequestParam(required = false) String companyCode) {
return CommonResponseUtil.success(iPlanTaskService.getStatics(companyCode)); return CommonResponseUtil.success(iPlanTaskService.getStatics(companyCode));
} }
......
...@@ -2439,6 +2439,15 @@ ...@@ -2439,6 +2439,15 @@
ci.order_no ci.order_no
</select> </select>
<select id="getCheckId" resultType="String">
SELECT
ci.check_id AS checkId,
FROM
p_check_input ci
WHERE
ci.id = #{checkId}
</select>
<select id="getPointById" resultType="Map"> <select id="getPointById" resultType="Map">
SELECT SELECT
p.id, p.id,
......
...@@ -1371,11 +1371,11 @@ ...@@ -1371,11 +1371,11 @@
</if> </if>
UNION ALL UNION ALL
SELECT SELECT
'2' AS `key`,
ifnull( sum( ppk.`point_num` ), 0 ) AS `value`, ifnull( sum( ppk.`point_num` ), 0 ) AS `value`,
'' AS unit, '' AS unit,
'合格' AS `name`, '合格' AS `name`,
'xfxchg' AS code, 'xfxchg' AS code
'2' AS `key`
FROM FROM
`p_plan_task` ppk `p_plan_task` ppk
LEFT JOIN p_plan_task_detail pptd ON pptd.task_no = ppk.id LEFT JOIN p_plan_task_detail pptd ON pptd.task_no = ppk.id
...@@ -1386,26 +1386,25 @@ ...@@ -1386,26 +1386,25 @@
</if> </if>
UNION ALL UNION ALL
SELECT SELECT
'3' AS `key`,
'' AS `value`, '' AS `value`,
'%' AS unit, '%' AS unit,
'合格占比' AS `name`, '合格占比' AS `name`,
'xfxchgzb' AS code, 'xfxchgzb' AS code
'3' AS `key`
UNION ALL UNION ALL
SELECT SELECT
'4' AS `key`,
'' AS `value`, '' AS `value`,
'' AS unit, '' AS unit,
'不合格' AS `name`, '不合格' AS `name`,
'xfxcbhg' AS code, 'xfxcbhg' AS code
'4' AS `key`
UNION ALL UNION ALL
SELECT SELECT
'5' AS `key`,
ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`, ifnull( sum( `p_plan_task`.`point_num` ), 0 ) AS `value`,
'' AS unit, '' AS unit,
'今日漏查点位' AS `name`, '今日漏查点位' AS `name`,
'currentDayMiss' AS `indexKey`, 'xfxcjrlcdw' AS code
'xfxcjrlcdw' AS code,
'5' AS `key`
FROM FROM
`p_plan_task` `p_plan_task`
WHERE WHERE
...@@ -1416,11 +1415,11 @@ ...@@ -1416,11 +1415,11 @@
</if> </if>
UNION ALL UNION ALL
SELECT SELECT
'6' AS `key`,
'' AS `value`, '' AS `value`,
'' AS unit, '%' AS unit,
'漏查率' AS `name`, '漏查率' AS `name`,
'xfxclcl' AS code, 'xfxclcl' AS code
'6' AS `key`
</select> </select>
<select id="queryByCompanyCode" resultType="java.lang.String"> <select id="queryByCompanyCode" resultType="java.lang.String">
......
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