|
@ -126,16 +126,16 @@ public class UserDjylServiceImpl extends BaseServiceImpl<UserDjylDao, UserDjylEn |
|
|
} |
|
|
} |
|
|
baseDao.updateById(entity); |
|
|
baseDao.updateById(entity); |
|
|
|
|
|
|
|
|
UserGridRelationEntity entity1 = new UserGridRelationEntity(); |
|
|
UserGridRelationEntity gridRelation = new UserGridRelationEntity(); |
|
|
entity1.setAllDeptIds(parentAndAllDeptDTOResult.getData().getAllDeptIds()); |
|
|
gridRelation.setAllDeptIds(parentAndAllDeptDTOResult.getData().getAllDeptIds()); |
|
|
entity1.setAllDeptNames(parentAndAllDeptDTOResult.getData().getAllDeptNames()); |
|
|
gridRelation.setAllDeptNames(parentAndAllDeptDTOResult.getData().getAllDeptNames()); |
|
|
entity1.setParentDeptIds(parentAndAllDeptDTOResult.getData().getParentDeptIds()); |
|
|
gridRelation.setParentDeptIds(parentAndAllDeptDTOResult.getData().getParentDeptIds()); |
|
|
entity1.setParentDeptNames(parentAndAllDeptDTOResult.getData().getParentDeptNames()); |
|
|
gridRelation.setParentDeptNames(parentAndAllDeptDTOResult.getData().getParentDeptNames()); |
|
|
entity1.setGridId(parentAndAllDeptDTOResult.getData().getGridId()); |
|
|
gridRelation.setGridId(parentAndAllDeptDTOResult.getData().getGridId()); |
|
|
entity1.setGrid(parentAndAllDeptDTOResult.getData().getGrid()); |
|
|
gridRelation.setGrid(parentAndAllDeptDTOResult.getData().getGrid()); |
|
|
LambdaUpdateWrapper<UserGridRelationEntity> updateWrapper = Wrappers.lambdaUpdate(); |
|
|
LambdaUpdateWrapper<UserGridRelationEntity> updateWrapper = Wrappers.lambdaUpdate(); |
|
|
updateWrapper.eq(UserGridRelationEntity::getUserId, entity.getId()); |
|
|
updateWrapper.eq(UserGridRelationEntity::getUserId, entity.getId()); |
|
|
userGridRelationService.update(entity1, updateWrapper); |
|
|
userGridRelationService.update(gridRelation, updateWrapper); |
|
|
|
|
|
|
|
|
return new Result<String>().ok("修改成功"); |
|
|
return new Result<String>().ok("修改成功"); |
|
|
} |
|
|
} |
|
|