智慧保安后台管理-外网
Administrator
2022-07-13 91cb12265462fbee47c2d0965f967ba72248bfe8
src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -70,8 +70,8 @@
         //判断类型,如果是上岗证则判断是否有申请,有申请的不在新增记录
         if (accreditationRecords.getType() == 1) {
            //查询当前人员是否有申请记录
            int count = baseMapper.getAccreditationRecordsByUserIdCount(id);
            if (count < 1) {
//            int count = baseMapper.getAccreditationRecordsByUserIdCount(id);
//            if (count < 1) {
               //新增
               this.save(records);
@@ -85,13 +85,13 @@
                  + "'" + records.getType() + "'" + ","
                  + "'" + records.getAuditStatus() + "'" + ")";
               myAsyncService.FTP(s);
            }
//            }
         }
         //判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录
         if (accreditationRecords.getType() == 2) {
            //查询当前人员是否有待审核和审核通过的记录数
            int count = baseMapper.getAccreditationRecordsByUserIdAuditCount(id, 2);
            if (count < 1) {
//            int count = baseMapper.getAccreditationRecordsByUserIdAuditCount(id, 2);
//            if (count < 1) {
               //新增
               this.save(records);
@@ -105,7 +105,7 @@
                  + "'" + records.getType() + "'" + ","
                  + "'" + records.getAuditStatus() + "'" + ")";
               myAsyncService.FTP(s);
            }
//            }
         }
      });