| | |
| | | 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; |
| | |
| | | + "'" + records.getType() + "'" + "," |
| | | + "'" + records.getAuditStatus() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | } |
| | | } |
| | | //判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录 |
| | |
| | | + "'" + records.getType() + "'" + "," |
| | | + "'" + records.getAuditStatus() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | } |
| | | } |
| | | |
| | |
| | | //如果保安证编号不为空 |
| | | 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"); |
| | |
| | | "update sys_accreditation_records set status = " + accreditationRecords.getStatus() + "" + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | }); |
| | | return true; |
| | | } |