Browse Source

福利resiUserId

master
yinzuomei 3 years ago
parent
commit
5ee569aea6
  1. 2
      epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java
  2. 8
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcMoveInRecordServiceImpl.java

2
epmet-user/epmet-user-server/src/main/java/com/epmet/controller/IcResiUserController.java

@ -680,7 +680,7 @@ public class IcResiUserController implements ResultDataResolver {
* @param formDTO * @param formDTO
* @return * @return
* @LoginUser TokenDto tokenDto, * @LoginUser TokenDto tokenDto,
* 新增需求需求人列表展示当前工作人员所属组织+页面已选择所属网格 下的居民列 * 新增需求需求人列表展示当前工作人员所属组织+页面已选择所属网格 下的居民列
*/ */
@PostMapping("demandusers") @PostMapping("demandusers")
public Result<List<DemandUserResDTO>> queryDemandUsers(@RequestBody DemandUserFormDTO formDTO) { public Result<List<DemandUserResDTO>> queryDemandUsers(@RequestBody DemandUserFormDTO formDTO) {

8
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/IcMoveInRecordServiceImpl.java

@ -145,7 +145,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
&& StringUtils.isNotBlank(formDTO.getIsReplace()) && !"0".equals(formDTO.getIsReplace()) && !"1".equals(formDTO.getIsReplace())) { && StringUtils.isNotBlank(formDTO.getIsReplace()) && !"0".equals(formDTO.getIsReplace()) && !"1".equals(formDTO.getIsReplace())) {
throw new EpmetException(EpmetErrorCode.IC_MOVE_IN.getCode(), EpmetErrorCode.IC_MOVE_IN.getMsg()); throw new EpmetException(EpmetErrorCode.IC_MOVE_IN.getCode(), EpmetErrorCode.IC_MOVE_IN.getMsg());
} }
String resiUserId="";
//4.勾选了补充居民信息的 //4.勾选了补充居民信息的
if ("1".equals(formDTO.getIsCheck())) { if ("1".equals(formDTO.getIsCheck())) {
IcResiUserTransferFormDTO change = new IcResiUserTransferFormDTO(); IcResiUserTransferFormDTO change = new IcResiUserTransferFormDTO();
@ -167,6 +167,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId()) if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId())
&& "0".equals(resiDTO.getStatus()) && !resiDTO.getResiHomeId().equals(formDTO.getHomeId()) && "0".equals(resiDTO.getStatus()) && !resiDTO.getResiHomeId().equals(formDTO.getHomeId())
&& "1".equals(formDTO.getIsReplace())) { && "1".equals(formDTO.getIsReplace())) {
resiUserId=resiDTO.getIcResiUserId();
entity.setId(resiDTO.getIcResiUserId()); entity.setId(resiDTO.getIcResiUserId());
change.setOrigin("change"); change.setOrigin("change");
change.setIcUserId(entity.getId()); change.setIcUserId(entity.getId());
@ -175,6 +176,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
icResiUserService.updateById(entity); icResiUserService.updateById(entity);
} else if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId()) && "1".equals(resiDTO.getStatus())) { } else if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId()) && "1".equals(resiDTO.getStatus())) {
//4-2.本社区下游离状态居民【更新居民信息,插入调动记录,生成变更记录、变更明细】 //4-2.本社区下游离状态居民【更新居民信息,插入调动记录,生成变更记录、变更明细】
resiUserId=resiDTO.getIcResiUserId();
entity.setId(resiDTO.getIcResiUserId()); entity.setId(resiDTO.getIcResiUserId());
change.setIcUserId(entity.getId()); change.setIcUserId(entity.getId());
change.setOrigin("in"); change.setOrigin("in");
@ -182,6 +184,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
icResiUserService.updateById(entity); icResiUserService.updateById(entity);
} else if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && !staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId())) { } else if (StringUtils.isNotBlank(resiDTO.getResiAgencyId()) && !staffInfo.getAgencyId().equals(resiDTO.getResiAgencyId())) {
//4-3.非本社区下游离状态居民【更新居民信息,插入调动记录,生成变更记录、变更明细】 //4-3.非本社区下游离状态居民【更新居民信息,插入调动记录,生成变更记录、变更明细】
resiUserId=resiDTO.getIcResiUserId();
entity.setId(resiDTO.getIcResiUserId()); entity.setId(resiDTO.getIcResiUserId());
entity.setAgencyId(staffInfo.getAgencyId()); entity.setAgencyId(staffInfo.getAgencyId());
entity.setPids(staffInfo.getAgencyPIds()); entity.setPids(staffInfo.getAgencyPIds());
@ -199,6 +202,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
change.setOrigin("add"); change.setOrigin("add");
change.setIcUserId(entity.getId()); change.setIcUserId(entity.getId());
icUserTransferRecordService.moveResi(change); icUserTransferRecordService.moveResi(change);
resiUserId=entity.getId();
} }
} }
@ -211,7 +215,7 @@ public class IcMoveInRecordServiceImpl extends BaseServiceImpl<IcMoveInRecordDao
//6.判断调用是否享受福利接口 //6.判断调用是否享受福利接口
if("1".equals(formDTO.getIsWelfare())){ if("1".equals(formDTO.getIsWelfare())){
ChangeWelfareDTO formDto = new ChangeWelfareDTO(); ChangeWelfareDTO formDto = new ChangeWelfareDTO();
formDto.setUserId(resiDTO.getIcResiUserId()); formDto.setUserId(resiUserId);
formDto.setName(formDTO.getName()); formDto.setName(formDTO.getName());
formDto.setIdCard(formDTO.getIdCard()); formDto.setIdCard(formDTO.getIdCard());
formDto.setMobile(formDTO.getMobile()); formDto.setMobile(formDTO.getMobile());

Loading…
Cancel
Save