增加数量接口
parent
96ca1cf4a6
commit
e4ed586c3a
|
|
@ -32,6 +32,12 @@ public class AppFireCheckListController {
|
||||||
public PageResponse<FireCheckListCO> checkList(@RequestBody FireCheckListPageQry qry) {
|
public PageResponse<FireCheckListCO> checkList(@RequestBody FireCheckListPageQry qry) {
|
||||||
return fireCheckListService.appCheckList(qry);
|
return fireCheckListService.appCheckList(qry);
|
||||||
}
|
}
|
||||||
|
@ApiOperation("获取待排查数量")
|
||||||
|
@PostMapping("/checkListCount")
|
||||||
|
public SingleResponse<Integer> checkListCount(@RequestBody FireCheckListPageQry qry) {
|
||||||
|
return SingleResponse.of(fireCheckListService.checkListCount(qry));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation("开始检查-获取消防点检列表")
|
@ApiOperation("开始检查-获取消防点检列表")
|
||||||
@PostMapping("/getCheckPointList")
|
@PostMapping("/getCheckPointList")
|
||||||
|
|
|
||||||
|
|
@ -151,6 +151,16 @@ public class FireCheckListQueryExe {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public Integer checkListCount(FireCheckListPageQry qry) {
|
||||||
|
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
||||||
|
PageResponse<FireCheckListDO> pageResponse = fireCheckListRepository.appCheckList(params);
|
||||||
|
if (CollUtil.isEmpty(pageResponse.getData())) {
|
||||||
|
return 0;
|
||||||
|
}else{
|
||||||
|
return pageResponse.getTotalCount();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public PageResponse<RiskDistributionCO> riskDistribution(RiskDistributionPageQry qry) {
|
public PageResponse<RiskDistributionCO> riskDistribution(RiskDistributionPageQry qry) {
|
||||||
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
Map<String, Object> params = PageQueryHelper.toHashMap(qry);
|
||||||
|
|
@ -509,5 +519,7 @@ public class FireCheckListQueryExe {
|
||||||
throw new BizException(fireCheckStandardDOList1NameList + "无检查标准,无法检查");
|
throw new BizException(fireCheckStandardDOList1NameList + "无检查标准,无法检查");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -69,6 +69,11 @@ public class FireCheckListServiceImpl implements FireCheckListServiceI {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Integer checkListCount(FireCheckListPageQry qry) {
|
||||||
|
return fireCheckListQueryExe.checkListCount(qry);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public PageResponse<RiskDistributionCO> riskDistribution(RiskDistributionPageQry qry) {
|
public PageResponse<RiskDistributionCO> riskDistribution(RiskDistributionPageQry qry) {
|
||||||
return fireCheckListQueryExe.riskDistribution(qry);
|
return fireCheckListQueryExe.riskDistribution(qry);
|
||||||
|
|
|
||||||
|
|
@ -46,5 +46,7 @@ public interface FireCheckListServiceI {
|
||||||
PageResponse<FireCheckListCO> getCheckListRecord(CheckListRecordPageQry qry);
|
PageResponse<FireCheckListCO> getCheckListRecord(CheckListRecordPageQry qry);
|
||||||
|
|
||||||
void checkStandard(CheckPointListQry qry);
|
void checkStandard(CheckPointListQry qry);
|
||||||
|
|
||||||
|
Integer checkListCount(FireCheckListPageQry qry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue