智慧保安后台管理-外网
Administrator
2021-12-08 932e65260d607834c08813750dd4256caea2d96e
src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -84,7 +84,7 @@
         //判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录
         if (accreditationRecords.getType()==2){
            //查询当前人员是否有待审核和审核通过的记录数
            int count  = baseMapper.getAccreditationRecordsByUserIdAuditCount(id);
            int count  = baseMapper.getAccreditationRecordsByUserIdAuditCount(id,2);
            if (count<1){
               //新增
               this.save(records);