修改权限
parent
a23a53788b
commit
91648e08dd
|
|
@ -41,7 +41,7 @@ public class FireCheckListController {
|
|||
|
||||
@ApiOperation("消防点检分页")
|
||||
@PostMapping("/list")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfdjb')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfdjb')")
|
||||
public PageResponse<FireCheckListCO> page(@RequestBody FireCheckListPageQry qry) {
|
||||
return fireCheckListService.listPage(qry);
|
||||
}
|
||||
|
|
@ -89,7 +89,7 @@ public class FireCheckListController {
|
|||
}
|
||||
@ApiOperation("PC端-点位检查记录分页")
|
||||
@PostMapping("/checkListRecordList")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('dwjcjl')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('dwjcjl')")
|
||||
public PageResponse<FireCheckListCO> checkListRecordList(@RequestBody FireCheckListRecordPageQry qry) {
|
||||
return fireCheckListService.checkListRecordList(qry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ public class FireCheckRecordController {
|
|||
|
||||
@ApiOperation("股份端-分公司消防检查记录")
|
||||
@PostMapping("/corpCheckRecordList")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('fgsxfjcjl')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('fgsxfjcjl')")
|
||||
public PageResponse<CorpCheckStatisticsCO> corpCheckRecordList(@RequestBody CorpStatisticsPageQry qry) {
|
||||
return fireCheckRecordService.corpCheckRecordList(qry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ public class FireCheckStandardController {
|
|||
|
||||
@ApiOperation("消防检查标准分页")
|
||||
@PostMapping("/list")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfqcjcbz')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfqcjcbz')")
|
||||
public PageResponse<FireCheckStandardCO> page(@RequestBody FireCheckStandardPageQry qry) {
|
||||
return fireCheckStandardService.listPage(qry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class FireDeviceController {
|
|||
|
||||
@ApiOperation("消防器材分页")
|
||||
@PostMapping("/list")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfqcgl')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfqcgl')")
|
||||
public PageResponse<FireDeviceCO> page(@RequestBody FireDevicePageQry qry) {
|
||||
return fireDeviceService.listPage(qry);
|
||||
}
|
||||
|
|
@ -95,13 +95,13 @@ public class FireDeviceController {
|
|||
|
||||
@ApiOperation("股份端-消防器材统计汇总首页分页")
|
||||
@PostMapping("/corpStatisticslist")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfqctjhz')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfqctjhz')")
|
||||
public PageResponse<CorpStatisticsCO> corpStatisticslist(@RequestBody CorpStatisticsPageQry qry) {
|
||||
return fireDeviceService.corpStatisticslist(qry);
|
||||
}
|
||||
@ApiOperation("股份端-消防器材统计汇总首页总数")
|
||||
@GetMapping("/corpStatisticsTotal")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfqctjhz')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfqctjhz')")
|
||||
public SingleResponse<RiskDistributionStasticCO> corpStatisticsTotal() {
|
||||
return SingleResponse.of(fireCheckListService.riskDistributionStatistic());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class FirePointController {
|
|||
|
||||
@ApiOperation("分页")
|
||||
@PostMapping("/list")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfdwwh')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfdwwh')")
|
||||
public PageResponse<FirePointCO> page(@RequestBody FirePointPageQry qry) {
|
||||
return firePointService.listPage(qry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ public class FireRegionController {
|
|||
|
||||
@ApiOperation("消防区域列表分页")
|
||||
@PostMapping("/list")
|
||||
// @PreAuthorize("@pms.hasAnyPermission('xfqywh')")
|
||||
@PreAuthorize("@pms.hasAnyPermission('xfqywh')")
|
||||
public PageResponse<FireRegionCO> page(@RequestBody FireRegionPageQry qry) {
|
||||
return fireRegionService.listPage(qry);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,15 @@
|
|||
<if test="params.likeCorpName != null and params.likeCorpName != ''">
|
||||
AND c.corp_name LIKE CONCAT('%',#{params.likeCorpName},'%')
|
||||
</if>
|
||||
<if test="params.eqUseFlag != null and params.eqUseFlag != ''">
|
||||
and c.use_flag = #{params.eqUseFlag}
|
||||
</if>
|
||||
<if test="params.inType != null ">
|
||||
and c.type in
|
||||
<foreach collection="params.inType" item="item" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
order by c.corp_order asc, c.create_time desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue