增加校验:已经认证了的组织,别人不能再拿这个组织认证

main
rong.liu 10 months ago
parent fd9a4b870c
commit a3d295230a
  1. 3
      nakadai/src/main/java/com/huoran/nakadai/service/impl/EnterpriseCertificationServiceImpl.java

@ -29,7 +29,8 @@ public class EnterpriseCertificationServiceImpl extends ServiceImpl<EnterpriseCe
public EnterpriseCertification checkWhetherItExists(String company_name, Integer id, String opnenId) { public EnterpriseCertification checkWhetherItExists(String company_name, Integer id, String opnenId) {
QueryWrapper<EnterpriseCertification> wrapper = new QueryWrapper<>(); QueryWrapper<EnterpriseCertification> wrapper = new QueryWrapper<>();
wrapper.eq("company_name", company_name); wrapper.eq("company_name", company_name);
wrapper.eq("audit_status", 2);
wrapper.eq("authentication_status", 2);
if (!ObjectUtils.isEmpty(id)) { if (!ObjectUtils.isEmpty(id)) {
wrapper.last(" and id <> " + id); wrapper.last(" and id <> " + id);

Loading…
Cancel
Save