Commit e8a01f8e538dfe439485cef23830f1859d3af0cb
1 parent
54b2bab7
app首页统计
Showing
2 changed files
with
1 additions
and
3 deletions
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/app/maininfo/AppMainInfoController.java
| ... | ... | @@ -60,7 +60,6 @@ public class AppMainInfoController { |
| 60 | 60 | @GetMapping("/get") |
| 61 | 61 | @Operation(summary = "获得工单信息") |
| 62 | 62 | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| 63 | - @PreAuthorize("@ss.hasPermission('workorder:main-info:query')") | |
| 64 | 63 | public CommonResult<AdminMainInfoRespVO> getMainInfo(@RequestParam("id") Long id) { |
| 65 | 64 | MainInfoDO mainInfo = mainInfoService.getMainInfo(id); |
| 66 | 65 | |
| ... | ... | @@ -101,7 +100,6 @@ public class AppMainInfoController { |
| 101 | 100 | |
| 102 | 101 | @GetMapping("/page") |
| 103 | 102 | @Operation(summary = "获得工单信息分页") |
| 104 | - @PreAuthorize("@ss.hasPermission('workorder:main-info:query')") | |
| 105 | 103 | public CommonResult<PageResult<AdminMainInfoRespVO>> getMainInfoPage(@Valid AppMainInfoPageReqVO pageReqVO) { |
| 106 | 104 | |
| 107 | 105 | PageResult<MainInfoDO> pageResult = mainInfoService.selectPageExcludeQuickOrder(pageReqVO); |
| ... | ... | @@ -111,7 +109,6 @@ public class AppMainInfoController { |
| 111 | 109 | |
| 112 | 110 | @GetMapping("/export-excel") |
| 113 | 111 | @Operation(summary = "导出工单信息 Excel") |
| 114 | - @PreAuthorize("@ss.hasPermission('workorder:main-info:export')") | |
| 115 | 112 | @ApiAccessLog(operateType = EXPORT) |
| 116 | 113 | public void exportMainInfoExcel(@Valid MainInfoPageReqVO pageReqVO, |
| 117 | 114 | HttpServletResponse response) throws IOException { | ... | ... |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/dal/mysql/maininfo/MainInfoMapper.java
| ... | ... | @@ -148,6 +148,7 @@ public interface MainInfoMapper extends BaseMapperX<MainInfoDO> { |
| 148 | 148 | // 不查询快速工单 → 订单类型 != "Q" |
| 149 | 149 | queryWrapper.ne(MainInfoDO::getOrderType, "Q"); |
| 150 | 150 | queryWrapper.eqIfPresent(MainInfoDO::getWorkerCompanyId, reqVO.getWorkerCompanyId()) |
| 151 | + .eqIfPresent(MainInfoDO::getCompanyId, reqVO.getCompanyId()) | |
| 151 | 152 | .likeIfPresent(MainInfoDO::getOrderNo, reqVO.getOrderNo()) |
| 152 | 153 | .likeIfPresent(MainInfoDO::getOrderName, reqVO.getOrderName()) |
| 153 | 154 | .eqIfPresent(MainInfoDO::getStatus, reqVO.getStatus()) | ... | ... |