Browse Source

程序完善

dev
sunyuchao 3 years ago
parent
commit
bb0da98c51
  1. 5
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/user/result/CustomerStaffDTO.java
  2. 5
      epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/user/result/GridUserInfoDTO.java
  3. 1
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/DataReportingServiceImpl.java
  4. 9
      epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GridstaffInfoPingyinServiceImpl.java

5
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/user/result/CustomerStaffDTO.java

@ -134,4 +134,9 @@ public class CustomerStaffDTO implements Serializable {
*/
private String roleName;
/**
* 身份证号
*/
private String idCard;
}

5
epmet-module/data-statistical/data-statistical-client/src/main/java/com/epmet/dto/user/result/GridUserInfoDTO.java

@ -84,7 +84,10 @@ public class GridUserInfoDTO implements Serializable {
*/
private Date updateTime;
/**
* 身份证号
*/
private String idCard;
}

1
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/impl/DataReportingServiceImpl.java

@ -119,6 +119,7 @@ public class DataReportingServiceImpl implements DataReportingService {
st.setPhonenumber(dto.getMobile());
st.setSex(0 == dto.getGender() ? "9" : dto.getGender().toString());
st.setUpdateTime(dto.getUpdatedTime());
st.setIdCard(dto.getIdCard());
}
});

9
epmet-module/open-data-worker/open-data-worker-server/src/main/java/com/epmet/opendata/service/impl/GridstaffInfoPingyinServiceImpl.java

@ -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
}
});
}

Loading…
Cancel
Save