Commit 441f44f7743db0e3b51ba75b373b4c8cb19eaa40
1 parent
ced9e764
config(servers): 更新服务器配置中的域名地址
- 将 IoT 设备主机地址从 jichengshanshui.com.cn 更改为 fangshanparking.com - 更新应用配置中多个 API 接口的域名地址 - 修改 SSO 单点登录相关 URL 配置 - 更新微信公众号接口调用地址 - 替换资源服务器下载链接域名 - 修改生产环境社交登录回调地址 - 更新 UAA 认证服务器基础 URL - 替换 JustAuth 第三方认证源的授权地址
Showing
5 changed files
with
33 additions
and
12 deletions
urbanops-module-garden/src/main/resources/mapper/inspectionplan/InspectionPlanCommitMapper.xml
| @@ -102,7 +102,7 @@ | @@ -102,7 +102,7 @@ | ||
| 102 | </foreach> | 102 | </foreach> |
| 103 | </if> | 103 | </if> |
| 104 | 104 | ||
| 105 | - order by a.id desc | 105 | + order by a.create_time desc |
| 106 | </select> | 106 | </select> |
| 107 | 107 | ||
| 108 | <select id="appInspectionPlanCommitListByPlanNo" resultType="com.zteits.urbanops.module.garden.controller.app.inspectionplan.vo.AppInspectionPlanCommitRespVO"> | 108 | <select id="appInspectionPlanCommitListByPlanNo" resultType="com.zteits.urbanops.module.garden.controller.app.inspectionplan.vo.AppInspectionPlanCommitRespVO"> |
urbanops-module-garden/src/main/resources/mapper/maintainplan/MaintainPlanCommitMapper.xml
| @@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
| 94 | #{deptId} | 94 | #{deptId} |
| 95 | </foreach> | 95 | </foreach> |
| 96 | </if> | 96 | </if> |
| 97 | - order by c.id desc | 97 | + order by c.create_time desc |
| 98 | </select> | 98 | </select> |
| 99 | 99 | ||
| 100 | <select id="appMaintainPlanCommitDetailPage" resultMap="BaseResultMap"> | 100 | <select id="appMaintainPlanCommitDetailPage" resultMap="BaseResultMap"> |
urbanops-module-system/src/main/java/com/zteits/urbanops/module/system/controller/app/appmodule/AppAppModuleController.java
| @@ -44,6 +44,11 @@ public class AppAppModuleController { | @@ -44,6 +44,11 @@ public class AppAppModuleController { | ||
| 44 | * 园林巡查员角色ID | 44 | * 园林巡查员角色ID |
| 45 | */ | 45 | */ |
| 46 | private static final Long ROLE_ID_PATROL = 178L; | 46 | private static final Long ROLE_ID_PATROL = 178L; |
| 47 | + | ||
| 48 | + /** | ||
| 49 | + * 园林巡查员角色ID | ||
| 50 | + */ | ||
| 51 | + private static final Long ROLE_ID_PATROL_ZX = 202L; | ||
| 47 | /** | 52 | /** |
| 48 | * 全域督察员角色ID | 53 | * 全域督察员角色ID |
| 49 | */ | 54 | */ |
| @@ -64,28 +69,28 @@ public class AppAppModuleController { | @@ -64,28 +69,28 @@ public class AppAppModuleController { | ||
| 64 | public CommonResult<List<AppModuleVO>> getAppModuleList(AppModuleListReqVO reqVO) { | 69 | public CommonResult<List<AppModuleVO>> getAppModuleList(AppModuleListReqVO reqVO) { |
| 65 | // 获取当前登录用户ID | 70 | // 获取当前登录用户ID |
| 66 | Long userId = SecurityFrameworkUtils.getLoginUserId(); | 71 | Long userId = SecurityFrameworkUtils.getLoginUserId(); |
| 67 | - | 72 | + |
| 68 | // 查询用户可见的模块列表 | 73 | // 查询用户可见的模块列表 |
| 69 | List<AppModuleDO> list = appModuleService.getVisibleAppModuleList(userId, reqVO); | 74 | List<AppModuleDO> list = appModuleService.getVisibleAppModuleList(userId, reqVO); |
| 70 | - | 75 | + |
| 71 | // 如果用户同时拥有园林巡查员(178)和全域督察员(183)角色,则隐藏巡查工单菜单,只显示督查工单菜单 | 76 | // 如果用户同时拥有园林巡查员(178)和全域督察员(183)角色,则隐藏巡查工单菜单,只显示督查工单菜单 |
| 72 | if (userId != null) { | 77 | if (userId != null) { |
| 73 | Set<Long> roleIds = permissionService.getUserRoleIdListByUserId(userId); | 78 | Set<Long> roleIds = permissionService.getUserRoleIdListByUserId(userId); |
| 74 | - if (roleIds.contains(ROLE_ID_PATROL) && roleIds.contains(ROLE_ID_INSPECTOR)) { | 79 | + if (roleIds.contains(ROLE_ID_PATROL_ZX) && roleIds.contains(ROLE_ID_INSPECTOR)) { |
| 75 | log.info("[getAppModuleList] 用户({})同时拥有巡查员和督察员角色,隐藏巡查工单菜单", userId); | 80 | log.info("[getAppModuleList] 用户({})同时拥有巡查员和督察员角色,隐藏巡查工单菜单", userId); |
| 76 | list.removeIf(module -> MODULE_ID_PATROL_WORKORDER.equals(module.getId())); | 81 | list.removeIf(module -> MODULE_ID_PATROL_WORKORDER.equals(module.getId())); |
| 77 | } | 82 | } |
| 78 | } | 83 | } |
| 79 | - | 84 | + |
| 80 | // 填充统计数据(根据extra中的statisticKey配置) | 85 | // 填充统计数据(根据extra中的statisticKey配置) |
| 81 | // appModuleService.fillModuleStatistics(list, userId); | 86 | // appModuleService.fillModuleStatistics(list, userId); |
| 82 | - | 87 | + |
| 83 | // 转换为 VO 列表并构建树 | 88 | // 转换为 VO 列表并构建树 |
| 84 | List<AppModuleVO> modules = AppModuleConvert.INSTANCE.convertAppList(list); | 89 | List<AppModuleVO> modules = AppModuleConvert.INSTANCE.convertAppList(list); |
| 85 | List<AppModuleVO> moduleTree = buildModuleTree(modules); | 90 | List<AppModuleVO> moduleTree = buildModuleTree(modules); |
| 86 | - | 91 | + |
| 87 | // MapStruct 转换已通过 @AfterMapping 自动填充 statisticCount | 92 | // MapStruct 转换已通过 @AfterMapping 自动填充 statisticCount |
| 88 | - | 93 | + |
| 89 | return success(moduleTree); | 94 | return success(moduleTree); |
| 90 | } | 95 | } |
| 91 | 96 |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/controller/admin/maininfo/MainInfoController.java
| @@ -197,8 +197,21 @@ public class MainInfoController { | @@ -197,8 +197,21 @@ public class MainInfoController { | ||
| 197 | 197 | ||
| 198 | Map<String, BpmUserSimpleReqDTO> bpmTaskRespVOS = bpmTaskApi.getLastTaskMapByProcessInstanceId(processInstanceIdList); | 198 | Map<String, BpmUserSimpleReqDTO> bpmTaskRespVOS = bpmTaskApi.getLastTaskMapByProcessInstanceId(processInstanceIdList); |
| 199 | 199 | ||
| 200 | - // 5. 转换并返回结果 | ||
| 201 | - return success(MainInfoConvert.INSTANCE.buildMainInfoPage(pageResult, attachmentMap, bpmTaskRespVOS)); | 200 | + // 5. 查询单位名称 |
| 201 | + Map<Long, String> companyNameMap = pageResult.getList().stream() | ||
| 202 | + .map(MainInfoDO::getCompanyId) | ||
| 203 | + .filter(Objects::nonNull) | ||
| 204 | + .distinct() | ||
| 205 | + .collect(Collectors.toMap( | ||
| 206 | + companyId -> companyId, | ||
| 207 | + companyId -> { | ||
| 208 | + DeptDO dept = deptService.getDept(companyId); | ||
| 209 | + return dept != null ? dept.getName() : ""; | ||
| 210 | + } | ||
| 211 | + )); | ||
| 212 | + | ||
| 213 | + // 6. 转换并返回结果 | ||
| 214 | + return success(MainInfoConvert.INSTANCE.buildMainInfoPage(pageResult, attachmentMap, bpmTaskRespVOS, companyNameMap)); | ||
| 202 | } | 215 | } |
| 203 | 216 | ||
| 204 | @GetMapping("/export-excel") | 217 | @GetMapping("/export-excel") |
urbanops-module-workorder/src/main/java/com/zteits/urbanops/module/workorder/convert/maininfo/MainInfoConvert.java
| @@ -25,7 +25,7 @@ public interface MainInfoConvert { | @@ -25,7 +25,7 @@ public interface MainInfoConvert { | ||
| 25 | 25 | ||
| 26 | MainInfoConvert INSTANCE = Mappers.getMapper(MainInfoConvert.class); | 26 | MainInfoConvert INSTANCE = Mappers.getMapper(MainInfoConvert.class); |
| 27 | 27 | ||
| 28 | - default PageResult<AdminMainInfoRespVO> buildMainInfoPage(PageResult<MainInfoDO> pageResult, Map<String, AttachmentDO> attachmentMap, Map<String, BpmUserSimpleReqDTO> bpmTaskRespVOS ) { | 28 | + default PageResult<AdminMainInfoRespVO> buildMainInfoPage(PageResult<MainInfoDO> pageResult, Map<String, AttachmentDO> attachmentMap, Map<String, BpmUserSimpleReqDTO> bpmTaskRespVOS, Map<Long, String> companyNameMap) { |
| 29 | List<AdminMainInfoRespVO> mainInfoVOList = CollectionUtils.convertList(pageResult.getList(), mainInfoDO -> { | 29 | List<AdminMainInfoRespVO> mainInfoVOList = CollectionUtils.convertList(pageResult.getList(), mainInfoDO -> { |
| 30 | AdminMainInfoRespVO mainInfoVo = BeanUtils.toBean(mainInfoDO, AdminMainInfoRespVO.class); | 30 | AdminMainInfoRespVO mainInfoVo = BeanUtils.toBean(mainInfoDO, AdminMainInfoRespVO.class); |
| 31 | if (attachmentMap != null && !attachmentMap.isEmpty()) { | 31 | if (attachmentMap != null && !attachmentMap.isEmpty()) { |
| @@ -48,6 +48,9 @@ public interface MainInfoConvert { | @@ -48,6 +48,9 @@ public interface MainInfoConvert { | ||
| 48 | } | 48 | } |
| 49 | } | 49 | } |
| 50 | } | 50 | } |
| 51 | + if (companyNameMap != null && mainInfoDO.getCompanyId() != null) { | ||
| 52 | + mainInfoVo.setCompanyName(companyNameMap.getOrDefault(mainInfoDO.getCompanyId(), "")); | ||
| 53 | + } | ||
| 51 | return mainInfoVo; | 54 | return mainInfoVo; |
| 52 | }); | 55 | }); |
| 53 | return new PageResult<>(mainInfoVOList, pageResult.getTotal()); | 56 | return new PageResult<>(mainInfoVOList, pageResult.getTotal()); |