|
|
|
@@ -1,38 +1,24 @@ |
|
|
|
package com.simple.domain.po; |
|
|
|
|
|
|
|
import com.simple.domain.vo.WxChooseTagVo; |
|
|
|
|
|
|
|
import javax.persistence.Id; |
|
|
|
import javax.persistence.Table; |
|
|
|
import javax.persistence.*; |
|
|
|
import java.util.*; |
|
|
|
import java.math.*; |
|
|
|
import javax.persistence.Transient; |
|
|
|
import java.io.Serializable; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import javax.persistence.Id; |
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
@Table(name = "coupon_inject") |
|
|
|
public class CouponInject implements Serializable { |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
|
|
|
|
@Id |
|
|
|
protected Long id; |
|
|
|
|
|
|
|
@Transient |
|
|
|
protected List<Long> ids; |
|
|
|
@Transient |
|
|
|
protected String sortColumns; |
|
|
|
protected Long id; |
|
|
|
|
|
|
|
@Transient |
|
|
|
protected Long modelId; |
|
|
|
protected List<Long> ids; |
|
|
|
@Transient |
|
|
|
private WxChooseTagVo wxChooseTagVo; |
|
|
|
|
|
|
|
public WxChooseTagVo getWxChooseTagVo() { |
|
|
|
return wxChooseTagVo; |
|
|
|
} |
|
|
|
|
|
|
|
public void setWxChooseTagVo(WxChooseTagVo wxChooseTagVo) { |
|
|
|
this.wxChooseTagVo = wxChooseTagVo; |
|
|
|
} |
|
|
|
protected String sortColumns; |
|
|
|
|
|
|
|
public Long getId() { |
|
|
|
return id; |
|
|
|
@@ -41,11 +27,11 @@ public class CouponInject implements Serializable { |
|
|
|
public void setId(Long id) { |
|
|
|
this.id = id; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String getSortColumns() { |
|
|
|
return sortColumns; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public List<Long> getIds() { |
|
|
|
return ids; |
|
|
|
} |
|
|
|
@@ -53,9 +39,9 @@ public class CouponInject implements Serializable { |
|
|
|
public void setIds(List<Long> ids) { |
|
|
|
this.ids = ids; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="",name="tenantId") |
|
|
|
private String tenantId; |
|
|
|
@@ -77,32 +63,11 @@ public class CouponInject implements Serializable { |
|
|
|
/*发送时间**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="发送时间",name="sendTime") |
|
|
|
private Date sendTime; |
|
|
|
@Transient |
|
|
|
private Date sendTimeStart; |
|
|
|
@Transient |
|
|
|
private Date sendTimeEnd; |
|
|
|
|
|
|
|
public Date getSendTimeStart() { |
|
|
|
return sendTimeStart; |
|
|
|
} |
|
|
|
|
|
|
|
public void setSendTimeStart(Date sendTimeStart) { |
|
|
|
this.sendTimeStart = sendTimeStart; |
|
|
|
} |
|
|
|
|
|
|
|
public Date getSendTimeEnd() { |
|
|
|
return sendTimeEnd; |
|
|
|
} |
|
|
|
|
|
|
|
public void setSendTimeEnd(Date sendTimeEnd) { |
|
|
|
this.sendTimeEnd = sendTimeEnd; |
|
|
|
} |
|
|
|
|
|
|
|
/*实际发送数量**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="实际发送数量",name="sendAmount") |
|
|
|
private Integer sendAmount; |
|
|
|
/*0:待发送1:已发送2:发送失败**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="0:待发送1:已发送2:发送失败",name="status") |
|
|
|
/*0:待发送1:发送中2:已发送3:发送失败4已作废**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="0:待发送1:发送中2:已发送3:发送失败4已作废",name="status") |
|
|
|
private Integer status; |
|
|
|
/*发送失败原因**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="发送失败原因",name="errorMsg") |
|
|
|
@@ -110,6 +75,9 @@ public class CouponInject implements Serializable { |
|
|
|
/*发送人群标签**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="发送人群标签",name="tags") |
|
|
|
private String tags; |
|
|
|
/*短信模板id**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="短信模板id",name="modelId") |
|
|
|
private Long modelId; |
|
|
|
/*创建时间**/ |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createTime") |
|
|
|
private Date createTime; |
|
|
|
@@ -182,6 +150,12 @@ public class CouponInject implements Serializable { |
|
|
|
public void setTags(String _tags) { |
|
|
|
tags = _tags; |
|
|
|
} |
|
|
|
public Long getModelId() { |
|
|
|
return modelId; |
|
|
|
} |
|
|
|
public void setModelId(Long _modelId) { |
|
|
|
modelId = _modelId; |
|
|
|
} |
|
|
|
public Date getCreateTime() { |
|
|
|
return createTime; |
|
|
|
} |
|
|
|
@@ -194,33 +168,27 @@ public class CouponInject implements Serializable { |
|
|
|
public void setUpdateTime(Date _updateTime) { |
|
|
|
updateTime = _updateTime; |
|
|
|
} |
|
|
|
public Long getModelId() { |
|
|
|
return modelId; |
|
|
|
} |
|
|
|
|
|
|
|
public void setModelId(Long modelId) { |
|
|
|
this.modelId = modelId; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static enum Field |
|
|
|
{ |
|
|
|
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") |
|
|
|
,TenantId_ASC("`tenantId` ASC"),TenantId_DESC("`tenantId` DESC") |
|
|
|
,Name_ASC("`name` ASC"),Name_DESC("`name` DESC") |
|
|
|
,MUserId_ASC("`mUserId` ASC"),MUserId_DESC("`mUserId` DESC") |
|
|
|
,SendType_ASC("`sendType` ASC"),SendType_DESC("`sendType` DESC") |
|
|
|
,CouponId_ASC("`couponId` ASC"),CouponId_DESC("`couponId` DESC") |
|
|
|
,CouponName_ASC("`couponName` ASC"),CouponName_DESC("`couponName` DESC") |
|
|
|
,SendTime_ASC("`sendTime` ASC"),SendTime_DESC("`sendTime` DESC") |
|
|
|
,SendAmount_ASC("`sendAmount` ASC"),SendAmount_DESC("`sendAmount` DESC") |
|
|
|
,Status_ASC("`status` ASC"),Status_DESC("`status` DESC") |
|
|
|
,ErrorMsg_ASC("`errorMsg` ASC"),ErrorMsg_DESC("`errorMsg` DESC") |
|
|
|
,Tags_ASC("`tags` ASC"),Tags_DESC("`tags` DESC") |
|
|
|
,CreateTime_ASC("`createTime` ASC"),CreateTime_DESC("`createTime` DESC") |
|
|
|
,UpdateTime_ASC("`updateTime` ASC"),UpdateTime_DESC("`updateTime` DESC") |
|
|
|
; |
|
|
|
,TenantId_ASC("`tenantId` ASC"),TenantId_DESC("`tenantId` DESC") |
|
|
|
,Name_ASC("`name` ASC"),Name_DESC("`name` DESC") |
|
|
|
,MUserId_ASC("`mUserId` ASC"),MUserId_DESC("`mUserId` DESC") |
|
|
|
,SendType_ASC("`sendType` ASC"),SendType_DESC("`sendType` DESC") |
|
|
|
,CouponId_ASC("`couponId` ASC"),CouponId_DESC("`couponId` DESC") |
|
|
|
,CouponName_ASC("`couponName` ASC"),CouponName_DESC("`couponName` DESC") |
|
|
|
,SendTime_ASC("`sendTime` ASC"),SendTime_DESC("`sendTime` DESC") |
|
|
|
,SendAmount_ASC("`sendAmount` ASC"),SendAmount_DESC("`sendAmount` DESC") |
|
|
|
,Status_ASC("`status` ASC"),Status_DESC("`status` DESC") |
|
|
|
,ErrorMsg_ASC("`errorMsg` ASC"),ErrorMsg_DESC("`errorMsg` DESC") |
|
|
|
,Tags_ASC("`tags` ASC"),Tags_DESC("`tags` DESC") |
|
|
|
,ModelId_ASC("`modelId` ASC"),ModelId_DESC("`modelId` DESC") |
|
|
|
,CreateTime_ASC("`createTime` ASC"),CreateTime_DESC("`createTime` DESC") |
|
|
|
,UpdateTime_ASC("`updateTime` ASC"),UpdateTime_DESC("`updateTime` DESC") |
|
|
|
; |
|
|
|
private String value; |
|
|
|
Field(String value){ |
|
|
|
this.value = value; |
|
|
|
@@ -236,7 +204,7 @@ public class CouponInject implements Serializable { |
|
|
|
return this.getValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setSortColumns(CouponInject.Field... fields) |
|
|
|
{ |
|
|
|
if (fields == null || fields.length == 0) { |
|
|
|
@@ -262,7 +230,7 @@ public class CouponInject implements Serializable { |
|
|
|
} |
|
|
|
if (sortColumns.contains(",")) { |
|
|
|
String[] cols = sortColumns.split(","); |
|
|
|
List<Field> fList = new ArrayList(); |
|
|
|
java.util.List<Field> fList = new java.util.ArrayList(); |
|
|
|
for (int k = 0; k < cols.length; k++) { |
|
|
|
fList.add(Field.valueOf(cols[k])); |
|
|
|
} |
|
|
|
|