This commit is contained in:
2024-11-07 09:55:48 +08:00
parent 7d4788cb3a
commit 8b885e206e
2 changed files with 2 additions and 6 deletions

View File

@@ -1,20 +1,16 @@
package cn.ysk.cashier.controller; package cn.ysk.cashier.controller;
import cn.ysk.cashier.annotation.AnonymousAccess;
import cn.ysk.cashier.annotation.Log;
import cn.ysk.cashier.mybatis.entity.TbShopShare; import cn.ysk.cashier.mybatis.entity.TbShopShare;
import cn.ysk.cashier.mybatis.service.TbShopShareService; import cn.ysk.cashier.mybatis.service.TbShopShareService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.io.Serializable;
import java.util.Arrays; import java.util.Arrays;
import java.util.List;
/** /**
* 店铺分享(TbShopShare)表控制层 * 店铺分享(TbShopShare)表控制层

View File

@@ -64,7 +64,7 @@ public class TbShopShare extends Model<TbShopShare> {
public void setRewardCoupon(String rewardCoupon) { public void setRewardCoupon(String rewardCoupon) {
this.rewardCoupon = rewardCoupon; this.rewardCoupon = rewardCoupon;
if(StringUtils.isNotBlank(rewardCoupon)){ if(StringUtils.isNotBlank(rewardCoupon)){
this.newCoupons = JSONUtil.parseJSONStrTList(rewardCoupon,ShareCoupons.class); this.rewardCoupons = JSONUtil.parseJSONStrTList(rewardCoupon,ShareCoupons.class);
} }
} }