|
@@ -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)){
|