| | |
| | | zc.setPhone(phone); |
| | | |
| | | zcService.inster(zc); |
| | | |
| | | System.out.println("插入id++++++++++++"+zc.getId()); |
| | | //内网储存完整数据 |
| | | String s = "insert into act_zc(id,username,password,sname,sex,phone,zctime,parent_id,jurisdiction,cardid,address)" + |
| | | "values(" + "'" + zc.getId() + "'" + |
| | |
| | | "," + "'" + zc.getJurisdiction() + "'" + |
| | | "," + "'" + cardids + "'" + |
| | | "," + "'" + zc.getAddress() + "'" |
| | | + ");" |
| | | + |
| | | "insert into act_zc(account,password,real_name,sex,phone,workjurisdiction,role_id,jurisdiction,cardid,address)" + |
| | | "values(" + |
| | | "'" + zc.getUsername() + "'" + |
| | | "," + "'" + zc.getPassword() + "'" + |
| | | "," + "'" + names + "'" + |
| | | "," + "'" + zc.getSex() + "'" + |
| | | "," + "'" + phones + "'" + |
| | | "," + "'" + zc.getWorkjurisdiction() + "'" + |
| | | "," + "'" + zc.getParentId() + "'" + |
| | | "," + "'" + zc.getJurisdiction() + "'" + |
| | | "," + "'" + cardids + "'" + |
| | | "," + "'" + zc.getAddress() + "'" |
| | | + ")"; |
| | | |
| | | System.out.println("插入语句++++++++++++"+s); |
| | | //同时新增到用户表 |
| | | User user = new User(); |
| | | user.setAccount(zc.getUsername()); |