|
|
|
@@ -668,7 +668,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(isolation= Isolation.SERIALIZABLE, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
public void reduceRemainInventory(Long id, Integer remainInventory, Integer number) { |
|
|
|
public void reduceRemainInventory(Long id, Integer number, Integer remainInventory) { |
|
|
|
int num = wxCouponMapper.reduceInventory(id, number, remainInventory); |
|
|
|
if (num == 0) { |
|
|
|
throw new MallinkException(ErrorCode.ORDER_SAVE_ERR); |
|
|
|
@@ -677,7 +677,7 @@ import java.util.stream.Collectors; |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(isolation= Isolation.SERIALIZABLE, propagation = Propagation.REQUIRED, rollbackFor = {Exception.class}) |
|
|
|
public void backRemainInventory(Long id, Integer remainInventory, Integer number) { |
|
|
|
public void backRemainInventory(Long id, Integer number, Integer remainInventory) { |
|
|
|
int num = wxCouponMapper.backInventory(id, number, remainInventory); |
|
|
|
if (num == 0) { |
|
|
|
throw new MallinkException(ErrorCode.REMAIN_BACK_FAIL); |
|
|
|
|