fix bug 组织机构导入提示语
This commit is contained in:
+1
-1
@@ -453,7 +453,7 @@ public class SysDepartController {
|
||||
LambdaQueryWrapper<SysDepart> wrapper1 = new LambdaQueryWrapper<>();
|
||||
wrapper1.eq(SysDepart::getOrgCode,sysDepart.getOrgCode());
|
||||
if (sysDepartService.count(wrapper1) > 0) {
|
||||
errorMessage.add("第 " + lineNumber + " 行:部门编码已经存在");
|
||||
errorMessage.add("第 " + lineNumber + " 行:机构编码已经存在");
|
||||
}
|
||||
if (errorMessage.isEmpty()){
|
||||
SysDepart sysDepart1 = new SysDepart();
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class SysDepartExcel {
|
||||
private String orgCode;
|
||||
/**手机号*/
|
||||
@Excel(name="手机号",width=15,orderNum = "5")
|
||||
@Pattern(regexp = "^((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(17[0135678])|(18[0-9])|(19[8|9])|(16[6]))\\d{8}$",message = "手机号码格式错误")
|
||||
@Pattern(regexp = "^((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(17[0135678])|(18[0-9])|(19[8|9])|(16[6]))\\d{8}$",message = "手机号格式错误")
|
||||
private String mobile;
|
||||
/**传真*/
|
||||
private String fax;
|
||||
|
||||
Reference in New Issue
Block a user