Commit d127bea2 authored by KeYong's avatar KeYong

更新

parent dc51e9f2
...@@ -504,6 +504,13 @@ public class EquipmentSpecificController extends AbstractBaseController { ...@@ -504,6 +504,13 @@ public class EquipmentSpecificController extends AbstractBaseController {
return CommonResponseUtil.success(); return CommonResponseUtil.success();
} }
@GetMapping("/find/id")
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "查询泡沫系统指标", notes = "查询装备id")
public ResponseModel getEquipIdByCheckInputId(@RequestParam(value = "id") String id) {
return CommonResponseUtil.success(equipmentSpecificMapper.getEquipIdByCheckInputId(id));
}
@GetMapping("/find/one") @GetMapping("/find/one")
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@ApiOperation(httpMethod = "GET", value = "查询泡沫系统指标", notes = "查询泡沫系统指标") @ApiOperation(httpMethod = "GET", value = "查询泡沫系统指标", notes = "查询泡沫系统指标")
......
...@@ -294,4 +294,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> { ...@@ -294,4 +294,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
IPage<EquipTypeImgAmountVO> getMonitoringUnitList(@Param("page") IPage page,@Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage); IPage<EquipTypeImgAmountVO> getMonitoringUnitList(@Param("page") IPage page,@Param("equipTypeAmountPage") EquipTypeAmountPageDTO equipTypeAmountPage);
List<Map<String, Object >> getMonitoringCount(String bizOrgCode); List<Map<String, Object >> getMonitoringCount(String bizOrgCode);
String getEquipIdByCheckInputId(@Param(value = "id") String id);
} }
...@@ -2489,6 +2489,17 @@ ...@@ -2489,6 +2489,17 @@
where p.id = #{pointId} where p.id = #{pointId}
</select> </select>
<select id="getEquipIdByCheckInputId" resultType="String">
SELECT
ppc.equipment_id as equipId
FROM
p_check_input pci
LEFT JOIN p_point_classify ppc on pci.point_classify_id = ppc.id
WHERE
pci.id = #{id}
limit 1
</select>
<select id="getPatrolData" resultType="Map"> <select id="getPatrolData" resultType="Map">
SELECT SELECT
pp.id pointId, pp.id pointId,
......
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