订单审核流程优化
This commit is contained in:
parent
4c4038a647
commit
a231bc0059
|
|
@ -397,7 +397,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
|
||||||
private void validateOrdersIfAudit(Long id) {
|
private void validateOrdersIfAudit(Long id) {
|
||||||
OrdersDO ordersDO = ordersMapper.selectById(id);
|
OrdersDO ordersDO = ordersMapper.selectById(id);
|
||||||
ArrayList<Long> longs = Lists.newArrayList(120L, 125L, 200L);
|
ArrayList<Long> longs = Lists.newArrayList(120L, 125L, 200L);
|
||||||
if (longs.contains(ordersDO.getStatus())) {
|
if (!longs.contains(ordersDO.getStatus())) {
|
||||||
throw exception(ORDERS_NOT_AUDIT);
|
throw exception(ORDERS_NOT_AUDIT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue