fix: 优化弃用状态

This commit is contained in:
misworga831 2023-09-18 10:00:44 +08:00
parent 49af6777ee
commit 061d924d46
2 changed files with 0 additions and 14 deletions

View File

@ -16,14 +16,6 @@ public enum ComplaintStatusEnum {
* 已撤销
*/
CANCEL("已撤销"),
/**
* 待申诉
*/
WAIT_APPEAL("待申诉"),
/**
* 对话中
*/
COMMUNICATION("对话中"),
/**
* 等待仲裁
*/

View File

@ -255,12 +255,6 @@ public class OrderComplaintServiceImpl extends ServiceImpl<OrderComplaintMapper,
throw new ServiceException(ResultCode.COMPLAINT_ARBITRATION_RESULT_ERROR);
}
orderComplaint.setArbitrationResult(operationParam.getArbitrationResult());
} else if (complaintStatusEnum == ComplaintStatusEnum.COMMUNICATION) {
if (CharSequenceUtil.isEmpty(operationParam.getAppealContent()) || operationParam.getImages() == null) {
throw new ServiceException(ResultCode.COMPLAINT_APPEAL_CONTENT_ERROR);
}
orderComplaint.setContent(operationParam.getAppealContent());
orderComplaint.setImages(operationParam.getImages().get(0));
}
}