Browse Source

增加身份证号显示和录入

master
zhangyuan 3 years ago
parent
commit
4850edbbf4
  1. 4
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/StaffSubmitAccountFromDTO.java
  2. 4
      epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/result/StaffInitResultDTO.java
  3. 3
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

4
epmet-module/gov-org/gov-org-client/src/main/java/com/epmet/dto/form/StaffSubmitAccountFromDTO.java

@ -75,4 +75,8 @@ public class StaffSubmitAccountFromDTO implements Serializable {
* 来源client(PC端:web微信小程序:wxmp)
*/
private String client;
/**
* 身份证号
*/
private String idCard;
}

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

@ -37,6 +37,10 @@ public class StaffInitResultDTO implements Serializable {
* 专兼职
*/
private String workType;
/**
* 身份证号
*/
private String idCard;
/**
* 职责列表
*/

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

@ -287,6 +287,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
resultDTO.setGender(customerStaffDTO.getGender());
resultDTO.setMobile(customerStaffDTO.getMobile());
resultDTO.setWorkType(customerStaffDTO.getWorkType());
resultDTO.setIdCard(customerStaffDTO.getIdCard());
//获取角色列表
GovStaffRoleDTO govStaffRoleDTO = new GovStaffRoleDTO();
govStaffRoleDTO.setCustomerId(fromDTO.getCustomerId());
@ -407,6 +408,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
staffEntity.setWorkType(fromDTO.getWorkType());
staffEntity.setEnableFlag(CustomerStaffConstant.ENABLE);
staffEntity.setPassword(PasswordUtils.encode(fromDTO.getPwd()));
staffEntity.setIdCard(fromDTO.getIdCard());
baseDao.insert(staffEntity);
//工作人员角色关联表
@ -538,6 +540,7 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao,
if (StringUtils.isNotBlank(fromDTO.getPwd())){
staffEntity.setPassword(PasswordUtils.encode(fromDTO.getPwd()));
}
staffEntity.setIdCard(fromDTO.getIdCard());
baseDao.updateById(staffEntity);
//清空权限关联

Loading…
Cancel
Save