| 
					
				 | 
			
			
				@@ -2,17 +2,22 @@ package com.fs.store.domain; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.math.BigDecimal; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.StringJoiner; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.fasterxml.jackson.annotation.JsonIgnore; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.common.annotation.Excel; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.common.core.domain.BaseEntity; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fs.store.dto.StoreOrderProductDTO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import lombok.Data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import org.springframework.util.CollectionUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 商品组合套餐对象 fs_store_product_package 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- *  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @author fs 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @date 2022-07-14 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+@Data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 public class FsStoreProductPackage extends BaseEntity 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private static final long serialVersionUID = 1L; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -66,149 +71,53 @@ public class FsStoreProductPackage extends BaseEntity 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private Integer status; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    List<StoreOrderProductDTO> productList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Integer getStatus() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return status; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setStatus(Integer status) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.status = status; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Integer getSort() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return sort; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setSort(Integer sort) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.sort = sort; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Integer getCateId() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return cateId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分期赠送优惠券-是否开启 0未开启 1开启 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private Integer icgEnable; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分期赠送优惠券-月数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private Integer icgMonth; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分期赠送优惠券-优惠券列表(数据库存储) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @JsonIgnore 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private String icgCoupons; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 分期赠送优惠券-优惠券列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private Integer[] icgCouponsId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public String getIcgCoupons() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if(icgCouponsId != null && icgCouponsId.length > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            StringJoiner stringJoiner = new StringJoiner(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (Integer id : icgCouponsId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                stringJoiner.add(id.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            icgCoupons = stringJoiner.toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return icgCoupons; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * 获取优惠券列表ID 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     * @return 优惠券列表id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public Integer[] getIcgCouponsId() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (icgCouponsId == null && icgCoupons != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            String[] split = icgCoupons.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            icgCouponsId = new Integer[split.length]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            for (int i = 0; i < split.length; i++) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                icgCouponsId[i] = Integer.parseInt(split[i].trim()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return icgCouponsId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setCateId(Integer cateId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.cateId = cateId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getImages() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return images; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setImages(String images) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.images = images; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public List<StoreOrderProductDTO> getProductList() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return productList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setProductList(List<StoreOrderProductDTO> productList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.productList = productList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Integer getLimitCount() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return limitCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setLimitCount(Integer limitCount) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.limitCount = limitCount; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Integer getPayType() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return payType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setPayType(Integer payType) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.payType = payType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static long getSerialVersionUID() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return serialVersionUID; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Long getPackageId() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return packageId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setPackageId(Long packageId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.packageId = packageId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getTitle() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setTitle(String title) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.title = title; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getDescs() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return descs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setDescs(String descs) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.descs = descs; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getContent() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return content; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setContent(String content) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.content = content; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getImgUrl() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return imgUrl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setImgUrl(String imgUrl) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.imgUrl = imgUrl; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public BigDecimal getMoney() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return money; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setMoney(BigDecimal money) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.money = money; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public BigDecimal getPayMoney() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return payMoney; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setPayMoney(BigDecimal payMoney) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.payMoney = payMoney; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Long getCompanyId() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return companyId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setCompanyId(Long companyId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.companyId = companyId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public Long getDeptId() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return deptId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setDeptId(Long deptId) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.deptId = deptId; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public String getProducts() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return products; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    List<StoreOrderProductDTO> productList; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public void setProducts(String products) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.products = products; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |