资产授权

master
冷调 2024-09-01 22:17:46 +08:00
parent 7d5a95c4d1
commit 1dcc48fe7e
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ public class AssetAccreditServiceImpl extends ServiceImpl<AssetAccreditMapper, A
@Override @Override
public List<AssetAccredit> getList(AssetAccreditQueryReq assetAccreditQueryReq) { public List<AssetAccredit> getList(AssetAccreditQueryReq assetAccreditQueryReq) {
if(StringUtils.isNotNull(assetAccreditQueryReq.getIdType())){ if(!StringUtils.isNotNull(assetAccreditQueryReq.getIdType())){
throw new RuntimeException("授权类型不能为空"); throw new RuntimeException("授权类型不能为空");
} }
if(StringUtils.isNotNull(assetAccreditQueryReq.getDataType())){ if(!StringUtils.isNotNull(assetAccreditQueryReq.getDataType())){
throw new RuntimeException("授权数据类型不能为空"); throw new RuntimeException("授权数据类型不能为空");
} }
List<AssetAccredit> list = list(new LambdaQueryWrapper<>() {{ List<AssetAccredit> list = list(new LambdaQueryWrapper<>() {{