添加字段 userAreaName
This commit is contained in:
+9
-2
@@ -5057,7 +5057,7 @@ public class UserApplicationService {
|
||||
* @date 2024/4/2 10:09
|
||||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void addCustomer(CustomerDO customerDO){
|
||||
public UserPo addCustomer(CustomerDO customerDO){
|
||||
UserDO userDO = new UserDO();
|
||||
BeanUtils.copyProperties(customerDO, userDO);
|
||||
userDO.setUserAccount(customerDO.getUserMemberCode());
|
||||
@@ -5077,7 +5077,10 @@ public class UserApplicationService {
|
||||
userDO.setRoleCode(roleEntity.getRoleCode());
|
||||
userDO.setRoleName(roleEntity.getRoleName());
|
||||
userDO.setUserAuthStatus(1);
|
||||
addUser(userDO);
|
||||
UserPo userPo = addUser(userDO);
|
||||
if (userPo != null && userPo.getUserId() != null) {
|
||||
userDO.setUserId(userPo.getUserId());
|
||||
}
|
||||
if (isWT()) {
|
||||
//开启仓配一体 同步托运人信息
|
||||
UserShipperDO userShipperDO = new UserShipperDO();
|
||||
@@ -5093,6 +5096,10 @@ public class UserApplicationService {
|
||||
//保存托运人信息
|
||||
userShipperDomainService.saveUserShipper(userShipperDO);
|
||||
}
|
||||
if (userPo == null || userPo.getUserId() == null) {
|
||||
return userPo;
|
||||
}
|
||||
return userDomainService.selectByUserId(userPo.getUserId());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user