Commit 289afe63 by zhiwj

提交接口

parent 56bae8da
......@@ -224,7 +224,7 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
// 是否超过次数
List<TabEvaluateReply> replyList = this.evaluateReplyService.listEvaluateReply(memberReplyDTO.getEnterpriseId(), memberReplyDTO.getEvaluateId(), Constants.OPEN);
if (CollectionUtils.isNotEmpty(replyList)) {
if (evaluateOrderConfig.getReviewTimes() <= replyList.size()) {
if (evaluateOrderConfig.getReviewTimes() + 1 < replyList.size()) {
return EnterpriseServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "已经超过最大追评次数,无法继续追评");
}
}
......@@ -372,7 +372,7 @@ public class EvaluateOutApiServiceImpl implements EvaluateOutApiService {
} else {
// 是否追评超过次数
List<TabEvaluateReply> replyList = this.evaluateReplyService.listEvaluateReply(evaluate.getEnterpriseId(), evaluate.getEvaluateId(), Constants.OPEN);
if (CollectionUtils.isNotEmpty(replyList) && evaluateOrderConfig.getReviewTimes() <= replyList.size()) {
if (CollectionUtils.isNotEmpty(replyList) && evaluateOrderConfig.getReviewTimes() + 1 < replyList.size()) {
// 追评超过次数
resultMap.put(statusQO.getOrderId(), OrderReplyEnum.REPLY_OVER_MAX_TIMES.getCode());
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment