|
|
@ -370,6 +370,30 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
staffEntity.setWorkType(fromDTO.getWorkType()); |
|
|
|
staffEntity.setEnableFlag(CustomerStaffConstant.ENABLE); |
|
|
|
staffEntity.setPassword(PasswordUtils.encode("12345678")); |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getRemark())){ |
|
|
|
staffEntity.setRemark(fromDTO.getRemark()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getAddress())){ |
|
|
|
staffEntity.setAddress(fromDTO.getAddress()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getPartyPosition())){ |
|
|
|
staffEntity.setPartyPosition(fromDTO.getPartyPosition()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getViliagePosition())){ |
|
|
|
staffEntity.setViliagePosition(fromDTO.getViliagePosition()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getDuty())){ |
|
|
|
staffEntity.setDelFlag(fromDTO.getDuty()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getIdCard())){ |
|
|
|
staffEntity.setIdCard(fromDTO.getIdCard()); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(fromDTO.getCulture())){ |
|
|
|
staffEntity.setCulture(fromDTO.getCulture()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
baseDao.insert(staffEntity); |
|
|
|
|
|
|
|
//工作人员角色关联表
|
|
|
|