退款问题
This commit is contained in:
@@ -347,7 +347,7 @@ public class GbOrderServiceImpl extends ServiceImpl<GbOrderMapper, GbOrder> impl
|
|||||||
.eq(GbOrderDetail::getIsDel, YesNoEnum.NO.value())
|
.eq(GbOrderDetail::getIsDel, YesNoEnum.NO.value())
|
||||||
.eq(GbOrderDetail::getUserId, userId));
|
.eq(GbOrderDetail::getUserId, userId));
|
||||||
AssertUtil.isNull(record, "取消失败,订单不存在");
|
AssertUtil.isNull(record, "取消失败,订单不存在");
|
||||||
if (!"待退款".equals(record.getStatus())) {
|
if (!"退款中".equals(record.getStatus())) {
|
||||||
throw new CzgException("取消失败,订单不处于退款中");
|
throw new CzgException("取消失败,订单不处于退款中");
|
||||||
}
|
}
|
||||||
boolean success = exists(query().eq(GbOrder::getGroupOrderNo, record.getGroupOrderNo())
|
boolean success = exists(query().eq(GbOrder::getGroupOrderNo, record.getGroupOrderNo())
|
||||||
|
|||||||
Reference in New Issue
Block a user