| | |
| | | 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.getChangecontactscell() + "'" + |
| | | ")"; |
| | | //FtpUtil.sqlFileUpload(s); |
| | | myAsyncService.FTP(s); |
| | | myAsyncService.dataSync(s); |
| | | return R.success("成功"); |
| | | } |
| | | |
| | |
| | | ",representativecell = " + "'" + information1.getRepresentativecell() + "'" + |
| | | " " + "where id = " + "'" + information1.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | }else { |
| | | //按组织机构查询 |
| | | Information information2 = new Information(); |
| | |
| | | ",representativecell = " + "'" + information1.getRepresentativecell() + "'" + |
| | | " " + "where id = " + "'" + information1.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | }else { |
| | | //设置未审核不通过 |
| | | record.setType("1"); |
| | |
| | | ",approve = " + "'" + record.getApprove() + "'" + |
| | | " " + "where id = " + "'" + record.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | throw new ServiceException("当前公司单位未保安服务系统存在,请先注册!"); |
| | | } |
| | | } |
| | |
| | | ",approve = " + "'" + record.getApprove() + "'" + |
| | | " " + "where id = " + "'" + record.getId() + "'"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | myAsyncService.dataSync(s1); |
| | | } |
| | | //返回数据 |
| | | return R.status(status); |