Commit 4c23c208fed1b820e9e3e72c63b5f9ab8f87d309

Authored by youxiw2000
1 parent 25712633

m

trash-common/src/main/java/com/trash/common/utils/RemoteServerUtils.java
@@ -724,7 +724,13 @@ public class RemoteServerUtils { @@ -724,7 +724,13 @@ public class RemoteServerUtils {
724 okHttpClient = getOkClient(); 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 String param = JSON.toJSON(obj).toString(); 735 String param = JSON.toJSON(obj).toString();
730 736
@@ -783,7 +789,12 @@ public class RemoteServerUtils { @@ -783,7 +789,12 @@ public class RemoteServerUtils {
783 okHttpClient = getOkClient(); 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 String params = ""; 798 String params = "";
788 799
789 if (obj != null) { 800 if (obj != null) {
trash-ui/src/router/index.js
@@ -475,7 +475,19 @@ export const constantRoutes = [ @@ -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 // path: '/task/handle', 492 // path: '/task/handle',
481 // component: Layout, 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,8 +156,6 @@ public class SupervisionThreestepServiceImpl implements ISupervisionThreestepSer
156 }else{ 156 }else{
157 ids.addAll(SecurityUtils.getLoginUser().getUser().getConList()); 157 ids.addAll(SecurityUtils.getLoginUser().getUser().getConList());
158 } 158 }
159 -  
160 -  
161 159
162 if (SecurityUtils.getLoginUser().getUser().getConAreas().size() > 0) { 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,7 +46,7 @@ public class RemoteServerController {
46 46
47 @PostMapping("/getAreaList") 47 @PostMapping("/getAreaList")
48 public AjaxResult getAreaList(){ 48 public AjaxResult getAreaList(){
49 - JSONArray jsonArray = redisCache.getCacheObject("areaList"); 49 + JSONArray jsonArray = redisCache.getCacheObject("areas");
50 if(jsonArray==null){ 50 if(jsonArray==null){
51 return AjaxResult.error("获取区域列表失败!请稍后重试或联系管理员"); 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,9 +94,9 @@ public class ViolationWarningInformationServiceImpl implements IViolationWarning
94 * @return 违规预警信息 94 * @return 违规预警信息
95 */ 95 */
96 @Override 96 @Override
97 - public List<ViolationWarningInformation> selectViolationWarningInformationList(  
98 - ViolationWarningInformation violationWarningInformation) {  
99 - 97 + public List<ViolationWarningInformation> selectViolationWarningInformationList(ViolationWarningInformation violationWarningInformation) {
  98 +
  99 +
100 List<ViolationWarningInformation> list = new ArrayList<>(); 100 List<ViolationWarningInformation> list = new ArrayList<>();
101 JSONArray areas = redisCache.getCacheObject("areas"); 101 JSONArray areas = redisCache.getCacheObject("areas");
102 102
trash-workFlow/src/main/java/com/trash/workflow/listener/ConstructionEndListener.java
@@ -32,7 +32,6 @@ public class ConstructionEndListener implements ExecutionListener { @@ -32,7 +32,6 @@ public class ConstructionEndListener implements ExecutionListener {
32 32
33 @Autowired 33 @Autowired
34 trashConfig trashConfig; 34 trashConfig trashConfig;
35 -  
36 35
37 @Override 36 @Override
38 public void notify(DelegateExecution delegateExecution) { 37 public void notify(DelegateExecution delegateExecution) {
trash-workFlow/src/main/resources/mapper/SupervisionThreestepMapper.xml
@@ -131,7 +131,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot; @@ -131,7 +131,7 @@ PUBLIC &quot;-//mybatis.org//DTD Mapper 3.0//EN&quot;
131 <if test="img12 != null and img12 != ''"> and img12 = #{img12}</if> 131 <if test="img12 != null and img12 != ''"> and img12 = #{img12}</if>
132 <if test="person != null and person != ''"> and person = #{person}</if> 132 <if test="person != null and person != ''"> and person = #{person}</if>
133 <if test="phone != null and phone != ''"> and phone = #{phone}</if> 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 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if> 135 <if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
136 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and 136 <if test="workStartTime != null"> and self_check_time BETWEEN #{workStartTime} and
137 #{workEndTime}</if> 137 #{workEndTime}</if>