修复一下bug
This commit is contained in:
@@ -789,7 +789,7 @@ public class BuyOrderController {
|
||||
*/
|
||||
private BigDecimal useCouponAmount(BuyOrder buyOrder) {
|
||||
Integer couponId = buyOrder.getCouponId();
|
||||
if (couponId != null) {
|
||||
if (couponId != null&&couponId!=0) {
|
||||
CouponHistoryEntity couponHistory = couponHistoryService.getById(couponId);
|
||||
couponHistory.setUseStatus(1);
|
||||
couponHistory.setUseTime(new Date());
|
||||
|
||||
Reference in New Issue
Block a user