From 444ccf99d2c5f22d24ea7d664180a644ae2ba524 Mon Sep 17 00:00:00 2001 From: winter Date: Fri, 2 Dec 2022 19:03:36 +0800 Subject: [PATCH] fix bug --- .../java/com/iformall/service/impl/WxCouponServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java index 66f2e02ef..c3c44cfff 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCouponServiceImpl.java @@ -590,6 +590,9 @@ public class WxCouponServiceImpl implements WxCouponService { record.setCreateDate(new Date()); record.setUpdateDate(new Date()); + if (null == record.getBusiness()) { + record.setBusiness(EnumBusiness.BUSINESS_ID6.getCode()); + } wxCouponMapper.insert(record); } else { @@ -662,6 +665,9 @@ public class WxCouponServiceImpl implements WxCouponService { } record.setUpdateDate(new Date()); + if (null == record.getBusiness()) { + record.setBusiness(EnumBusiness.BUSINESS_ID6.getCode()); + } wxCouponMapper.updateById(record); }