| | |
| | | import org.springblade.modules.accreditation.mapper.AccreditationRecordsMapper; |
| | | import org.springblade.modules.accreditation.service.AccreditationRecordsService; |
| | | import org.springblade.modules.accreditation.vo.AccreditationRecordsVo; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.net.MalformedURLException; |
| | |
| | | |
| | | /** |
| | | * 制证记录服务实现类 |
| | | * |
| | | * @author zhongrj |
| | | */ |
| | | @Service |
| | | @AllArgsConstructor |
| | | public class AccreditationRecordsServiceImpl extends ServiceImpl<AccreditationRecordsMapper, AccreditationRecords> implements AccreditationRecordsService { |
| | | |
| | | @Autowired |
| | | private MyAsyncService myAsyncService; |
| | | |
| | | /** |
| | | * 自定义分页 |
| | | * |
| | | * @param page |
| | | * @param accreditationRecords |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 制证申请(批量) |
| | | * |
| | | * @param accreditationRecords 制证记录信息对象 |
| | | */ |
| | | @Override |
| | |
| | | + "'" + records.getStatus() +"'" + "," |
| | | + "'" + records.getType() +"'" + "," |
| | | +"'" + records.getAuditStatus() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | } |
| | | } |
| | | //判断类型,如果是证书的,审核未通过的可以再次申请,审核通过的,暂时不给于新增记录 |
| | |
| | | + "'" + records.getStatus() +"'" + "," |
| | | + "'" + records.getType() +"'" + "," |
| | | +"'" + records.getAuditStatus() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | /** |
| | | * 自定义详情信息 |
| | | * |
| | | * @param accreditationRecords |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 导出保安员证信息 |
| | | * |
| | | * @param accreditationRecords |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 导出证书制证信息 |
| | | * |
| | | * @param accreditationRecords |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量修改为已制证 |
| | | * |
| | | * @param accreditationRecords 制证记录信息对象 |
| | | */ |
| | | @Override |
| | |
| | | String s = |
| | | "update sys_accreditation_records set status = " + accreditationRecords.getStatus() + "" + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | }); |
| | | return true; |
| | | } |