From 690274fb47237f3fa8d38912cb558c84a0349028 Mon Sep 17 00:00:00 2001 From: luogw <3132758203@qq.com> Date: Fri, 13 Mar 2026 16:48:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E7=94=B3=E8=AF=89=E7=90=86?= =?UTF-8?q?=E7=94=B1=E5=92=8C=E5=AE=A1=E6=89=B9=E6=84=8F=E8=A7=81=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/service/Impl/CheckAppealDomainServiceImpl.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/com/project/appeal/domain/service/Impl/CheckAppealDomainServiceImpl.java b/src/main/java/com/project/appeal/domain/service/Impl/CheckAppealDomainServiceImpl.java index ea60222..7bb029e 100644 --- a/src/main/java/com/project/appeal/domain/service/Impl/CheckAppealDomainServiceImpl.java +++ b/src/main/java/com/project/appeal/domain/service/Impl/CheckAppealDomainServiceImpl.java @@ -37,6 +37,10 @@ public class CheckAppealDomainServiceImpl implements CheckAppealDomainService { if (ObjectUtil.isEmpty(appealDTO.getId()) && StringUtils.isBlank(appealDTO.getRemark())){ throw new MissingParameterException("缺少申诉理由"); } + if (appealDTO.getRemark().length() > 500){ + throw new MissingParameterException("申诉理由不能超过500字符"); + } + if (ObjectUtil.isEmpty(appealDTO.getId()) && !appealDTO.getStatus().equals(AppealStatusEnum.PENDING_REVIEW.getValue())){ throw new BusinessErrorException("申诉状态错误"); } @@ -46,6 +50,9 @@ public class CheckAppealDomainServiceImpl implements CheckAppealDomainService { if (!appealDTO.getStatus().equals(AppealStatusEnum.PENDING_REVIEW.getValue()) && StringUtils.isBlank(appealDTO.getReason())){ throw new BusinessErrorException("缺少审批意见"); } + if (appealDTO.getReason().length() > 500){ + throw new MissingParameterException("审批意见不能超过500字符"); + } //校验题目是否以申诉过 if (ObjectUtil.isEmpty(appealDTO.getId()) ){ QueryWrapper entityQueryWrapper = new QueryWrapper<>();