| | |
| | | user.setCardid(zc.getCardid()); |
| | | iUserService.saveOrUpdate(user); |
| | | |
| | | String s = "insert into blade_user(id,tenant_id,account,password,name,real_name,avatar,email,phone,sex,role_id,dept_id,cardid," + |
| | | "jurisdiction,examination_type,status,is_deleted) " + |
| | | "values(" + "'" + user.getId() + "'" + "," + "'" + user.getTenantId() + "'" + "," + "'" + user.getAccount() + "'" + "," + |
| | | "'" + user.getPassword() + "'" + "," + "'" + user.getName() + "'" + "," + "'" + user.getRealName() + "'" + "," + "'" + user.getAvatar() + "'" + "," + |
| | | "'" + user.getEmail() + "'" + "," + "'" + user.getPhone() + "'" + "," + "'" + user.getSex() + "'" + "," + "'" + user.getRoleId() + "'" + |
| | | "," + "'" + user.getDeptId() + "'" + |
| | | "," + "'" + user.getCardid() + "'" + |
| | | "," + "'" + user.getJurisdiction() + "'" + |
| | | "," + "'" + user.getExamination_type() + "'" + |
| | | "," + "'" + user.getStatus() + "'" + |
| | | "," + "'" + user.getIsDeleted() + "'" + ")"; |
| | | |
| | | System.out.println(s); |
| | | FtpUtil.sqlFileUpload(s); |
| | | } |
| | | return R.status(zcService.saveOrUpdate(zc)); |
| | | } |
| | |
| | | String times = df.format(new Date()); |
| | | zc.setZctime(times); |
| | | zcService.inster(zc); |
| | | |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid)" + |
| | | "values(" + zc.getId() + "'" + |
| | | "," + "'" + zc.getUsername() + "'" + |
| | | "," + "'" + zc.getPassword() + "'" + |
| | | "," + "'" + zc.getSname() + "'" + |
| | | "," + "'" + zc.getSex() + "'" + |
| | | "," + "'" + zc.getPhone() + "'" + |
| | | "," + "'" + zc.getZctime() + "'" + |
| | | "," + "'" + zc.getDeptid() + "'" + |
| | | "," + "'" + zc.getParentId() + "'" + |
| | | "," + "'" + zc.getJurisdiction() + "'" + |
| | | "," + "'" + zc.getCardid() + "'" + ")"; |
| | | |
| | | System.out.println(s); |
| | | FtpUtil.sqlFileUpload(s); |
| | | |
| | | return R.success("新增成功"); |
| | | } |
| | | |