|
@@ -83,6 +83,14 @@ public class LifeCouponPlatformServiceImpl extends ServiceImpl<LifeCouponMapper,
|
|
|
lifeCoupon.setDiscountTagName(String.join(",", businessTypeNames));
|
|
lifeCoupon.setDiscountTagName(String.join(",", businessTypeNames));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (lifeCoupon.getPurchaseLimitCode() == null || "".equals(lifeCoupon.getPurchaseLimitCode())) {
|
|
|
|
|
+ lifeCoupon.setPurchaseLimitCode("0");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (lifeCoupon.getSingleCanUse() == null || "".equals(lifeCoupon.getSingleCanUse())) {
|
|
|
|
|
+ lifeCoupon.setSingleCanUse("0");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
lifeCoupon.setStatus(1);
|
|
lifeCoupon.setStatus(1);
|
|
|
if (StringUtils.isEmpty(lifeCoupon.getId())) {
|
|
if (StringUtils.isEmpty(lifeCoupon.getId())) {
|
|
|
lifeCoupon.setType(1);
|
|
lifeCoupon.setType(1);
|