| | |
| | | |
| | | //数据同步 |
| | | String s1 = |
| | | "insert into sys_dispatcher(id,dispatcherTime,dispatcher_unit_id,user_ids,end_time,dept_id,jurisdiction,create_time,status) " + |
| | | "insert into sys_dispatcher(id,dispatcherTime,dispatcherAddress,dispatcher_unit_id,user_ids,end_time,dept_id,jurisdiction,create_time,status) " + |
| | | "values(" + "'" + dispatcher.getId() + "'" + "," + |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd").format(dispatcher.getDispatchertime()) + "'" + "," + |
| | | "'" + dispatcher.getDispatcheraddress() + "'" + "," + |
| | | "'" + dispatcher.getDispatcherUnitId() + "'" + "," + |
| | | "'" + dispatcher.getUserIds() + "'" + "," + |
| | | "'" + new SimpleDateFormat("yyyy-MM-dd").format(dispatcher.getEndTime()) + "'" + "," + |
| | |
| | | "update blade_user set dispatch = " + "'" + user.getDispatch() + "'" + |
| | | " " +"where id = " + "'" + user.getId() + "';"+ |
| | | "update sys_dispatcher set dispatcherTime = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(dispatcher.getDispatchertime()) + "'" + |
| | | ",dispatcherAddress = " + "'" + dispatcher.getDispatcheraddress() + "'" + |
| | | ",dispatcher_unit_id = " + "'" + dispatcher.getDispatcherUnitId() + "'" + |
| | | ",user_ids = " + "'" + dispatcher.getUserIds() + "'" + |
| | | ",end_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd").format(dispatcher.getEndTime()) + "'" + |
| | | ",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(dispatcher.getUpdateTime()) + "'" + |
| | | ",dept_id = " + "'" + dispatcher.getDeptId() + "'" + |
| | | ",jurisdiction = " + "'" + dispatcher.getJurisdiction() + "'" + |
| | | " " +"where id = " + "'" + user.getId() + "';"+ |
| | | " " +"where id = " + "'" + dispatcher.getId() + "';"+ |
| | | "update blade_user set dispatch = " + "'" + user1.getDispatch() + "'" + |
| | | " " +"where id = " + "'" + user1.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |