|
|
@@ -1,12 +1,12 @@ |
|
|
package com.simple.domain.po; |
|
|
package com.simple.domain.po; |
|
|
|
|
|
|
|
|
import javax.persistence.*; |
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
import java.math.*; |
|
|
|
|
|
import javax.persistence.Transient; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
import javax.persistence.Id; |
|
|
import javax.persistence.Id; |
|
|
|
|
|
import javax.persistence.Table; |
|
|
|
|
|
import javax.persistence.Transient; |
|
|
import java.io.Serializable; |
|
|
import java.io.Serializable; |
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
@Table(name = "wx_coupon_channel") |
|
|
@Table(name = "wx_coupon_channel") |
|
|
public class WxCouponChannel implements Serializable { |
|
|
public class WxCouponChannel implements Serializable { |
|
|
@@ -50,14 +50,17 @@ public class WxCouponChannel implements Serializable { |
|
|
/*卡券id**/ |
|
|
/*卡券id**/ |
|
|
@io.swagger.annotations.ApiModelProperty(value="卡券id",name="couponId") |
|
|
@io.swagger.annotations.ApiModelProperty(value="卡券id",name="couponId") |
|
|
private Long couponId; |
|
|
private Long couponId; |
|
|
|
|
|
/*券状态,判断是否在前端展示**/ |
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="券状态,判断是否在前端展示",name="couponStatus") |
|
|
|
|
|
private Integer couponStatus; |
|
|
/*券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)**/ |
|
|
/*券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)**/ |
|
|
@io.swagger.annotations.ApiModelProperty(value="券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)",name="type") |
|
|
@io.swagger.annotations.ApiModelProperty(value="券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)",name="type") |
|
|
private Integer type; |
|
|
private Integer type; |
|
|
/*券名称**/ |
|
|
/*券名称**/ |
|
|
@io.swagger.annotations.ApiModelProperty(value="券名称",name="title") |
|
|
@io.swagger.annotations.ApiModelProperty(value="券名称",name="title") |
|
|
private String title; |
|
|
private String title; |
|
|
/*投放频道位置(1.banner图,2.限时抢购)**/ |
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="投放频道位置(1.banner图,2.限时抢购)",name="targetAd") |
|
|
|
|
|
|
|
|
/*投放频道位置(1.列表, 2.限时抢购)**/ |
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="投放频道位置(1.列表, 2.限时抢购)",name="targetAd") |
|
|
private Integer targetAd; |
|
|
private Integer targetAd; |
|
|
/*创建时间**/ |
|
|
/*创建时间**/ |
|
|
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") |
|
|
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") |
|
|
@@ -83,6 +86,12 @@ public class WxCouponChannel implements Serializable { |
|
|
public void setCouponId(Long _couponId) { |
|
|
public void setCouponId(Long _couponId) { |
|
|
couponId = _couponId; |
|
|
couponId = _couponId; |
|
|
} |
|
|
} |
|
|
|
|
|
public Integer getCouponStatus() { |
|
|
|
|
|
return couponStatus; |
|
|
|
|
|
} |
|
|
|
|
|
public void setCouponStatus(Integer _couponStatus) { |
|
|
|
|
|
couponStatus = _couponStatus; |
|
|
|
|
|
} |
|
|
public Integer getType() { |
|
|
public Integer getType() { |
|
|
return type; |
|
|
return type; |
|
|
} |
|
|
} |
|
|
@@ -122,6 +131,7 @@ public class WxCouponChannel implements Serializable { |
|
|
,TenantId_ASC("`tenantId` ASC"),TenantId_DESC("`tenantId` DESC") |
|
|
,TenantId_ASC("`tenantId` ASC"),TenantId_DESC("`tenantId` DESC") |
|
|
,MerchantId_ASC("`merchantId` ASC"),MerchantId_DESC("`merchantId` DESC") |
|
|
,MerchantId_ASC("`merchantId` ASC"),MerchantId_DESC("`merchantId` DESC") |
|
|
,CouponId_ASC("`couponId` ASC"),CouponId_DESC("`couponId` DESC") |
|
|
,CouponId_ASC("`couponId` ASC"),CouponId_DESC("`couponId` DESC") |
|
|
|
|
|
,CouponStatus_ASC("`couponStatus` ASC"),CouponStatus_DESC("`couponStatus` DESC") |
|
|
,Type_ASC("`type` ASC"),Type_DESC("`type` DESC") |
|
|
,Type_ASC("`type` ASC"),Type_DESC("`type` DESC") |
|
|
,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") |
|
|
,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") |
|
|
,TargetAd_ASC("`targetAd` ASC"),TargetAd_DESC("`targetAd` DESC") |
|
|
,TargetAd_ASC("`targetAd` ASC"),TargetAd_DESC("`targetAd` DESC") |
|
|
@@ -159,9 +169,9 @@ public class WxCouponChannel implements Serializable { |
|
|
sb.append(","); |
|
|
sb.append(","); |
|
|
sb.append(fields[k].toString()); |
|
|
sb.append(fields[k].toString()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setSortColumns(String sortColumns) |
|
|
public void setSortColumns(String sortColumns) |
|
|
{ |
|
|
{ |
|
|
if (sortColumns == null || "".equals(sortColumns.trim())) { |
|
|
if (sortColumns == null || "".equals(sortColumns.trim())) { |
|
|
@@ -169,7 +179,7 @@ public class WxCouponChannel implements Serializable { |
|
|
} |
|
|
} |
|
|
if (sortColumns.contains(",")) { |
|
|
if (sortColumns.contains(",")) { |
|
|
String[] cols = sortColumns.split(","); |
|
|
String[] cols = sortColumns.split(","); |
|
|
java.util.List<Field> fList = new java.util.ArrayList(); |
|
|
|
|
|
|
|
|
List<Field> fList = new ArrayList(); |
|
|
for (int k = 0; k < cols.length; k++) { |
|
|
for (int k = 0; k < cols.length; k++) { |
|
|
fList.add(Field.valueOf(cols[k])); |
|
|
fList.add(Field.valueOf(cols[k])); |
|
|
} |
|
|
} |
|
|
|