| | |
| | | userService.updateById(user); |
| | | String rtime; |
| | | if (user.getRtime() == null) { |
| | | rtime = null; |
| | | String s1 = |
| | | "update blade_user set account = " + "'" + user.getAccount() + "'" |
| | | + ",name = " + "'" + user.getName() + "'" |
| | | + ",real_name = " + "'" + user.getRealName() + "'" |
| | | + ",avatar = " + "'" + user.getAvatar() + "'" |
| | | + ",email = " + "'" + user.getEmail() + "'" |
| | | + ",phone = " + "'" + user.getPhone() + "'" |
| | | + ",sex = " + "'" + user.getSex() + "'" |
| | | + ",role_id = " + "'" + user.getRoleId() + "'" |
| | | + ",dept_id = " + "'" + user.getDeptId() + "'" |
| | | + ",cardid = " + "'" + user.getCardid() + "'" |
| | | + ",nativePlace = " + "'" + user.getNativeplace() + "'" |
| | | + ",nation = " + "'" + user.getNation() + "'" |
| | | + ",education = " + "'" + user.getEducation() + "'" |
| | | + ",politicaloutlook = " + "'" + user.getPoliticaloutlook() + "'" |
| | | + ",healstats = " + "'" + user.getHealstats() + "'" |
| | | + ",height = " + "'" + user.getHeight() + "'" |
| | | + ",fingerprint = " + "'" + url + "'" |
| | | + ",my_picture = " + "'" + user.getMyPicture() + "'" |
| | | + ",address = " + "'" + user.getAddress() + "'" |
| | | + ",registered = " + "'" + user.getRegistered() + "'" |
| | | + ",dispatch = " + "'" + user.getDispatch() + "'" |
| | | + ",securitynumber = " + "'" + user.getSecuritynumber() + "'" |
| | | + ",hold = " + "'" + user.getHold() + "'" |
| | | + ",jurisdiction = " + "'" + user.getJurisdiction() + "'" |
| | | + ",reason_for_leav = " + "'" + user.getReasonForLeav() + "'" |
| | | + ",guncode = " + "'" + user.getGuncode() + "'" |
| | | + ",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" |
| | | + " " + "where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | } else { |
| | | rtime = new SimpleDateFormat("yyyy-MM-dd").format(user.getRtime()); |
| | | String s1 = |
| | | "update blade_user set account = " + "'" + user.getAccount() + "'" |
| | | + ",name = " + "'" + user.getName() + "'" |
| | | + ",real_name = " + "'" + user.getRealName() + "'" |
| | | + ",avatar = " + "'" + user.getAvatar() + "'" |
| | | + ",email = " + "'" + user.getEmail() + "'" |
| | | + ",phone = " + "'" + user.getPhone() + "'" |
| | | + ",sex = " + "'" + user.getSex() + "'" |
| | | + ",role_id = " + "'" + user.getRoleId() + "'" |
| | | + ",dept_id = " + "'" + user.getDeptId() + "'" |
| | | + ",cardid = " + "'" + user.getCardid() + "'" |
| | | + ",nativePlace = " + "'" + user.getNativeplace() + "'" |
| | | + ",nation = " + "'" + user.getNation() + "'" |
| | | + ",education = " + "'" + user.getEducation() + "'" |
| | | + ",politicaloutlook = " + "'" + user.getPoliticaloutlook() + "'" |
| | | + ",healstats = " + "'" + user.getHealstats() + "'" |
| | | + ",height = " + "'" + user.getHeight() + "'" |
| | | + ",fingerprint = " + "'" + url + "'" |
| | | + ",my_picture = " + "'" + user.getMyPicture() + "'" |
| | | + ",address = " + "'" + user.getAddress() + "'" |
| | | + ",registered = " + "'" + user.getRegistered() + "'" |
| | | + ",rtime = " + "'" + rtime + "'" |
| | | + ",dispatch = " + "'" + user.getDispatch() + "'" |
| | | + ",securitynumber = " + "'" + user.getSecuritynumber() + "'" |
| | | + ",hold = " + "'" + user.getHold() + "'" |
| | | + ",jurisdiction = " + "'" + user.getJurisdiction() + "'" |
| | | + ",reason_for_leav = " + "'" + user.getReasonForLeav() + "'" |
| | | + ",guncode = " + "'" + user.getGuncode() + "'" |
| | | + ",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" |
| | | + " " + "where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | } |
| | | |
| | | String s1 = |
| | | "update blade_user set account = " + "'" + user.getAccount() + "'" |
| | | + ",name = " + "'" + user.getName() + "'" |
| | | + ",real_name = " + "'" + user.getRealName() + "'" |
| | | + ",avatar = " + "'" + user.getAvatar() + "'" |
| | | + ",email = " + "'" + user.getEmail() + "'" |
| | | + ",phone = " + "'" + user.getPhone() + "'" |
| | | + ",sex = " + "'" + user.getSex() + "'" |
| | | + ",role_id = " + "'" + user.getRoleId() + "'" |
| | | + ",dept_id = " + "'" + user.getDeptId() + "'" |
| | | + ",cardid = " + "'" + user.getCardid() + "'" |
| | | + ",nativePlace = " + "'" + user.getNativeplace() + "'" |
| | | + ",nation = " + "'" + user.getNation() + "'" |
| | | + ",education = " + "'" + user.getEducation() + "'" |
| | | + ",politicaloutlook = " + "'" + user.getPoliticaloutlook() + "'" |
| | | + ",healstats = " + "'" + user.getHealstats() + "'" |
| | | + ",height = " + "'" + user.getHeight() + "'" |
| | | + ",fingerprint = " + "'" + url + "'" |
| | | + ",my_picture = " + "'" + user.getMyPicture() + "'" |
| | | + ",address = " + "'" + user.getAddress() + "'" |
| | | + ",registered = " + "'" + user.getRegistered() + "'" |
| | | + ",rtime = " + "'" + rtime + "'" |
| | | + ",dispatch = " + "'" + user.getDispatch() + "'" |
| | | + ",securitynumber = " + "'" + user.getSecuritynumber() + "'" |
| | | + ",hold = " + "'" + user.getHold() + "'" |
| | | + ",jurisdiction = " + "'" + user.getJurisdiction() + "'" |
| | | + ",reason_for_leav = " + "'" + user.getReasonForLeav() + "'" |
| | | + ",guncode = " + "'" + user.getGuncode() + "'" |
| | | + ",update_time = " + "'" + new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(user.getUpdateTime()) + "'" |
| | | + " " + "where id = " + "'" + user.getId() + "'"; |
| | | FtpUtil.sqlFileUpload(s1); |
| | | return R.success("修改成功"); |
| | | } |
| | | |