| | |
| | | import org.springblade.modules.system.node.TreeNodes; |
| | | import org.springblade.modules.system.service.IDeptService; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springblade.modules.system.vo.DeptVO; |
| | | import org.springblade.modules.system.wrapper.DeptWrapper; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | |
| | | private final IUserService userService; |
| | | private final IInformationService informationService; |
| | | private final MyAsyncService myAsyncService; |
| | | |
| | | /** |
| | | * 详情 |
| | |
| | | "," + "'" + dept.getSort() + "'" + |
| | | "," + "'" + dept.getRemark() + "'" + |
| | | "," + "'" + isDeleted + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(ss); |
| | | //FtpUtil.sqlFileUpload(ss); |
| | | myAsyncService.FTP(ss); |
| | | }else { |
| | | //修改 |
| | | //内网同步 |
| | |
| | | + ",remark = " + "'" + dept.getRemark() + "'" |
| | | + ",is_deleted = " + "'" + dept.getIsDeleted() + "'" |
| | | + " " + "where id = " + "'" + dept.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | } |
| | | // String id = kv.get("id").toString(); |
| | | // information.setDepartmentid(id); |
| | |
| | | list.forEach(id -> { |
| | | //内网同步 |
| | | String s1 = "update blade_dept set is_deleted = 1 where id = " + "'" + id + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.FTP(s1); |
| | | }); |
| | | return R.status(deptService.removeDept(ids)); |
| | | } |