Răsfoiți Sursa

人员组织导入校验优化

luojing 5 ani în urmă
părinte
comite
e3b0f180db

+ 5 - 4
o2server/x_organization_assemble_control/src/main/java/com/x/organization/assemble/control/jaxrs/inputperson/ActionInputAll.java

@@ -620,7 +620,7 @@ class ActionInputAll extends BaseAction {
 					validate = false;
 					validate = false;
 					continue;
 					continue;
 				}
 				}
-				this.setUnitMemo(workbook, configurator, o, "校验通过.");
+				//this.setUnitMemo(workbook, configurator, o, "校验通过.");
 			}
 			}
 		}
 		}
 		return validate;
 		return validate;
@@ -633,6 +633,7 @@ class ActionInputAll extends BaseAction {
 		boolean validate = true;
 		boolean validate = true;
 		for (PersonItem o : person) {
 		for (PersonItem o : person) {
 			//System.out.println("正在校验用户:{}."+ o.getName());
 			//System.out.println("正在校验用户:{}."+ o.getName());
+			this.setPersonMemo(workbook, configurator, o, "校验通过.");
 			if (StringUtils.isEmpty(o.getName())) {
 			if (StringUtils.isEmpty(o.getName())) {
 				this.setPersonMemo(workbook, configurator, o, "人员姓名不能为空.");
 				this.setPersonMemo(workbook, configurator, o, "人员姓名不能为空.");
 				validate = false;
 				validate = false;
@@ -658,7 +659,6 @@ class ActionInputAll extends BaseAction {
 				validate = false;
 				validate = false;
 				continue;
 				continue;
 			}
 			}
-			this.setPersonMemo(workbook, configurator, o, "校验通过.");
 			/*if(o.getAttributes().isEmpty()|| StringUtils.isEmpty(o.getAttributes().get("idNumber"))){
 			/*if(o.getAttributes().isEmpty()|| StringUtils.isEmpty(o.getAttributes().get("idNumber"))){
 				this.setPersonMemo(workbook, configurator, o, "身份证号不能为空.");
 				this.setPersonMemo(workbook, configurator, o, "身份证号不能为空.");
 				validate = false;
 				validate = false;
@@ -702,7 +702,7 @@ class ActionInputAll extends BaseAction {
 					continue;
 					continue;
 				}
 				}
 				
 				
-				this.setPersonMemo(workbook, configurator, o, "校验通过.");
+				//this.setPersonMemo(workbook, configurator, o, "校验通过.");
 			}
 			}
 		}
 		}
 		return validate;
 		return validate;
@@ -732,6 +732,7 @@ class ActionInputAll extends BaseAction {
 				IdentityItem identityItem = new IdentityItem();
 				IdentityItem identityItem = new IdentityItem();
 				identityItem.setRow(i);
 				identityItem.setRow(i);
 				identitys.add(identityItem);
 				identitys.add(identityItem);
+				this.setIdentityMemo(workbook, configurator, identityItem, "校验通过.");
 				if (StringUtils.isEmpty(unique)) {
 				if (StringUtils.isEmpty(unique)) {
 					this.setIdentityMemo(workbook, configurator, identityItem, "员工唯一编码不能为空.");
 					this.setIdentityMemo(workbook, configurator, identityItem, "员工唯一编码不能为空.");
 					validate = false;
 					validate = false;
@@ -788,7 +789,7 @@ class ActionInputAll extends BaseAction {
 				}
 				}
 				
 				
 				//if (validate) {
 				//if (validate) {
-					this.setIdentityMemo(workbook, configurator, identityItem, "校验通过.");
+					//this.setIdentityMemo(workbook, configurator, identityItem, "校验通过.");
 				//}
 				//}
 				
 				
 			}
 			}