|
|
@ -73,11 +73,13 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
if (!CollectionUtils.isEmpty(orgList.getData()) && !CollectionUtils.isEmpty(userList.getData())) { |
|
|
|
for (CustomerGridStaffListResultDTO gs : orgList.getData()) { |
|
|
|
if (map.containsKey(gs.getGridUserId())) { |
|
|
|
GridstaffInfoPingyinEntity entity = ConvertUtils.sourceToTarget(map.get(gs.getGridUserId()), GridstaffInfoPingyinEntity.class); |
|
|
|
GridStaffUploadResultDTO us = map.get(gs.getGridUserId()); |
|
|
|
GridstaffInfoPingyinEntity entity = ConvertUtils.sourceToTarget(us, GridstaffInfoPingyinEntity.class); |
|
|
|
entity.setQxBm("370124"); |
|
|
|
entity.setQxMc("平阴县"); |
|
|
|
entity.setGridCode(gs.getGridCode()); |
|
|
|
entity.setGridName(gs.getGridName()); |
|
|
|
entity.setSex("0".equals(us.getSex()) ? "9" : us.getSex()); |
|
|
|
entity.setIsLeave("N"); |
|
|
|
entityList.add(entity); |
|
|
|
} |
|
|
@ -101,7 +103,7 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void getStaffBaseInfo(StaffBaseInfoFormDTO formDTO) { |
|
|
|
//1.查询网格基础信息
|
|
|
|
//1.查询工作人员网格信息和基础信息
|
|
|
|
com.epmet.dto.user.form.StaffBaseInfoFormDTO formDTO1 = ConvertUtils.sourceToTarget(formDTO, com.epmet.dto.user.form.StaffBaseInfoFormDTO.class); |
|
|
|
Result<List<GridUserInfoDTO>> result = dataStatisticalOpenFeignClient.getStaffBaseInfo(formDTO1); |
|
|
|
if (!result.success()) { |
|
|
@ -115,9 +117,9 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
entity.setQxMc("平阴县"); |
|
|
|
entity.setGridCode(r.getCode()); |
|
|
|
entity.setGridName(r.getGridName()); |
|
|
|
entity.setUserType("01"); |
|
|
|
entity.setIsLeave("N"); |
|
|
|
entity.setGridUserId(r.getStaffId()); |
|
|
|
entity.setCardNum(r.getIdCard()); |
|
|
|
if (!"staff_create".equals(formDTO.getType())) { |
|
|
|
baseDao.edit(entity); |
|
|
|
}else { |
|
|
@ -125,7 +127,6 @@ public class GridstaffInfoPingyinServiceImpl extends BaseServiceImpl<GridstaffIn |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|