Ver Fonte

任务流程签字证书判断

lvy há 6 dias atrás
pai
commit
b87cfd1882

+ 5 - 5
blade-service/blade-business/src/main/java/org/springblade/business/controller/FixedFlowController.java

@@ -418,11 +418,11 @@ public class FixedFlowController extends BladeController {
                 List<SignPfxFile> signPfxFiles = jdbcTemplate.query("select * from m_sign_pfx_file where is_register = 1 and certificate_user_id in ( " + ids + " )", new BeanPropertyRowMapper<>(SignPfxFile.class));
                 Map<String, List<SignPfxFile>> collect = signPfxFiles.stream().collect(Collectors.groupingBy(signPfxFile -> signPfxFile.getCertificateUserId() + ""));
                 for (String userId : userIds) {
-                    List<SignPfxFile> userPfxList = collect.get(userId);
-                    if (userPfxList == null || userPfxList.isEmpty()) {
-                        String[] split = userId.split(",");
-                        for (String s : split) {
-                            if (StringUtils.isNumeric( s)) {
+                    String[] split = userId.split(",");
+                    for (String s : split) {
+                        if (StringUtils.isNumeric( s)) {
+                            List<SignPfxFile> userPfxList = collect.get(s);
+                            if (userPfxList == null || userPfxList.isEmpty()) {
                                 notCertificateUserInfoSet.add(s);
                             }
                         }