| | |
| | | import org.springblade.modules.equipage.service.GunService; |
| | | import org.springblade.modules.equipage.vo.GunVo; |
| | | import org.springblade.modules.system.service.IUserDeptService; |
| | | import org.springblade.modules.system.service.MyAsyncService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | |
| | | @Autowired |
| | | private IUserDeptService userDeptService; |
| | | @Autowired |
| | | private MyAsyncService myAsyncService; |
| | | |
| | | /** |
| | | * 枪支分页信息 |
| | |
| | | //数据同步 |
| | | String s1 = |
| | | "insert into sys_gun(id,issue_unit,card_number,gun_mode," + |
| | | "dept_id,person_in_charge) " + |
| | | "dept_id,person_in_charge,card_no) " + |
| | | "values(" + "'" + gun.getId() + "'" + "," + |
| | | "'" + gun.getIssueUnit() + "'" + "," + |
| | | "'" + gun.getCardNumber() + "'" + "," + |
| | | "'" + gun.getGunMode() + "'" + "," + |
| | | "'" + gun.getDeptId() + "'" + "," + |
| | | "'" +gun.getPersonInCharge() + "'" + ")"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | "'" + gun.getPersonInCharge() + "'" + "," + |
| | | "'" +gun.getCardNo() + "'" + ")"; |
| | | //FtpUtil.sqlFileUpload(s1); |
| | | myAsyncService.dataSync(s1); |
| | | |
| | | }); |
| | | }else { |