Browse Source

完善

master
lichao 1 year ago
parent
commit
afc3a827eb
  1. 5
      epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyOrgLeaderServiceImpl.java

5
epmet-module/resi-partymember/resi-partymember-server/src/main/java/com/epmet/modules/partyOrg/service/impl/IcPartyOrgLeaderServiceImpl.java

@ -65,10 +65,13 @@ public class IcPartyOrgLeaderServiceImpl extends BaseServiceImpl<IcPartyOrgLeade
private QueryWrapper<IcPartyOrgLeaderEntity> getWrapper(Map<String, Object> params){ private QueryWrapper<IcPartyOrgLeaderEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP); String id = (String)params.get(FieldConstant.ID_HUMP);
String partyOrgId = (String)params.get("partyOrgId");
QueryWrapper<IcPartyOrgLeaderEntity> wrapper = new QueryWrapper<>(); QueryWrapper<IcPartyOrgLeaderEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
wrapper.eq(StringUtils.isNotBlank(partyOrgId), "PARTY_ORG_ID", partyOrgId);
return wrapper; return wrapper;
} }
@ -82,7 +85,7 @@ public class IcPartyOrgLeaderServiceImpl extends BaseServiceImpl<IcPartyOrgLeade
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void save(IcPartyOrgLeaderDTO dto) { public void save(IcPartyOrgLeaderDTO dto) {
IcPartyOrgLeaderEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyOrgLeaderEntity.class); IcPartyOrgLeaderEntity entity = ConvertUtils.sourceToTarget(dto, IcPartyOrgLeaderEntity.class);
insert(entity); saveOrUpdate(entity);
} }
@Override @Override

Loading…
Cancel
Save