Commit 4c23c208fed1b820e9e3e72c63b5f9ab8f87d309
1 parent
25712633
m
Showing
7 changed files
with
31 additions
and
11 deletions
trash-common/src/main/java/com/trash/common/utils/RemoteServerUtils.java
| ... | ... | @@ -724,7 +724,13 @@ public class RemoteServerUtils { |
| 724 | 724 | okHttpClient = getOkClient(); |
| 725 | 725 | } |
| 726 | 726 | |
| 727 | - token = "Bearer " + token; | |
| 727 | + | |
| 728 | + if (token.contains("durable:")) { | |
| 729 | + token = "Bearer " + token.replaceAll("durable:", ""); | |
| 730 | + } else { | |
| 731 | + token = "Bearer auth:token:" + token; | |
| 732 | + } | |
| 733 | + | |
| 728 | 734 | |
| 729 | 735 | String param = JSON.toJSON(obj).toString(); |
| 730 | 736 | |
| ... | ... | @@ -783,7 +789,12 @@ public class RemoteServerUtils { |
| 783 | 789 | okHttpClient = getOkClient(); |
| 784 | 790 | } |
| 785 | 791 | |
| 786 | - token = "Bearer " + token; | |
| 792 | + if (token.contains("durable:")) { | |
| 793 | + token = "Bearer " + token.replaceAll("durable:", ""); | |
| 794 | + } else { | |
| 795 | + token = "Bearer auth:token:" + token; | |
| 796 | + } | |
| 797 | + | |
| 787 | 798 | String params = ""; |
| 788 | 799 | |
| 789 | 800 | if (obj != null) { | ... | ... |
trash-ui/src/router/index.js
| ... | ... | @@ -475,7 +475,19 @@ export const constantRoutes = [ |
| 475 | 475 | }, |
| 476 | 476 | ] |
| 477 | 477 | }, |
| 478 | - | |
| 478 | + { | |
| 479 | + path: '/unit', | |
| 480 | + component: Layout, | |
| 481 | + hidden: true, | |
| 482 | + children: [ | |
| 483 | + { | |
| 484 | + path: 'businessUnit/index', | |
| 485 | + component: (resolve) => require(['@/views/unit/businessUnit/index'], resolve), | |
| 486 | + name: '投放点信息', | |
| 487 | + meta: { title: '投放点信息' } | |
| 488 | + } | |
| 489 | + ] | |
| 490 | + }, | |
| 479 | 491 | // { |
| 480 | 492 | // path: '/task/handle', |
| 481 | 493 | // component: Layout, | ... | ... |
trash-workFlow/src/main/java/com/trash/business/service/impl/SupervisionThreestepServiceImpl.java
| ... | ... | @@ -156,8 +156,6 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer |
| 156 | 156 | }else{ |
| 157 | 157 | ids.addAll(SecurityUtils.getLoginUser().getUser().getConList()); |
| 158 | 158 | } |
| 159 | - | |
| 160 | - | |
| 161 | 159 | |
| 162 | 160 | if (SecurityUtils.getLoginUser().getUser().getConAreas().size() > 0) { |
| 163 | 161 | ... | ... |
trash-workFlow/src/main/java/com/trash/casefile/controller/RemoteServerController.java
| ... | ... | @@ -46,7 +46,7 @@ public class RemoteServerController { |
| 46 | 46 | |
| 47 | 47 | @PostMapping("/getAreaList") |
| 48 | 48 | public AjaxResult getAreaList(){ |
| 49 | - JSONArray jsonArray = redisCache.getCacheObject("areaList"); | |
| 49 | + JSONArray jsonArray = redisCache.getCacheObject("areas"); | |
| 50 | 50 | if(jsonArray==null){ |
| 51 | 51 | return AjaxResult.error("获取区域列表失败!请稍后重试或联系管理员"); |
| 52 | 52 | } | ... | ... |
trash-workFlow/src/main/java/com/trash/casefile/service/impl/ViolationWarningInformationServiceImpl.java
| ... | ... | @@ -94,9 +94,9 @@ public class ViolationWarningInformationServiceImpl implements IViolationWarning |
| 94 | 94 | * @return 违规预警信息 |
| 95 | 95 | */ |
| 96 | 96 | @Override |
| 97 | - public List<ViolationWarningInformation> selectViolationWarningInformationList( | |
| 98 | - ViolationWarningInformation violationWarningInformation) { | |
| 99 | - | |
| 97 | + public List<ViolationWarningInformation> selectViolationWarningInformationList(ViolationWarningInformation violationWarningInformation) { | |
| 98 | + | |
| 99 | + | |
| 100 | 100 | List<ViolationWarningInformation> list = new ArrayList<>(); |
| 101 | 101 | JSONArray areas = redisCache.getCacheObject("areas"); |
| 102 | 102 | ... | ... |
trash-workFlow/src/main/java/com/trash/workflow/listener/ConstructionEndListener.java
trash-workFlow/src/main/resources/mapper/SupervisionThreestepMapper.xml
| ... | ... | @@ -131,7 +131,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 131 | 131 | <if test="img12 != null and img12 != ''"> and img12 = #{img12}</if> |
| 132 | 132 | <if test="person != null and person != ''"> and person = #{person}</if> |
| 133 | 133 | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| 134 | - <if test="status != null and status != ''"> and status = #{status}</if> | |
| 134 | + <if test="status != null"> and status = #{status}</if> | |
| 135 | 135 | <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> |
| 136 | 136 | <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and |
| 137 | 137 | #{workEndTime}</if> | ... | ... |