Browse Source

修改部分代码

lfy 3 weeks ago
parent
commit
8d4ee1f29b

+ 5 - 10
delivery-module-core/delivery-module-core-biz/src/main/java/com/unis/module/coding/service/caxx/CaxxServiceImpl.java

@@ -27,6 +27,7 @@ import com.unis.framework.common.util.object.BeanUtils;
27 27
 
28 28
 import com.unis.module.coding.dal.mysql.caxx.CaxxMapper;
29 29
 
30
+import java.util.Arrays;
30 31
 import java.util.HashSet;
31 32
 import java.util.List;
32 33
 import java.util.Set;
@@ -174,14 +175,11 @@ public class CaxxServiceImpl implements CaxxService {
174 175
                 throw exception(ERROR,"当前用户不存在角色信息");
175 176
             }
176 177
             String[] items = roleIds.split(",");
177
-            Set<Long> roleIdList = new HashSet<>();
178
-            for (String item : items) {
179
-                roleIdList.add(Long.parseLong(item.trim()));
180
-            }
178
+            List<String> roleIdList = Arrays.asList(items);
181 179
             if (roleIdList.contains(RoleIdEnum.BANK_ADMIN.getRoleId())) {
182 180
                 String bankType = loginUser.getInfo().get("bankType");
183
-                if (StringUtils.isBlank(bankType)){
184
-                    throw exception(ERROR,"当前银行用户不存在银行信息");
181
+                if (StringUtils.isBlank(bankType)) {
182
+                    throw exception(ERROR, "当前银行用户不存在银行信息");
185 183
                 }
186 184
                 pageReqVO.setYhmc(bankType);
187 185
                 page = caxxMapper.getIdentifyPageForBank(new Page<>(pageReqVO.getPageNo(), pageReqVO.getPageSize()), pageReqVO);
@@ -219,10 +217,7 @@ public class CaxxServiceImpl implements CaxxService {
219 217
                 throw exception(ERROR,"当前用户不存在角色信息");
220 218
             }
221 219
             String[] items = roleIds.split(",");
222
-            Set<Long> roleIdList = new HashSet<>();
223
-            for (String item : items) {
224
-                roleIdList.add(Long.parseLong(item.trim()));
225
-            }
220
+            List<String> roleIdList = Arrays.asList(items);
226 221
             if (roleIdList.contains(RoleIdEnum.BANK_ADMIN.getRoleId())) {
227 222
                 String bankType = loginUser.getInfo().get("bankType");
228 223
                 if (StringUtils.isBlank(bankType)){

+ 4 - 3
delivery-module-core/delivery-module-core-biz/src/main/resources/mapper/caxx/CaxxMapper.xml

@@ -217,7 +217,7 @@
217 217
             ck.LXDH lxdh,
218 218
             ifnull(t1.yxcfnum, 0) yxcfnum,
219 219
             ifnull(t2.yhrdnum, 0) yhrdnum,
220
-            t1.rdyh_name
220
+            t2.rdyh_name
221 221
         from DELIVERY_DWXX cd
222 222
         join DELIVERY_KQXX ck on ck.DWID=cd.id
223 223
         join
@@ -234,7 +234,8 @@
234 234
         (
235 235
                 select
236 236
                         KQ_ID,
237
-                        count(CA_ID) yhrdnum
237
+                        count(CA_ID) yhrdnum,
238
+                        rdyh_name
238 239
                 from DELIVERY_BANK
239 240
                 where  DELETED=0 and HY_STATE=1
240 241
                 group by  KQ_ID
@@ -352,7 +353,7 @@
352 353
             ck.LXDH lxdh,
353 354
             ifnull(t1.yxcfnum, 0) yxcfnum,
354 355
             ifnull(t2.yhrdnum, 0) yhrdnum,
355
-            t1.rdyh_name
356
+            t2.rdyh_name
356 357
         from DELIVERY_DWXX cd
357 358
         join DELIVERY_KQXX ck on ck.DWID=cd.id
358 359
         join

+ 3 - 3
delivery-module-system/delivery-module-system-api/src/main/java/com/unis/module/system/enums/permission/RoleIdEnum.java

@@ -13,16 +13,16 @@ public enum RoleIdEnum {
13 13
     /**
14 14
      * 超级管理员
15 15
      */
16
-    SYSTEM_ADMIN(1L),
16
+    SYSTEM_ADMIN("1"),
17 17
     /**
18 18
      * 银行用户
19 19
      */
20
-    BANK_ADMIN(632188567941189L),
20
+    BANK_ADMIN("632188567941189L"),
21 21
     ;
22 22
 
23 23
     /**
24 24
      * 角色ID
25 25
      */
26
-    private final Long roleId;
26
+    private final String roleId;
27 27
 
28 28
 }