|
|
@ -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); |
|
|
|
|
|
|
|
//清空权限关联
|
|
|
|