| | |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.FTP.MyAsyncService; |
| | | import org.springblade.modules.accreditation.entity.AccreditationRecords; |
| | | import org.springblade.modules.accreditation.excel.ExportSecurityBookPaperExcel; |
| | | import org.springblade.modules.accreditation.excel.ExportSecurityPaperExcel; |
| | |
| | | private final AccreditationRecordsService accreditationRecordsService; |
| | | |
| | | private final IUserService userService; |
| | | |
| | | private final MyAsyncService myAsyncService; |
| | | |
| | | /** |
| | | * 自定义分页 |
| | |
| | | user.setUpdateTime(new Date()); |
| | | //更新 |
| | | userService.updateById(user); |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "';" + |
| | | "update blade_user set user_type = " + user.getUserType() + "" + |
| | | ",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" + |
| | | "where id = " + "'" + user.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | }else { |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | } |
| | | }else { |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | } |
| | | //返回 |
| | | return R.status(b); |
| | |
| | | user.setUpdateTime(new Date()); |
| | | //更新 |
| | | userService.updateById(user); |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "';" + |
| | | "update blade_user set user_type = " + user.getUserType() + "" + |
| | | ",update_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "" + |
| | | "where id = " + "'" + user.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | }else { |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | } |
| | | }else { |
| | | //外网同步 |
| | | String s = |
| | | "update sys_accreditation_records set audit_status = " + accreditationRecords.getAuditStatus() + "" + |
| | | ",audit_detail = " + accreditationRecords.getAuditDetail() + "" + |
| | | ",audit_time = " + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(accreditationRecords.getAuditTime()) + "" + |
| | | ",audit_user = " + accreditationRecords.getAuditUser() + " " + |
| | | "where id = " + "'" + accreditationRecords.getId() + "'"; |
| | | myAsyncService.FTP(s); |
| | | } |
| | | }); |
| | | //返回 |