|
|
@ -21,6 +21,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.IdWorker; |
|
|
|
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|
|
|
import com.epmet.commons.tools.constant.EpmetRoleKeyConstant; |
|
|
|
import com.epmet.commons.tools.constant.FieldConstant; |
|
|
|
import com.epmet.commons.tools.constant.NumConstant; |
|
|
|
import com.epmet.commons.tools.page.PageData; |
|
|
@ -169,6 +170,7 @@ public class UserResiInfoServiceImpl extends BaseServiceImpl<UserResiInfoDao, Us |
|
|
|
*/ |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public void saveUserResiInfo(UserResiInfoDTO userResiInfoDTO) { |
|
|
|
//1:注册信息表新增数据
|
|
|
|
Date date = new Date(); |
|
|
|
userResiInfoDTO.setId(IdWorker.get32UUID()); |
|
|
|
userResiInfoDTO.setDelFlag(NumConstant.ZERO); |
|
|
@ -178,6 +180,13 @@ public class UserResiInfoServiceImpl extends BaseServiceImpl<UserResiInfoDao, Us |
|
|
|
userResiInfoDTO.setUpdatedBy(userResiInfoDTO.getUserId()); |
|
|
|
userResiInfoDTO.setUpdatedTime(date); |
|
|
|
userResiInfoDao.saveUserResiInfo(userResiInfoDTO); |
|
|
|
//2:角色表新增角色数据
|
|
|
|
UserRoleDTO userRoleDTO = new UserRoleDTO(); |
|
|
|
userRoleDTO.setCustomerId(userResiInfoDTO.getCustomerId()); |
|
|
|
userRoleDTO.setUserId(userResiInfoDTO.getUserId()); |
|
|
|
userRoleDTO.setApp(userResiInfoDTO.getApp()); |
|
|
|
userRoleDTO.setRoleKey(EpmetRoleKeyConstant.REGISTERED_RESI); |
|
|
|
userRoleService.saveUserRole(userRoleDTO); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|