|
@@ -114,9 +114,9 @@ public class MztbController { |
|
|
|
|
|
|
|
|
Party party = new Party(); // 底层机构表 |
|
|
Party party = new Party(); // 底层机构表 |
|
|
party.init(); |
|
|
party.init(); |
|
|
long ptId = Long.parseLong(map.get("pi_id") + ""); |
|
|
|
|
|
party.setId(ptId); |
|
|
|
|
|
party.setCode(ptId + ""); |
|
|
|
|
|
|
|
|
// long ptId = Long.parseLong(map.get("pi_id") + ""); |
|
|
|
|
|
// party.setId(ptId); |
|
|
|
|
|
// party.setCode(ptId + ""); |
|
|
party.setId(partyInfo.getId()); |
|
|
party.setId(partyInfo.getId()); |
|
|
party.setCode(partyInfo.getId() + ""); |
|
|
party.setCode(partyInfo.getId() + ""); |
|
|
party.setName(partyInfo.getPartyName()); |
|
|
party.setName(partyInfo.getPartyName()); |
|
@@ -126,7 +126,7 @@ public class MztbController { |
|
|
sysPartyList.add(party); |
|
|
sysPartyList.add(party); |
|
|
partysInsertList.add(partyInfo); |
|
|
partysInsertList.add(partyInfo); |
|
|
// 添加机构id |
|
|
// 添加机构id |
|
|
ptIdList.add(ptId + ""); |
|
|
|
|
|
|
|
|
ptIdList.add(partyInfo.getId() + ""); |
|
|
|
|
|
|
|
|
User user = new User(); // 底层用户表 |
|
|
User user = new User(); // 底层用户表 |
|
|
user.init(); |
|
|
user.init(); |
|
@@ -149,14 +149,14 @@ public class MztbController { |
|
|
dept.setCode(RandomUtil.randomString(8)); |
|
|
dept.setCode(RandomUtil.randomString(8)); |
|
|
dept.setName("填报部门"); |
|
|
dept.setName("填报部门"); |
|
|
dept.setType("100"); |
|
|
dept.setType("100"); |
|
|
dept.setPtId(ptId); |
|
|
|
|
|
|
|
|
dept.setPtId(partyInfo.getId()); |
|
|
dept.setStatu(0); |
|
|
dept.setStatu(0); |
|
|
deptList.add(dept); |
|
|
deptList.add(dept); |
|
|
|
|
|
|
|
|
UserParty userParty = new UserParty(); //用户机构关联表 |
|
|
UserParty userParty = new UserParty(); //用户机构关联表 |
|
|
long userPartyId = instance.nextId(); |
|
|
long userPartyId = instance.nextId(); |
|
|
userParty.setId(userPartyId); |
|
|
userParty.setId(userPartyId); |
|
|
userParty.setPartyId(ptId); |
|
|
|
|
|
|
|
|
userParty.setPartyId(partyInfo.getId()); |
|
|
userParty.setUserId(userId); |
|
|
userParty.setUserId(userId); |
|
|
userParty.setDeptId(deptId); // 关联部门表 |
|
|
userParty.setDeptId(deptId); // 关联部门表 |
|
|
userPartyList.add(userParty); |
|
|
userPartyList.add(userParty); |
|
|