Commit bb179b27 authored by 廖旭伟's avatar 廖旭伟

统一社会信用代码唯一性校验

parent a55ee93d
......@@ -200,6 +200,10 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
if(entity.getCatalogId()==null){
throw new AppException("目录ID不能为空");
}
ApplyLogEntity temp = this.selectOne(new ApplyLogQuery().socialCode(entity.getSocialCode()).recordStatus(YesNoEnum.NO.getValue()));
if(temp!=null){
throw new AppException("统一社会信用代码重复");
}
super.validData(entity, context);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment