| | |
| | | recordService.removeByIds(Func.toLongList(id)); |
| | | String s1 = "delete from sys_record where id = " + "'" + id + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | record.setStorage("1"); |
| | | record.setType("2"); |
| | |
| | | "," + "'" + record.getStorage() + "'" + |
| | | "," + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(record.getOvertime()) + "'" |
| | | + ")"; |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | } |
| | | return R.success("成功"); |
| | | } |
| | |
| | | "," + "'" + information.getContacts() + "'" + |
| | | "," + "'" + information.getContactscell() + "'" + |
| | | "," + "'" + information.getCreateUserId() + "'" + ")"; |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | String ss = "insert into blade_dept(id,parent_id,tenant_id,dept_name,ancestors,dept_category,is_deleted) values(" + "'" + dept.getId() + "'" + "," + "'" + dept.getParentId() + "'" + "," |
| | | + "'" + dept.getTenantId() + "'" + |
| | | "," + "'" + information.getEnterprisename() + "'" + |
| | |
| | | ",stime = " + "'" + record.getStime() + "'" + |
| | | ",xtime = " + "'" + record.getXtime() + "'" + |
| | | " " + "where id = " + "'" + record.getId() + "'"; |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } else { |
| | | String s1 = "update sys_record set type = " + "'" + record.getType() + "'" + |
| | | ",papprove = " + "'" + record.getPapprove() + "'" + |
| | |
| | | ",stime = " + "'" + record.getStime() + "'" + |
| | | ",xtime = " + "'" + record.getXtime() + "'" + |
| | | " " + "where id = " + "'" + record.getId() + "'"; |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | return R.status(recordService.saveOrUpdate(record)); |
| | | } |