|
@@ -1452,9 +1452,10 @@ public class SysUserController {
|
|
|
Set<Integer> deptIds = userVosPage.getRecords().stream().map(UserVO::getDeptId).collect(Collectors.toSet());
|
|
|
|
|
|
if (CollUtil.isNotEmpty(deptIds)) {
|
|
|
- Map<Integer, Map<String, Integer>> coll = sysDeptSubService.list(Wrappers.<SysDeptSub>lambdaQuery().in(SysDeptSub::getDeptId, deptIds))
|
|
|
- .stream()
|
|
|
- .collect(Collectors.groupingBy(SysDeptSub::getDeptId, Collectors.toMap(SysDeptSub::getSubjectType, SysDeptSub::getSubjectChannel)));
|
|
|
+ // TODO
|
|
|
+// Map<Integer, Map<String, Integer>> coll = sysDeptSubService.list(Wrappers.<SysDeptSub>lambdaQuery().in(SysDeptSub::getDeptId, deptIds))
|
|
|
+// .stream()
|
|
|
+// .collect(Collectors.groupingBy(SysDeptSub::getDeptId, Collectors.toMap(SysDeptSub::getSubjectType, SysDeptSub::getSubjectChannel)));
|
|
|
|
|
|
userVosPage.getRecords().forEach(item -> {
|
|
|
if ("0".equals(userDTO.getSubType())) {
|
|
@@ -1463,7 +1464,7 @@ public class SysUserController {
|
|
|
item.setRljCertStatus(null);
|
|
|
}
|
|
|
|
|
|
- item.setSubjectTypeAndChannel(coll.get(item.getDeptId()));
|
|
|
+// item.setSubjectTypeAndChannel(coll.get(item.getDeptId()));
|
|
|
|
|
|
});
|
|
|
}
|
|
@@ -1504,54 +1505,54 @@ public class SysUserController {
|
|
|
});
|
|
|
userVO.setCertList(certList);
|
|
|
|
|
|
- // 不同渠道认证名称,封装成中文名称数组格式
|
|
|
- Map<SubjectLocation, String> certStatusMap = userSubList.stream()
|
|
|
- .collect(Collectors.toMap(SysUserSub::getSubjectLocation,
|
|
|
- sysUserSub -> {
|
|
|
- String certStatuName = "";
|
|
|
- switch (sysUserSub.getGigType()) {
|
|
|
- case TAX_HELPOR:
|
|
|
- certStatuName = TaxHelperCertStatus.resolve(sysUserSub.getCertStatus()).getDesc();
|
|
|
- break;
|
|
|
- case YEE:
|
|
|
- certStatuName = YeeCertStatus.resolve(String.valueOf(sysUserSub.getCertStatus())).getMessage();
|
|
|
- break;
|
|
|
- case REN_LI_JIA:
|
|
|
- certStatuName = RenlijiaCertStatus.resolve(sysUserSub.getCertStatus()).getMessage();
|
|
|
- break;
|
|
|
- case OLADING:
|
|
|
- certStatuName = OladingCertStatus.resolve(String.valueOf(sysUserSub.getCertStatus())).getMessage();
|
|
|
- break;
|
|
|
- default:
|
|
|
- certStatuName = "";
|
|
|
- }
|
|
|
- return certStatuName;
|
|
|
- }));
|
|
|
- // 该企业配置的所有税源地
|
|
|
- List<SubjectLocation> subjectLocationList = subList.stream().map(SysDeptSub::getSubjectLocation).collect(Collectors.toList());
|
|
|
-
|
|
|
- List<String> certStatusNameList = new ArrayList<>();
|
|
|
- if (subjectLocationList.contains(SubjectLocation.REN_LI_JIA)) {
|
|
|
- certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.REN_LI_JIA)) ?
|
|
|
- RenlijiaCertStatus.CER_STATUS_4.getMessage() : certStatusMap.get(SubjectLocation.REN_LI_JIA));
|
|
|
- }
|
|
|
- if (subjectLocationList.contains(SubjectLocation.LUO_SHU_YUN)) {
|
|
|
- certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.LUO_SHU_YUN)) ?
|
|
|
- TaxHelperCertStatus.UN_CERT.getDesc() : certStatusMap.get(SubjectLocation.LUO_SHU_YUN));
|
|
|
- }
|
|
|
- if (subjectLocationList.contains(SubjectLocation.FEI_YI)) {
|
|
|
- certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.FEI_YI)) ?
|
|
|
- OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.FEI_YI));
|
|
|
- }
|
|
|
- if (subjectLocationList.contains(SubjectLocation.JIN_YUAN)) {
|
|
|
- certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.JIN_YUAN)) ?
|
|
|
- OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.JIN_YUAN));
|
|
|
- }
|
|
|
- if (subjectLocationList.contains(SubjectLocation.XIN_TAI_ZI)) {
|
|
|
- certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.XIN_TAI_ZI)) ?
|
|
|
- OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.XIN_TAI_ZI));
|
|
|
- }
|
|
|
- userVO.setCertStatusArr(certStatusNameList.toArray(new String[0]));
|
|
|
+ // 不同渠道认证名称,封装成中文名称数组格式 TODO
|
|
|
+// Map<SubjectLocation, String> certStatusMap = userSubList.stream()
|
|
|
+// .collect(Collectors.toMap(SysUserSub::getSubjectLocation,
|
|
|
+// sysUserSub -> {
|
|
|
+// String certStatuName = "";
|
|
|
+// switch (sysUserSub.getGigType()) {
|
|
|
+// case TAX_HELPOR:
|
|
|
+// certStatuName = TaxHelperCertStatus.resolve(sysUserSub.getCertStatus()).getDesc();
|
|
|
+// break;
|
|
|
+// case YEE:
|
|
|
+// certStatuName = YeeCertStatus.resolve(String.valueOf(sysUserSub.getCertStatus())).getMessage();
|
|
|
+// break;
|
|
|
+// case REN_LI_JIA:
|
|
|
+// certStatuName = RenlijiaCertStatus.resolve(sysUserSub.getCertStatus()).getMessage();
|
|
|
+// break;
|
|
|
+// case OLADING:
|
|
|
+// certStatuName = OladingCertStatus.resolve(String.valueOf(sysUserSub.getCertStatus())).getMessage();
|
|
|
+// break;
|
|
|
+// default:
|
|
|
+// certStatuName = "";
|
|
|
+// }
|
|
|
+// return certStatuName;
|
|
|
+// }));
|
|
|
+// // 该企业配置的所有税源地
|
|
|
+// List<SubjectLocation> subjectLocationList = subList.stream().map(SysDeptSub::getSubjectLocation).collect(Collectors.toList());
|
|
|
+//
|
|
|
+// List<String> certStatusNameList = new ArrayList<>();
|
|
|
+// if (subjectLocationList.contains(SubjectLocation.REN_LI_JIA)) {
|
|
|
+// certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.REN_LI_JIA)) ?
|
|
|
+// RenlijiaCertStatus.CER_STATUS_4.getMessage() : certStatusMap.get(SubjectLocation.REN_LI_JIA));
|
|
|
+// }
|
|
|
+// if (subjectLocationList.contains(SubjectLocation.LUO_SHU_YUN)) {
|
|
|
+// certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.LUO_SHU_YUN)) ?
|
|
|
+// TaxHelperCertStatus.UN_CERT.getDesc() : certStatusMap.get(SubjectLocation.LUO_SHU_YUN));
|
|
|
+// }
|
|
|
+// if (subjectLocationList.contains(SubjectLocation.FEI_YI)) {
|
|
|
+// certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.FEI_YI)) ?
|
|
|
+// OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.FEI_YI));
|
|
|
+// }
|
|
|
+// if (subjectLocationList.contains(SubjectLocation.JIN_YUAN)) {
|
|
|
+// certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.JIN_YUAN)) ?
|
|
|
+// OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.JIN_YUAN));
|
|
|
+// }
|
|
|
+// if (subjectLocationList.contains(SubjectLocation.XIN_TAI_ZI)) {
|
|
|
+// certStatusNameList.add(StrUtil.isBlank(certStatusMap.get(SubjectLocation.XIN_TAI_ZI)) ?
|
|
|
+// OladingCertStatus.UN_SIGNED.getMessage() : certStatusMap.get(SubjectLocation.XIN_TAI_ZI));
|
|
|
+// }
|
|
|
+// userVO.setCertStatusArr(certStatusNameList.toArray(new String[0]));
|
|
|
}
|
|
|
}
|
|
|
|