Browse Source

用户详情、修改

master
lichao 2 years ago
parent
commit
8ae98006d2
  1. 35
      epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/epmetuser/CustomerStaffDTO.java
  2. 39
      epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/govorg/form/StaffDetailV2FormDTO.java
  3. 29
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/StaffInitResultDTO.java
  4. 13
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

35
epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/epmetuser/CustomerStaffDTO.java

@ -134,4 +134,39 @@ public class CustomerStaffDTO implements Serializable {
*/
private String password;
/**
* 烟台用当前登录用户
*/
private String currentUserId;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
/**
* 身份证
*/
private String idCard;
}

39
epmet-module/data-aggregator/data-aggregator-client/src/main/java/com/epmet/dataaggre/dto/govorg/form/StaffDetailV2FormDTO.java

@ -48,4 +48,43 @@ public class StaffDetailV2FormDTO implements Serializable {
private List<String> szsqRoles;
private String customerId;
/**
* 烟台用当前登录用户
*/
private String currentUserId;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
/**
* 身份证
*/
private String idCard;
/**
* 居住地址
*/
private String address;
}

29
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/StaffInitResultDTO.java

@ -55,4 +55,33 @@ public class StaffInitResultDTO implements Serializable {
* xxx-xxx
*/
private String agencyName;
/**
* 烟台需求党组织职务
*/
private String partyPosition;
/**
* 烟台需求村居委员职务
*/
private String viliagePosition;
/**
* 烟台需求工作职责
*/
private String duty;
/**
* 烟台需求备注
*/
private String remark;
/**
* 文化程度
*/
private String culture;
private String address;
}

13
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

@ -304,6 +304,12 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
resultDTO.setWorkType(customerStaffDTO.getWorkType());
resultDTO.setIdCard(customerStaffDTO.getIdCard());
resultDTO.setCustomerId(customerStaffDTO.getCustomerId());
resultDTO.setCulture(customerStaffDTO.getCulture());
resultDTO.setDuty(customerStaffDTO.getDuty());
resultDTO.setPartyPosition(customerStaffDTO.getPartyPosition());
resultDTO.setViliagePosition(customerStaffDTO.getViliagePosition());
resultDTO.setRemark(customerStaffDTO.getRemark());
resultDTO.setAddress(customerStaffDTO.getAddress());
//获取角色列表
GovStaffRoleDTO govStaffRoleDTO = new GovStaffRoleDTO();
govStaffRoleDTO.setCustomerId(fromDTO.getCustomerId());
@ -508,6 +514,13 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
staffEntity.setMobile(fromDTO.getMobile());
staffEntity.setGender(fromDTO.getGender());
staffEntity.setWorkType(fromDTO.getWorkType());
staffEntity.setIdCard(customerStaffDTO.getIdCard());
staffEntity.setCulture(customerStaffDTO.getCulture());
staffEntity.setDuty(customerStaffDTO.getDuty());
staffEntity.setPartyPosition(customerStaffDTO.getPartyPosition());
staffEntity.setViliagePosition(customerStaffDTO.getViliagePosition());
staffEntity.setRemark(customerStaffDTO.getRemark());
staffEntity.setAddress(customerStaffDTO.getAddress());
baseDao.updateById(staffEntity);
//清空权限关联

Loading…
Cancel
Save