【添加】添加收到请求的日志

This commit is contained in:
zer0Black
2023-10-05 12:42:08 +08:00
parent c365c7b5fd
commit 2eba169534
4 changed files with 16 additions and 0 deletions
@@ -261,6 +261,8 @@ public class SyncIamController {
*/
@PostMapping({"/bpmcCreate"})
public BpmcResponseDto bpmcCreate(@RequestBody BpmcAcceptDto bpmcAcceptDto) throws JsonProcessingException {
log.info("统一权限服务平台请求数据:{}", bpmcAcceptDto.toString());
if (StrUtil.isEmpty(bpmcAcceptDto.getType())){
return BpmcResponseDto.error("接口类型(type)未传参,请检查");
}
@@ -2,11 +2,13 @@ package com.jero.modules.docking.iam.dto;
import com.jero.modules.docking.iam.annotation.IamProperty;
import lombok.Data;
import lombok.ToString;
/**
* IAM的组织实体,接收IAM传递的组织数据
*/
@Data
@ToString
public class IamOrgAcceptDto extends IamCommonAcceptDto {
/**
@@ -1,11 +1,13 @@
package com.jero.modules.docking.iam.dto.bpmc;
import lombok.Data;
import lombok.ToString;
/**
* 和竹云统一权限服务平台对接的实体
*/
@Data
@ToString
public class BpmcAcceptDto {
/**
@@ -242,6 +242,8 @@ public class SyncIamService {
* @return
*/
public IamCommonResponseDto userUpdateService(IamUserAcceptDto userAcceptDto){
log.info("用户更新收到的解密后数据:{}", userAcceptDto.toString());
if (userAcceptDto == null || StrUtil.isEmpty(userAcceptDto.getBimUid())){
throw new IamGlobalException(userAcceptDto.getBimRequestId(), "用户id(bimUid)为空,无法进行用户信息更新");
}
@@ -395,6 +397,8 @@ public class SyncIamService {
* @return
*/
public IamCommonResponseDto userDeleteService(IamUserAcceptDto userAcceptDto){
log.info("用户删除收到的解密后数据:{}", userAcceptDto.toString());
if (userAcceptDto == null || StrUtil.isEmpty(userAcceptDto.getBimUid())){
throw new IamGlobalException(userAcceptDto.getBimRequestId(), "用户id(bimUid)为空,无法进行用户删除");
}
@@ -415,6 +419,8 @@ public class SyncIamService {
* @return
*/
public IamOrgCreateResponse orgCreateService(IamOrgAcceptDto orgAcceptDto){
log.info("组织创建收到的解密后数据:{}", orgAcceptDto.toString());
if (orgAcceptDto == null || StrUtil.isEmpty(orgAcceptDto.getSrmsOrgCode())){
throw new IamGlobalException(orgAcceptDto.getBimRequestId(), "机构编码为空,无法进行数据存储");
}
@@ -480,6 +486,8 @@ public class SyncIamService {
* @return
*/
public IamCommonResponseDto orgUpdateService(IamOrgAcceptDto orgAcceptDto){
log.info("组织更新收到的解密后数据:{}", orgAcceptDto.toString());
if (orgAcceptDto == null || StrUtil.isEmpty(orgAcceptDto.getBimOrgId())){
throw new IamGlobalException(orgAcceptDto.getBimRequestId(), "机构id为空,无法进行组织信息更新");
}
@@ -564,6 +572,8 @@ public class SyncIamService {
* @return
*/
public IamCommonResponseDto orgDeleteService(IamOrgAcceptDto orgAcceptDto){
log.info("组织删除收到的解密后数据:{}", orgAcceptDto.toString());
if (orgAcceptDto == null || StrUtil.isEmpty(orgAcceptDto.getBimOrgId())){
throw new IamGlobalException(orgAcceptDto.getBimRequestId(), "用户id(bimUid)为空,无法进行组织删除");
}