使用枚举

This commit is contained in:
2023-07-25 16:01:41 +08:00
parent 4249d04c61
commit 2e4a353c5d

View File

@@ -2175,7 +2175,7 @@ public class OrderBasicInfoServiceImpl implements IOrderBasicInfoService {
if (orderInfo == null) {
throw new BusinessException(ReturnCodeEnum.CODE_QUERY_ORDER_NULL_ERROR);
}
if (!StringUtils.equals(orderInfo.getPayStatus(), "0")) {
if (!StringUtils.equals(orderInfo.getPayStatus(), OrderPayStatusEnum.unpaid.getValue())) {
// 订单已支付
throw new BusinessException(ReturnCodeEnum.CODE_ORDER_IS_NOT_TO_BE_PAID_ERROR);
}