Browse Source

如果存在民政端推送机构信息后又进行修改,然后推送主键重复问题,主键不再取民政端的主键作为填报端机构的主键

pull/11/head
yulin 8 months ago
parent
commit
4b80c5a0d8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      mztb/src/main/java/cc/smtweb/biz/mztb/web/controller/MztbController.java

+ 3
- 0
mztb/src/main/java/cc/smtweb/biz/mztb/web/controller/MztbController.java View File

@@ -108,6 +108,7 @@ public class MztbController {
userStatuListExist.add(userStatuList.get(index)); userStatuListExist.add(userStatuList.get(index));
ptIdListExist.add(ptIdList.get(index)); ptIdListExist.add(ptIdList.get(index));
} }
partyInfo.setId(instance.nextId());
existPartyMap.put(map.get("pi_credit_code") + "", insertIndex); existPartyMap.put(map.get("pi_credit_code") + "", insertIndex);
insertIndex++; insertIndex++;


@@ -116,6 +117,8 @@ public class MztbController {
long ptId = Long.parseLong(map.get("pi_id") + ""); long ptId = Long.parseLong(map.get("pi_id") + "");
party.setId(ptId); party.setId(ptId);
party.setCode(ptId + ""); party.setCode(ptId + "");
party.setId(partyInfo.getId());
party.setCode(partyInfo.getId() + "");
party.setName(partyInfo.getPartyName()); party.setName(partyInfo.getPartyName());
party.setType(101); party.setType(101);
party.setAreaId(Long.parseLong(partyInfo.getAreaCode())); party.setAreaId(Long.parseLong(partyInfo.getAreaCode()));


Loading…
Cancel
Save