| | |
| | | String account=zc.getUsername(); |
| | | if (type.equals("1")) { |
| | | iUserService.updateAcc(stype,account); |
| | | zcService.saveOrUpdate(zc); |
| | | } else { |
| | | iUserService.delete(account); |
| | | zcService.deleteZc(account); |
| | | } |
| | | return R.status(zcService.saveOrUpdate(zc)); |
| | | return R.success("成功"); |
| | | } |
| | | |
| | | |
| | |
| | | user.setExamination_mx("正常"); |
| | | user.setCardid(zc.getCardid()); |
| | | user.setStype("0"); |
| | | user.setAddress(zc.getAddress()); |
| | | iUserService.saveOrUpdate(user); |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid)" + |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid,address)" + |
| | | "values(" + "'" + zc.getId() + "'" + |
| | | "," + "'" + zc.getUsername() + "'" + |
| | | "," + "'" + zc.getPassword() + "'" + |
| | |
| | | "," + "'" + zc.getDeptid() + "'" + |
| | | "," + "'" + zc.getParentId() + "'" + |
| | | "," + "'" + zc.getJurisdiction() + "'" + |
| | | "," + "'" + zc.getCardid() + "'" + ")"; |
| | | "," + "'" + zc.getCardid() + "'" + |
| | | "," + "'" + zc.getAddress() + "'" |
| | | + ")"; |
| | | FtpUtil.sqlFileUpload(s); |
| | | return R.success("新增成功"); |
| | | } |
| | |
| | | @GetMapping("/inspect") |
| | | public R inspect(String username) { |
| | | Integer userCount = iUserService.selectCount(username); |
| | | if (userCount > 0) { |
| | | Integer integer = zcService.selecyZcCount(username); |
| | | if (userCount > 0 || integer > 0) { |
| | | throw new org.springblade.core.log.exception.ServiceException(StringUtil.format("当前用户{}已存在!", username)); |
| | | } |
| | | return R.success("当前用户不存在!"); |