| | |
| | | records.setCreateTime(new Date()); |
| | | records.setCreateUser(accreditationRecords.getCreateUser()); |
| | | records.setStatus(1); |
| | | records.setAuditStatus(1); |
| | | records.setType(accreditationRecords.getType()); |
| | | records.setUserId(Long.parseLong(id)); |
| | | //新增 |
| | | this.save(records); |
| | | |
| | | //内网新增 |
| | | String s = "insert into sys_apply(id,user_id,create_time,create_user,status) " + |
| | | String s = "insert into sys_accreditation_records(id,user_id,create_time,create_user,status,type,audit_status) " + |
| | | "values(" + "'" + records.getId() + "'" + "," |
| | | + "'" + records.getUserId() + "'" + "," |
| | | + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(records.getCreateTime()) + "'" + "," |
| | | + "'" + records.getCreateUser() +"'" + "," |
| | | +"'" + records.getStatus() + "'" + ")"; |
| | | + "'" + records.getStatus() +"'" + "," |
| | | + "'" + records.getType() +"'" + "," |
| | | +"'" + records.getAuditStatus() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | }); |
| | | return true; |