智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/accreditation/service/impl/AccreditationRecordsServiceImpl.java
@@ -4,6 +4,7 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springblade.common.config.QrcodeConfig;
import org.springblade.common.utils.QRCodeUtil;
import org.springblade.modules.FTP.FtpUtil;
import org.springblade.modules.accreditation.excel.ExportSecurityBookPaperExcel;
@@ -85,7 +86,7 @@
                  + "'" + records.getType() + "'" + ","
                  + "'" + records.getAuditStatus() + "'" + ")";
               //FtpUtil.sqlFileUpload(s);
               myAsyncService.FTP(s);
               myAsyncService.dataSync(s);
            }
         }
         //判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录
@@ -106,7 +107,7 @@
                  + "'" + records.getType() + "'" + ","
                  + "'" + records.getAuditStatus() + "'" + ")";
               //FtpUtil.sqlFileUpload(s);
               myAsyncService.FTP(s);
               myAsyncService.dataSync(s);
            }
         }
@@ -173,7 +174,7 @@
            //如果保安证编号不为空
            if (null != accreditationRecordsVo.getSecurityNumber() && accreditationRecordsVo.getSecurityNumber() != "") {
               //去生成二维码
               String url = "http://61.131.136.25:2080/securityInfo.html";
               String url = QrcodeConfig.baseUrl + "securityInfo.html";
               String encoded = null;
               try {
                  encoded = URLEncoder.encode(accreditationRecordsVo.getSecurityNumber(), "UTF-8");
@@ -240,7 +241,7 @@
            "update sys_accreditation_records set status = " + accreditationRecords.getStatus() + "" +
               "where id = " + "'" + accreditationRecords.getId() + "'";
         //FtpUtil.sqlFileUpload(s);
         myAsyncService.FTP(s);
         myAsyncService.dataSync(s);
      });
      return true;
   }