Commit 37fd1538 authored by lisong's avatar lisong

添加接口

parent aaa18bf6
...@@ -458,7 +458,7 @@ public class SupervisionConfigureController extends AbstractBaseController { ...@@ -458,7 +458,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
@RequestMapping(value = "/selectPressureMonth", method = RequestMethod.GET) @RequestMapping(value = "/selectPressureMonth", method = RequestMethod.GET)
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "统计当月稳压泵启停", produces = "application/json;charset=UTF-8", notes = "统计当月稳压泵启停") @ApiOperation(httpMethod = "GET", value = "统计当月稳压泵启停", produces = "application/json;charset=UTF-8", notes = "统计当月稳压泵启停")
public ResponseModel selectPressureMonth(@RequestParam("bizOrgCode") String bizOrgCode) { public ResponseModel selectPressureMonth(@RequestParam(value = "bizOrgCode", required = false) String bizOrgCode) {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd"); SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String startDay = df.format(new Date()); String startDay = df.format(new Date());
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
...@@ -523,4 +523,21 @@ public class SupervisionConfigureController extends AbstractBaseController { ...@@ -523,4 +523,21 @@ public class SupervisionConfigureController extends AbstractBaseController {
} }
return CommonResponseUtil.success(data); return CommonResponseUtil.success(data);
} }
@PersonIdentify
@RequestMapping(value = "/selectPressureDetails", method = RequestMethod.GET)
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "GET", value = "稳压泵详情", produces = "application/json;charset=UTF-8", notes = "稳压泵详情")
public ResponseModel selectPressureDetails(@RequestParam(value = "bizOrgCode", required = false) String bizOrgCode) {
ReginParams reginParams = getSelectedOrgInfo();
ReginParams.PersonIdentity personIdentity = reginParams.getPersonIdentity();
if (!ValidationUtil.isEmpty(personIdentity)) {
bizOrgCode = personIdentity.getBizOrgCode();
if (bizOrgCode == null) {
return CommonResponseUtil.success(null);
}
}
List<Map<String, Object>> pressurePumps = fireFightingSystemMapper.selectPressureDetails(bizOrgCode);
return CommonResponseUtil.success(pressurePumps);
}
} }
...@@ -643,4 +643,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE ...@@ -643,4 +643,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List<Map<String, Object>> selectAllDays(); List<Map<String, Object>> selectAllDays();
List<Map<String, Object>> getEquip(@Param("id") Long id); List<Map<String, Object>> getEquip(@Param("id") Long id);
List<Map<String, Object>> selectPressureDetails(@Param("bizOrgCode") String bizOrgCode);
} }
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