用户管理及下拉选查询接口开发

This commit is contained in:
haozq 2025-12-09 15:08:04 +08:00
parent 15d261884e
commit bef7ff27d5
2 changed files with 8 additions and 5 deletions

View File

@ -2,6 +2,7 @@
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />

View File

@ -71,12 +71,14 @@ public class AllUserService {
if(isCz>0){
return AjaxResult.error("手机号已被注册");
}
data=new AllUserVo();
if(StringHelper.isNotEmpty(vo.getIdCard())) {
data = new AllUserVo();
data.setIdCard(vo.getIdCard());
isCz=allUserDao.getUserCount(data);
if(isCz>0){
isCz = allUserDao.getUserCount(data);
if (isCz > 0) {
return AjaxResult.error("身份证号码已被注册");
}
}
if(StringHelper.isEmpty(vo.getPassword())){
vo.setPassword("Hnsbd@admin123");
}