Commit 72b62c4caeda0fd31b6bf1069903dd675ba427f2

Authored by wangqian
2 parents a806e764 8502855c

Merge branch 'dev'

sql/dis-check-menu.sql
@@ -32,7 +32,7 @@ DEALLOCATE PREPARE stmt; @@ -32,7 +32,7 @@ DEALLOCATE PREPARE stmt;
32 INSERT INTO system_menu 32 INSERT INTO system_menu
33 (name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted) 33 (name, permission, type, sort, parent_id, path, icon, component, component_name, status, visible, keep_alive, always_show, creator, create_time, updater, update_time, deleted)
34 VALUES 34 VALUES
35 -('dis核对', '', 2, 1, 5698, 'disCheck', 'ep:view', 'fence/dis-check/index', 'DisCheck', 0, 1, 0, 1, '1', NOW(), '1', NOW(), 0); 35 +('gis数据核对', '', 2, 1, 5698, 'disCheck', 'ep:view', 'fence/dis-check/index', 'DisCheck', 0, 1, 0, 1, '1', NOW(), '1', NOW(), 0);
36 36
37 -- 2. 获取上一步插入的菜单ID,用于后续按钮权限插入 37 -- 2. 获取上一步插入的菜单ID,用于后续按钮权限插入
38 SET @dis_check_menu_id = LAST_INSERT_ID(); 38 SET @dis_check_menu_id = LAST_INSERT_ID();
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/deviceuser/DeviceUserController.java
@@ -45,7 +45,7 @@ public class DeviceUserController { @@ -45,7 +45,7 @@ public class DeviceUserController {
45 return success(deviceUserService.createDeviceUser(createReqVO)); 45 return success(deviceUserService.createDeviceUser(createReqVO));
46 } 46 }
47 47
48 - @PutMapping("/update/device") 48 + @PostMapping("/update/device")
49 @Operation(summary = "更新设备用户关系") 49 @Operation(summary = "更新设备用户关系")
50 //@PreAuthorize("@ss.hasPermission('garden:device-user:update')") 50 //@PreAuthorize("@ss.hasPermission('garden:device-user:update')")
51 public CommonResult<Boolean> updateDevice(@Valid @RequestBody DeviceUserUpdateReqVO updateReqVO) { 51 public CommonResult<Boolean> updateDevice(@Valid @RequestBody DeviceUserUpdateReqVO updateReqVO) {
@@ -119,4 +119,4 @@ public class DeviceUserController { @@ -119,4 +119,4 @@ public class DeviceUserController {
119 119
120 120
121 121
122 -}  
123 \ No newline at end of file 122 \ No newline at end of file
  123 +}
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/controller/admin/gis/GisRoadController.java
@@ -67,7 +67,7 @@ public class GisRoadController { @@ -67,7 +67,7 @@ public class GisRoadController {
67 @PreAuthorize("@ss.hasPermission('garden:gis-road:export')") 67 @PreAuthorize("@ss.hasPermission('garden:gis-road:export')")
68 @ApiAccessLog(operateType = EXPORT) 68 @ApiAccessLog(operateType = EXPORT)
69 public void exportGisRoadExcel(@Valid GisRoadPageReqVO pageReqVO, 69 public void exportGisRoadExcel(@Valid GisRoadPageReqVO pageReqVO,
70 - HttpServletResponse response) throws IOException { 70 + HttpServletResponse response) throws IOException {
71 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); 71 pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
72 List<GisRoadRespVO> list = gisRoadService.getGisRoadPage(pageReqVO).getList(); 72 List<GisRoadRespVO> list = gisRoadService.getGisRoadPage(pageReqVO).getList();
73 List<GisRoadExportVO> exportList = new ArrayList<>(); 73 List<GisRoadExportVO> exportList = new ArrayList<>();
@@ -125,3 +125,5 @@ public class GisRoadController { @@ -125,3 +125,5 @@ public class GisRoadController {
125 } 125 }
126 126
127 } 127 }
  128 +
  129 +
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/homepage/HomepageSummaryServiceImpl.java
@@ -297,7 +297,7 @@ public class HomepageSummaryServiceImpl implements HomepageSummaryService{ @@ -297,7 +297,7 @@ public class HomepageSummaryServiceImpl implements HomepageSummaryService{
297 if ("1".equals(req.getQueryType())) { 297 if ("1".equals(req.getQueryType())) {
298 // 全域督察员查询自己发起的工单 298 // 全域督察员查询自己发起的工单
299 List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY); 299 List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY);
300 - if (CollectionUtils.isNotEmpty(userIds) && !userIds.contains(getLoginUserId())) { 300 + if (!userIds.contains(getLoginUserId())) {
301 userId = getLoginUserId(); 301 userId = getLoginUserId();
302 } 302 }
303 } 303 }
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/service/maininfo/MainInfoServiceImpl.java
@@ -118,7 +118,7 @@ public class MainInfoServiceImpl implements MainInfoService { @@ -118,7 +118,7 @@ public class MainInfoServiceImpl implements MainInfoService {
118 if ("1".equals(pageReqVO.getQueryType())) { 118 if ("1".equals(pageReqVO.getQueryType())) {
119 //全域督察员查询自己发起的工单 119 //全域督察员查询自己发起的工单
120 List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY); 120 List<Long> userIds = roleApi.getUserIdsByRoleCode(CommonConstants.INSPECTOR_ROLE_KEY);
121 - if (CollectionUtils.isNotEmpty(userIds) && !userIds.contains(getLoginUserId())) { 121 + if (userIds.contains(getLoginUserId())) {
122 pageReqVO.setUserId(getLoginUserId()); 122 pageReqVO.setUserId(getLoginUserId());
123 pageReqVO.setWorkerCompanyId(null); 123 pageReqVO.setWorkerCompanyId(null);
124 } 124 }