|
@@ -52,16 +52,15 @@ public class ProofGroupService extends ServiceImpl<ProofGroupMapper, ProofGroup>
|
|
|
if (projectId == null) {
|
|
|
throw new XiaoShiException("projectId不能为空");
|
|
|
}
|
|
|
- if (claimId == null) {
|
|
|
- throw new XiaoShiException("claimId不能为空");
|
|
|
- }
|
|
|
if (statutesId == null) {
|
|
|
throw new XiaoShiException("invalidStatutesId不能为空");
|
|
|
}
|
|
|
LambdaQueryWrapper<InvalidStatutes> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
queryWrapper.eq(InvalidStatutes::getStatutesId, statutesId)
|
|
|
- .eq(InvalidStatutes::getClaimId, claimId)
|
|
|
.eq(InvalidStatutes::getProjectId, projectId);
|
|
|
+ if (claimId != null) {
|
|
|
+ queryWrapper.eq(InvalidStatutes::getClaimId, claimId);
|
|
|
+ }
|
|
|
InvalidStatutes invalidStatutes = invalidStatutesService.getOne(queryWrapper, false);
|
|
|
if (invalidStatutes == null) {
|
|
|
throw new XiaoShiException("查询无效法条错误");
|