| @@ -0,0 +1,92 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_b_log") | |||||
| public class WxBLog extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="data") | |||||
| private String data; | |||||
| /*创建时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") | |||||
| private Date createDate; | |||||
| public String getData() { | |||||
| return data; | |||||
| } | |||||
| public void setData(String _data) { | |||||
| data = _data; | |||||
| } | |||||
| public Date getCreateDate() { | |||||
| return createDate; | |||||
| } | |||||
| public void setCreateDate(Date _createDate) { | |||||
| createDate = _createDate; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,Data_ASC("`data` ASC"),Data_DESC("`data` DESC") | |||||
| ,CreateDate_ASC("`createDate` ASC"),CreateDate_DESC("`createDate` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxBLog.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,92 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_c_log") | |||||
| public class WxCLog extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="data") | |||||
| private String data; | |||||
| /*创建时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") | |||||
| private Date createDate; | |||||
| public String getData() { | |||||
| return data; | |||||
| } | |||||
| public void setData(String _data) { | |||||
| data = _data; | |||||
| } | |||||
| public Date getCreateDate() { | |||||
| return createDate; | |||||
| } | |||||
| public void setCreateDate(Date _createDate) { | |||||
| createDate = _createDate; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,Data_ASC("`data` ASC"),Data_DESC("`data` DESC") | |||||
| ,CreateDate_ASC("`createDate` ASC"),CreateDate_DESC("`createDate` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxCLog.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,92 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_c_user_cloud") | |||||
| public class WxCUserCloud extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /*大数据相关信息**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="大数据相关信息",name="cloudData") | |||||
| private String cloudData; | |||||
| /*c端用户id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="c端用户id",name="cUserId") | |||||
| private Integer cUserId; | |||||
| public String getCloudData() { | |||||
| return cloudData; | |||||
| } | |||||
| public void setCloudData(String _cloudData) { | |||||
| cloudData = _cloudData; | |||||
| } | |||||
| public Integer getCUserId() { | |||||
| return cUserId; | |||||
| } | |||||
| public void setCUserId(Integer _cUserId) { | |||||
| cUserId = _cUserId; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,CloudData_ASC("`cloudData` ASC"),CloudData_DESC("`cloudData` DESC") | |||||
| ,CUserId_ASC("`cUserId` ASC"),CUserId_DESC("`cUserId` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxCUserCloud.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,92 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_c_user_tags") | |||||
| public class WxCUserTags extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /*c端用户id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="c端用户id",name="userId") | |||||
| private Integer userId; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="tags") | |||||
| private String tags; | |||||
| public Integer getUserId() { | |||||
| return userId; | |||||
| } | |||||
| public void setUserId(Integer _userId) { | |||||
| userId = _userId; | |||||
| } | |||||
| public String getTags() { | |||||
| return tags; | |||||
| } | |||||
| public void setTags(String _tags) { | |||||
| tags = _tags; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,UserId_ASC("`userId` ASC"),UserId_DESC("`userId` DESC") | |||||
| ,Tags_ASC("`tags` ASC"),Tags_DESC("`tags` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxCUserTags.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,212 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_coupon") | |||||
| public class WxCoupon extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /*卡券活动id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="卡券活动id",name="activityId") | |||||
| private Integer activityId; | |||||
| /*券类型**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="券类型",name="type") | |||||
| private Integer type; | |||||
| /*商户id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="商户id",name="merchantId") | |||||
| private Integer merchantId; | |||||
| /*封面图**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="封面图",name="coverImg") | |||||
| private String coverImg; | |||||
| /*券名称**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="券名称",name="title") | |||||
| private String title; | |||||
| /*副标题**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="副标题",name="subTitle") | |||||
| private String subTitle; | |||||
| /*须知**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="须知",name="detail") | |||||
| private String detail; | |||||
| /*面额**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="面额",name="price") | |||||
| private BigDecimal price; | |||||
| /*售价**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="售价",name="salePrice") | |||||
| private BigDecimal salePrice; | |||||
| /*使用条件金额**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="使用条件金额",name="usePrice") | |||||
| private BigDecimal usePrice; | |||||
| /*业态**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="业态",name="business") | |||||
| private String business; | |||||
| /*状态(0.未绑定1.已绑定)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="状态(0.未绑定1.已绑定)",name="status") | |||||
| private Integer status; | |||||
| /*创建时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") | |||||
| private Date createDate; | |||||
| /*更新时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate") | |||||
| private Date updateDate; | |||||
| public Integer getActivityId() { | |||||
| return activityId; | |||||
| } | |||||
| public void setActivityId(Integer _activityId) { | |||||
| activityId = _activityId; | |||||
| } | |||||
| public Integer getType() { | |||||
| return type; | |||||
| } | |||||
| public void setType(Integer _type) { | |||||
| type = _type; | |||||
| } | |||||
| public Integer getMerchantId() { | |||||
| return merchantId; | |||||
| } | |||||
| public void setMerchantId(Integer _merchantId) { | |||||
| merchantId = _merchantId; | |||||
| } | |||||
| public String getCoverImg() { | |||||
| return coverImg; | |||||
| } | |||||
| public void setCoverImg(String _coverImg) { | |||||
| coverImg = _coverImg; | |||||
| } | |||||
| public String getTitle() { | |||||
| return title; | |||||
| } | |||||
| public void setTitle(String _title) { | |||||
| title = _title; | |||||
| } | |||||
| public String getSubTitle() { | |||||
| return subTitle; | |||||
| } | |||||
| public void setSubTitle(String _subTitle) { | |||||
| subTitle = _subTitle; | |||||
| } | |||||
| public String getDetail() { | |||||
| return detail; | |||||
| } | |||||
| public void setDetail(String _detail) { | |||||
| detail = _detail; | |||||
| } | |||||
| public BigDecimal getPrice() { | |||||
| return price; | |||||
| } | |||||
| public void setPrice(BigDecimal _price) { | |||||
| price = _price; | |||||
| } | |||||
| public BigDecimal getSalePrice() { | |||||
| return salePrice; | |||||
| } | |||||
| public void setSalePrice(BigDecimal _salePrice) { | |||||
| salePrice = _salePrice; | |||||
| } | |||||
| public BigDecimal getUsePrice() { | |||||
| return usePrice; | |||||
| } | |||||
| public void setUsePrice(BigDecimal _usePrice) { | |||||
| usePrice = _usePrice; | |||||
| } | |||||
| public String getBusiness() { | |||||
| return business; | |||||
| } | |||||
| public void setBusiness(String _business) { | |||||
| business = _business; | |||||
| } | |||||
| public Integer getStatus() { | |||||
| return status; | |||||
| } | |||||
| public void setStatus(Integer _status) { | |||||
| status = _status; | |||||
| } | |||||
| public Date getCreateDate() { | |||||
| return createDate; | |||||
| } | |||||
| public void setCreateDate(Date _createDate) { | |||||
| createDate = _createDate; | |||||
| } | |||||
| public Date getUpdateDate() { | |||||
| return updateDate; | |||||
| } | |||||
| public void setUpdateDate(Date _updateDate) { | |||||
| updateDate = _updateDate; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,ActivityId_ASC("`activityId` ASC"),ActivityId_DESC("`activityId` DESC") | |||||
| ,Type_ASC("`type` ASC"),Type_DESC("`type` DESC") | |||||
| ,MerchantId_ASC("`merchantId` ASC"),MerchantId_DESC("`merchantId` DESC") | |||||
| ,CoverImg_ASC("`coverImg` ASC"),CoverImg_DESC("`coverImg` DESC") | |||||
| ,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") | |||||
| ,SubTitle_ASC("`subTitle` ASC"),SubTitle_DESC("`subTitle` DESC") | |||||
| ,Detail_ASC("`detail` ASC"),Detail_DESC("`detail` DESC") | |||||
| ,Price_ASC("`price` ASC"),Price_DESC("`price` DESC") | |||||
| ,SalePrice_ASC("`salePrice` ASC"),SalePrice_DESC("`salePrice` DESC") | |||||
| ,UsePrice_ASC("`usePrice` ASC"),UsePrice_DESC("`usePrice` DESC") | |||||
| ,Business_ASC("`business` ASC"),Business_DESC("`business` DESC") | |||||
| ,Status_ASC("`status` ASC"),Status_DESC("`status` DESC") | |||||
| ,CreateDate_ASC("`createDate` ASC"),CreateDate_DESC("`createDate` DESC") | |||||
| ,UpdateDate_ASC("`updateDate` ASC"),UpdateDate_DESC("`updateDate` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxCoupon.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,282 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_coupon_activity") | |||||
| public class WxCouponActivity extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /*券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="券类型(1.满减券,2.代金券,3.团购券,4.礼品券,5.停车券)",name="type") | |||||
| private Integer type; | |||||
| /*商户id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="商户id",name="merchantId") | |||||
| private Integer merchantId; | |||||
| /*封面图**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="封面图",name="coverImg") | |||||
| private String coverImg; | |||||
| /*券名称**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="券名称",name="title") | |||||
| private String title; | |||||
| /*副标题**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="副标题",name="subTitle") | |||||
| private String subTitle; | |||||
| /*售价(适用于类型2,3,4,5)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="售价(适用于类型2,3,4,5)",name="salePrice") | |||||
| private BigDecimal salePrice; | |||||
| /*使用条件金额(适用于类型1,2,3,4)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="使用条件金额(适用于类型1,2,3,4)",name="usePrice") | |||||
| private BigDecimal usePrice; | |||||
| /*限领张数**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="限领张数",name="useLimitQuantity") | |||||
| private Integer useLimitQuantity; | |||||
| /*发放开始时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="发放开始时间",name="sendStartDate") | |||||
| private Date sendStartDate; | |||||
| /*发放结束时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="发放结束时间",name="sendEndDate") | |||||
| private Date sendEndDate; | |||||
| /*有效日期-开始**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="有效日期-开始",name="validStartDate") | |||||
| private Date validStartDate; | |||||
| /*有效日期-结束**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="有效日期-结束",name="validEndDate") | |||||
| private Date validEndDate; | |||||
| /*自领取之日几日有效,(停车券当天有效)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="自领取之日几日有效,(停车券当天有效)",name="validDays") | |||||
| private Integer validDays; | |||||
| /*须知**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="须知",name="detail") | |||||
| private String detail; | |||||
| /*发券方式(1.主动领取,2.定向投放)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="发券方式(1.主动领取,2.定向投放)",name="sendType") | |||||
| private Integer sendType; | |||||
| /*定向投放(1.banner图,2.限时抢购)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="定向投放(1.banner图,2.限时抢购)",name="targetAd") | |||||
| private Integer targetAd; | |||||
| /*业态**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="业态",name="businesses") | |||||
| private String businesses; | |||||
| /*面额**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="面额",name="price") | |||||
| private BigDecimal price; | |||||
| /*库存**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="库存",name="number") | |||||
| private Integer number; | |||||
| /*总数**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="总数",name="total") | |||||
| private Integer total; | |||||
| /*状态(0:草稿,1:待生效,2:已生效,3:已失效,4:已作废)**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="状态(0:草稿,1:待生效,2:已生效,3:已失效,4:已作废)",name="status") | |||||
| private Integer status; | |||||
| public Integer getType() { | |||||
| return type; | |||||
| } | |||||
| public void setType(Integer _type) { | |||||
| type = _type; | |||||
| } | |||||
| public Integer getMerchantId() { | |||||
| return merchantId; | |||||
| } | |||||
| public void setMerchantId(Integer _merchantId) { | |||||
| merchantId = _merchantId; | |||||
| } | |||||
| public String getCoverImg() { | |||||
| return coverImg; | |||||
| } | |||||
| public void setCoverImg(String _coverImg) { | |||||
| coverImg = _coverImg; | |||||
| } | |||||
| public String getTitle() { | |||||
| return title; | |||||
| } | |||||
| public void setTitle(String _title) { | |||||
| title = _title; | |||||
| } | |||||
| public String getSubTitle() { | |||||
| return subTitle; | |||||
| } | |||||
| public void setSubTitle(String _subTitle) { | |||||
| subTitle = _subTitle; | |||||
| } | |||||
| public BigDecimal getSalePrice() { | |||||
| return salePrice; | |||||
| } | |||||
| public void setSalePrice(BigDecimal _salePrice) { | |||||
| salePrice = _salePrice; | |||||
| } | |||||
| public BigDecimal getUsePrice() { | |||||
| return usePrice; | |||||
| } | |||||
| public void setUsePrice(BigDecimal _usePrice) { | |||||
| usePrice = _usePrice; | |||||
| } | |||||
| public Integer getUseLimitQuantity() { | |||||
| return useLimitQuantity; | |||||
| } | |||||
| public void setUseLimitQuantity(Integer _useLimitQuantity) { | |||||
| useLimitQuantity = _useLimitQuantity; | |||||
| } | |||||
| public Date getSendStartDate() { | |||||
| return sendStartDate; | |||||
| } | |||||
| public void setSendStartDate(Date _sendStartDate) { | |||||
| sendStartDate = _sendStartDate; | |||||
| } | |||||
| public Date getSendEndDate() { | |||||
| return sendEndDate; | |||||
| } | |||||
| public void setSendEndDate(Date _sendEndDate) { | |||||
| sendEndDate = _sendEndDate; | |||||
| } | |||||
| public Date getValidStartDate() { | |||||
| return validStartDate; | |||||
| } | |||||
| public void setValidStartDate(Date _validStartDate) { | |||||
| validStartDate = _validStartDate; | |||||
| } | |||||
| public Date getValidEndDate() { | |||||
| return validEndDate; | |||||
| } | |||||
| public void setValidEndDate(Date _validEndDate) { | |||||
| validEndDate = _validEndDate; | |||||
| } | |||||
| public Integer getValidDays() { | |||||
| return validDays; | |||||
| } | |||||
| public void setValidDays(Integer _validDays) { | |||||
| validDays = _validDays; | |||||
| } | |||||
| public String getDetail() { | |||||
| return detail; | |||||
| } | |||||
| public void setDetail(String _detail) { | |||||
| detail = _detail; | |||||
| } | |||||
| public Integer getSendType() { | |||||
| return sendType; | |||||
| } | |||||
| public void setSendType(Integer _sendType) { | |||||
| sendType = _sendType; | |||||
| } | |||||
| public Integer getTargetAd() { | |||||
| return targetAd; | |||||
| } | |||||
| public void setTargetAd(Integer _targetAd) { | |||||
| targetAd = _targetAd; | |||||
| } | |||||
| public String getBusinesses() { | |||||
| return businesses; | |||||
| } | |||||
| public void setBusinesses(String _businesses) { | |||||
| businesses = _businesses; | |||||
| } | |||||
| public BigDecimal getPrice() { | |||||
| return price; | |||||
| } | |||||
| public void setPrice(BigDecimal _price) { | |||||
| price = _price; | |||||
| } | |||||
| public Integer getNumber() { | |||||
| return number; | |||||
| } | |||||
| public void setNumber(Integer _number) { | |||||
| number = _number; | |||||
| } | |||||
| public Integer getTotal() { | |||||
| return total; | |||||
| } | |||||
| public void setTotal(Integer _total) { | |||||
| total = _total; | |||||
| } | |||||
| public Integer getStatus() { | |||||
| return status; | |||||
| } | |||||
| public void setStatus(Integer _status) { | |||||
| status = _status; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,Type_ASC("`type` ASC"),Type_DESC("`type` DESC") | |||||
| ,MerchantId_ASC("`merchantId` ASC"),MerchantId_DESC("`merchantId` DESC") | |||||
| ,CoverImg_ASC("`coverImg` ASC"),CoverImg_DESC("`coverImg` DESC") | |||||
| ,Title_ASC("`title` ASC"),Title_DESC("`title` DESC") | |||||
| ,SubTitle_ASC("`subTitle` ASC"),SubTitle_DESC("`subTitle` DESC") | |||||
| ,SalePrice_ASC("`salePrice` ASC"),SalePrice_DESC("`salePrice` DESC") | |||||
| ,UsePrice_ASC("`usePrice` ASC"),UsePrice_DESC("`usePrice` DESC") | |||||
| ,UseLimitQuantity_ASC("`useLimitQuantity` ASC"),UseLimitQuantity_DESC("`useLimitQuantity` DESC") | |||||
| ,SendStartDate_ASC("`sendStartDate` ASC"),SendStartDate_DESC("`sendStartDate` DESC") | |||||
| ,SendEndDate_ASC("`sendEndDate` ASC"),SendEndDate_DESC("`sendEndDate` DESC") | |||||
| ,ValidStartDate_ASC("`validStartDate` ASC"),ValidStartDate_DESC("`validStartDate` DESC") | |||||
| ,ValidEndDate_ASC("`validEndDate` ASC"),ValidEndDate_DESC("`validEndDate` DESC") | |||||
| ,ValidDays_ASC("`validDays` ASC"),ValidDays_DESC("`validDays` DESC") | |||||
| ,Detail_ASC("`detail` ASC"),Detail_DESC("`detail` DESC") | |||||
| ,SendType_ASC("`sendType` ASC"),SendType_DESC("`sendType` DESC") | |||||
| ,TargetAd_ASC("`targetAd` ASC"),TargetAd_DESC("`targetAd` DESC") | |||||
| ,Businesses_ASC("`businesses` ASC"),Businesses_DESC("`businesses` DESC") | |||||
| ,Price_ASC("`price` ASC"),Price_DESC("`price` DESC") | |||||
| ,Number_ASC("`number` ASC"),Number_DESC("`number` DESC") | |||||
| ,Total_ASC("`total` ASC"),Total_DESC("`total` DESC") | |||||
| ,Status_ASC("`status` ASC"),Status_DESC("`status` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxCouponActivity.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -14,9 +14,7 @@ public class WxEtcpParkTransaction extends BaseModel { | |||||
| /*Integer 支付方式(1 微信公众号内支付 | /*Integer 支付方式(1 微信公众号内支付 | ||||
| 2 支付宝 H5 支付 3 微信二维码 | 2 支付宝 H5 支付 3 微信二维码 | ||||
| 4 支付宝二维码 5 微信 H5)**/ | 4 支付宝二维码 5 微信 H5)**/ | ||||
| @io.swagger.annotations.ApiModelProperty(value="Integer 支付方式(1 微信公众号内支付 | |||||
| 2 支付宝 H5 支付 3 微信二维码 | |||||
| 4 支付宝二维码 5 微信 H5)",name="payType") | |||||
| @io.swagger.annotations.ApiModelProperty(value="Integer支付方式(1 微信公众号内支付2 支付宝 H5 支付 3 微信二维码4 支付宝二维码 5 微信 H5)",name="payType") | |||||
| private Integer payType; | private Integer payType; | ||||
| /*停车记录标识(查费接口中的 返回的 orderId 字段)**/ | /*停车记录标识(查费接口中的 返回的 orderId 字段)**/ | ||||
| @io.swagger.annotations.ApiModelProperty(value="停车记录标识(查费接口中的 返回的 orderId 字段)",name="synId") | @io.swagger.annotations.ApiModelProperty(value="停车记录标识(查费接口中的 返回的 orderId 字段)",name="synId") | ||||
| @@ -0,0 +1,162 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_msg") | |||||
| public class WxMsg extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /*模板id**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="模板id",name="modelId") | |||||
| private Integer modelId; | |||||
| /*内容**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="内容",name="msg") | |||||
| private String msg; | |||||
| /*发送时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="发送时间",name="sendtime") | |||||
| private Date sendtime; | |||||
| /*发送时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="发送时间",name="createtime") | |||||
| private Date createtime; | |||||
| /*预计发送数量**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="预计发送数量",name="expectSendNumber") | |||||
| private String expectSendNumber; | |||||
| /*成功数量**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="成功数量",name="successNumber") | |||||
| private String successNumber; | |||||
| /*错误数量**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="错误数量",name="errorNumber") | |||||
| private String errorNumber; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="returnResult") | |||||
| private String returnResult; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="phones") | |||||
| private String phones; | |||||
| public Integer getModelId() { | |||||
| return modelId; | |||||
| } | |||||
| public void setModelId(Integer _modelId) { | |||||
| modelId = _modelId; | |||||
| } | |||||
| public String getMsg() { | |||||
| return msg; | |||||
| } | |||||
| public void setMsg(String _msg) { | |||||
| msg = _msg; | |||||
| } | |||||
| public Date getSendtime() { | |||||
| return sendtime; | |||||
| } | |||||
| public void setSendtime(Date _sendtime) { | |||||
| sendtime = _sendtime; | |||||
| } | |||||
| public Date getCreatetime() { | |||||
| return createtime; | |||||
| } | |||||
| public void setCreatetime(Date _createtime) { | |||||
| createtime = _createtime; | |||||
| } | |||||
| public String getExpectSendNumber() { | |||||
| return expectSendNumber; | |||||
| } | |||||
| public void setExpectSendNumber(String _expectSendNumber) { | |||||
| expectSendNumber = _expectSendNumber; | |||||
| } | |||||
| public String getSuccessNumber() { | |||||
| return successNumber; | |||||
| } | |||||
| public void setSuccessNumber(String _successNumber) { | |||||
| successNumber = _successNumber; | |||||
| } | |||||
| public String getErrorNumber() { | |||||
| return errorNumber; | |||||
| } | |||||
| public void setErrorNumber(String _errorNumber) { | |||||
| errorNumber = _errorNumber; | |||||
| } | |||||
| public String getReturnResult() { | |||||
| return returnResult; | |||||
| } | |||||
| public void setReturnResult(String _returnResult) { | |||||
| returnResult = _returnResult; | |||||
| } | |||||
| public String getPhones() { | |||||
| return phones; | |||||
| } | |||||
| public void setPhones(String _phones) { | |||||
| phones = _phones; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,ModelId_ASC("`modelId` ASC"),ModelId_DESC("`modelId` DESC") | |||||
| ,Msg_ASC("`msg` ASC"),Msg_DESC("`msg` DESC") | |||||
| ,Sendtime_ASC("`sendtime` ASC"),Sendtime_DESC("`sendtime` DESC") | |||||
| ,Createtime_ASC("`createtime` ASC"),Createtime_DESC("`createtime` DESC") | |||||
| ,ExpectSendNumber_ASC("`expectSendNumber` ASC"),ExpectSendNumber_DESC("`expectSendNumber` DESC") | |||||
| ,SuccessNumber_ASC("`successNumber` ASC"),SuccessNumber_DESC("`successNumber` DESC") | |||||
| ,ErrorNumber_ASC("`errorNumber` ASC"),ErrorNumber_DESC("`errorNumber` DESC") | |||||
| ,ReturnResult_ASC("`returnResult` ASC"),ReturnResult_DESC("`returnResult` DESC") | |||||
| ,Phones_ASC("`phones` ASC"),Phones_DESC("`phones` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxMsg.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,92 @@ | |||||
| package com.simple.domain.po; | |||||
| import com.simple.common.crud.BaseModel; | |||||
| import javax.persistence.*; | |||||
| import java.util.*; | |||||
| import java.math.*; | |||||
| import javax.persistence.Transient; | |||||
| import com.simple.annotation.HoldBegin; | |||||
| import com.simple.annotation.HoldEnd; | |||||
| @Table(name = "wx_web_log") | |||||
| public class WxWebLog extends BaseModel { | |||||
| private static final long serialVersionUID = 1L; | |||||
| /***/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="",name="data") | |||||
| private String data; | |||||
| /*创建时间**/ | |||||
| @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") | |||||
| private Date createDate; | |||||
| public String getData() { | |||||
| return data; | |||||
| } | |||||
| public void setData(String _data) { | |||||
| data = _data; | |||||
| } | |||||
| public Date getCreateDate() { | |||||
| return createDate; | |||||
| } | |||||
| public void setCreateDate(Date _createDate) { | |||||
| createDate = _createDate; | |||||
| } | |||||
| public static enum Field | |||||
| { | |||||
| Id_ASC("`id` ASC"),Id_DESC("`id` DESC") | |||||
| ,Data_ASC("`data` ASC"),Data_DESC("`data` DESC") | |||||
| ,CreateDate_ASC("`createDate` ASC"),CreateDate_DESC("`createDate` DESC") | |||||
| ; | |||||
| private String value; | |||||
| Field(String value){ | |||||
| this.value = value; | |||||
| } | |||||
| public String getValue() { | |||||
| return value; | |||||
| } | |||||
| public void setCol(String value) { | |||||
| this.value = value; | |||||
| } | |||||
| @Override | |||||
| public String toString() { | |||||
| return this.getValue(); | |||||
| } | |||||
| } | |||||
| public void setSortColumns(WxWebLog.Field... fields) | |||||
| { | |||||
| if (fields == null || fields.length == 0) { | |||||
| return; | |||||
| } | |||||
| for (int k = 0; k < fields.length; k++) { | |||||
| if (fields[k] == null) { | |||||
| return; | |||||
| } | |||||
| } | |||||
| StringBuilder sb = new StringBuilder(fields[0].toString()); | |||||
| for (int k = 1; k < fields.length; k++) { | |||||
| sb.append(","); | |||||
| sb.append(fields[k].toString()); | |||||
| } | |||||
| super.setSortColumns(sb.toString()); | |||||
| } | |||||
| @Override | |||||
| public void setSortColumns(String sortColumns) | |||||
| { | |||||
| if (sortColumns == null || "".equals(sortColumns.trim())) { | |||||
| return; | |||||
| } | |||||
| if (sortColumns.contains(",")) { | |||||
| String[] cols = sortColumns.split(","); | |||||
| java.util.List<Field> fList = new java.util.ArrayList(); | |||||
| for (int k = 0; k < cols.length; k++) { | |||||
| fList.add(Field.valueOf(cols[k])); | |||||
| } | |||||
| this.setSortColumns(fList.toArray(new Field[fList.size()])); | |||||
| } else { | |||||
| this.setSortColumns(Field.valueOf(sortColumns)); | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,38 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxBLogMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBLog"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="data" jdbcType="JSON" property="data" /> | |||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`data`,`create_date` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxBLog" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_b_log | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,38 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxCLogMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCLog"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="data" jdbcType="JSON" property="data" /> | |||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`data`,`create_date` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxCLog" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_c_log | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,38 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxCUserCloudMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserCloud"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="cloud_data" jdbcType="JSON" property="cloudData" /> | |||||
| <result column="c_user_id" jdbcType="INTEGER" property="cUserId" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`cloud_data`,`c_user_id` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != cloudData "> and `cloud_data` = #{cloudData} </if> | |||||
| <if test=" null != cUserId "> and `c_user_id` = #{cUserId} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxCUserCloud" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_c_user_cloud | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,38 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxCUserTagsMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCUserTags"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="user_id" jdbcType="INTEGER" property="userId" /> | |||||
| <result column="tags" jdbcType="JSON" property="tags" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`user_id`,`tags` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != userId "> and `user_id` = #{userId} </if> | |||||
| <if test=" null != tags "> and `tags` = #{tags} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxCUserTags" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_c_user_tags | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,76 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxCouponActivityMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCouponActivity"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="type" jdbcType="INTEGER" property="type" /> | |||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | |||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle" /> | |||||
| <result column="sale_price" jdbcType="DECIMAL" property="salePrice" /> | |||||
| <result column="use_price" jdbcType="DECIMAL" property="usePrice" /> | |||||
| <result column="use_limit_quantity" jdbcType="INTEGER" property="useLimitQuantity" /> | |||||
| <result column="send_start_date" jdbcType="TIMESTAMP" property="sendStartDate" /> | |||||
| <result column="send_end_date" jdbcType="TIMESTAMP" property="sendEndDate" /> | |||||
| <result column="valid_start_date" jdbcType="TIMESTAMP" property="validStartDate" /> | |||||
| <result column="valid_end_date" jdbcType="TIMESTAMP" property="validEndDate" /> | |||||
| <result column="valid_days" jdbcType="INTEGER" property="validDays" /> | |||||
| <result column="detail" jdbcType="VARCHAR" property="detail" /> | |||||
| <result column="send_type" jdbcType="INTEGER" property="sendType" /> | |||||
| <result column="target_ad" jdbcType="INTEGER" property="targetAd" /> | |||||
| <result column="businesses" jdbcType="JSON" property="businesses" /> | |||||
| <result column="price" jdbcType="DECIMAL" property="price" /> | |||||
| <result column="number" jdbcType="INTEGER" property="number" /> | |||||
| <result column="total" jdbcType="INTEGER" property="total" /> | |||||
| <result column="status" jdbcType="INTEGER" property="status" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`type`,`merchant_id`,`cover_img`,`title`,`sub_title`,`sale_price`,`use_price`,`use_limit_quantity`,`send_start_date`,`send_end_date`,`valid_start_date`,`valid_end_date`,`valid_days`,`detail`,`send_type`,`target_ad`,`businesses`,`price`,`number`,`total`,`status` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != type "> and `type` = #{type} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != coverImg "> and `cover_img` = #{coverImg} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != subTitle "> and `sub_title` = #{subTitle} </if> | |||||
| <if test=" null != salePrice "> and `sale_price` = #{salePrice} </if> | |||||
| <if test=" null != usePrice "> and `use_price` = #{usePrice} </if> | |||||
| <if test=" null != useLimitQuantity "> and `use_limit_quantity` = #{useLimitQuantity} </if> | |||||
| <if test=" null != sendStartDate "> and `send_start_date` = #{sendStartDate} </if> | |||||
| <if test=" null != sendEndDate "> and `send_end_date` = #{sendEndDate} </if> | |||||
| <if test=" null != validStartDate "> and `valid_start_date` = #{validStartDate} </if> | |||||
| <if test=" null != validEndDate "> and `valid_end_date` = #{validEndDate} </if> | |||||
| <if test=" null != validDays "> and `valid_days` = #{validDays} </if> | |||||
| <if test=" null != detail "> and `detail` = #{detail} </if> | |||||
| <if test=" null != sendType "> and `send_type` = #{sendType} </if> | |||||
| <if test=" null != targetAd "> and `target_ad` = #{targetAd} </if> | |||||
| <if test=" null != businesses "> and `businesses` = #{businesses} </if> | |||||
| <if test=" null != price "> and `price` = #{price} </if> | |||||
| <if test=" null != number "> and `number` = #{number} </if> | |||||
| <if test=" null != total "> and `total` = #{total} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxCouponActivity" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_coupon_activity | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,62 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxCouponMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxCoupon"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="activity_id" jdbcType="INTEGER" property="activityId" /> | |||||
| <result column="type" jdbcType="INTEGER" property="type" /> | |||||
| <result column="merchant_id" jdbcType="INTEGER" property="merchantId" /> | |||||
| <result column="cover_img" jdbcType="VARCHAR" property="coverImg" /> | |||||
| <result column="title" jdbcType="VARCHAR" property="title" /> | |||||
| <result column="sub_title" jdbcType="VARCHAR" property="subTitle" /> | |||||
| <result column="detail" jdbcType="VARCHAR" property="detail" /> | |||||
| <result column="price" jdbcType="DECIMAL" property="price" /> | |||||
| <result column="sale_price" jdbcType="DECIMAL" property="salePrice" /> | |||||
| <result column="use_price" jdbcType="DECIMAL" property="usePrice" /> | |||||
| <result column="business" jdbcType="JSON" property="business" /> | |||||
| <result column="status" jdbcType="INTEGER" property="status" /> | |||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | |||||
| <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`activity_id`,`type`,`merchant_id`,`cover_img`,`title`,`sub_title`,`detail`,`price`,`sale_price`,`use_price`,`business`,`status`,`create_date`,`update_date` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != activityId "> and `activity_id` = #{activityId} </if> | |||||
| <if test=" null != type "> and `type` = #{type} </if> | |||||
| <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if> | |||||
| <if test=" null != coverImg "> and `cover_img` = #{coverImg} </if> | |||||
| <if test=" null != title "> and `title` = #{title} </if> | |||||
| <if test=" null != subTitle "> and `sub_title` = #{subTitle} </if> | |||||
| <if test=" null != detail "> and `detail` = #{detail} </if> | |||||
| <if test=" null != price "> and `price` = #{price} </if> | |||||
| <if test=" null != salePrice "> and `sale_price` = #{salePrice} </if> | |||||
| <if test=" null != usePrice "> and `use_price` = #{usePrice} </if> | |||||
| <if test=" null != business "> and `business` = #{business} </if> | |||||
| <if test=" null != status "> and `status` = #{status} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != updateDate "> and `update_date` = #{updateDate} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxCoupon" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_coupon | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,52 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxMsgMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsg"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="model_id" jdbcType="INTEGER" property="modelId" /> | |||||
| <result column="msg" jdbcType="VARCHAR" property="msg" /> | |||||
| <result column="sendtime" jdbcType="TIMESTAMP" property="sendtime" /> | |||||
| <result column="createtime" jdbcType="TIMESTAMP" property="createtime" /> | |||||
| <result column="expect_send_number" jdbcType="VARCHAR" property="expectSendNumber" /> | |||||
| <result column="success_number" jdbcType="VARCHAR" property="successNumber" /> | |||||
| <result column="error_number" jdbcType="VARCHAR" property="errorNumber" /> | |||||
| <result column="return_result" jdbcType="JSON" property="returnResult" /> | |||||
| <result column="phones" jdbcType="JSON" property="phones" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`model_id`,`msg`,`sendtime`,`createtime`,`expect_send_number`,`success_number`,`error_number`,`return_result`,`phones` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != modelId "> and `model_id` = #{modelId} </if> | |||||
| <if test=" null != msg "> and `msg` = #{msg} </if> | |||||
| <if test=" null != sendtime "> and `sendtime` = #{sendtime} </if> | |||||
| <if test=" null != createtime "> and `createtime` = #{createtime} </if> | |||||
| <if test=" null != expectSendNumber "> and `expect_send_number` = #{expectSendNumber} </if> | |||||
| <if test=" null != successNumber "> and `success_number` = #{successNumber} </if> | |||||
| <if test=" null != errorNumber "> and `error_number` = #{errorNumber} </if> | |||||
| <if test=" null != returnResult "> and `return_result` = #{returnResult} </if> | |||||
| <if test=" null != phones "> and `phones` = #{phones} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxMsg" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_msg | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||
| @@ -0,0 +1,38 @@ | |||||
| <?xml version="1.0" encoding="UTF-8"?> | |||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |||||
| <mapper namespace="com.simple.mapper.WxWebLogMapper"> | |||||
| <resultMap id="BaseResultMap" type="com.simple.domain.po.WxWebLog"> | |||||
| <id column="id" jdbcType="INTEGER" property="id" /> | |||||
| <result column="data" jdbcType="JSON" property="data" /> | |||||
| <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | |||||
| </resultMap> | |||||
| <sql id="allColumns"> | |||||
| `id`,`data`,`create_date` | |||||
| </sql> | |||||
| <sql id="dynamicWhereConditions"> | |||||
| where 1 = 1 | |||||
| <if test=" null != id "> and `id` = #{id} </if> | |||||
| <if test=" null != data "> and `data` = #{data} </if> | |||||
| <if test=" null != createDate "> and `create_date` = #{createDate} </if> | |||||
| <if test=" null != ids "> | |||||
| and id in | |||||
| <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")"> | |||||
| #{idItem} | |||||
| </foreach> | |||||
| </if> | |||||
| <if test=" null != sortColumns"> order by ${sortColumns} </if> | |||||
| </sql> | |||||
| <select id="findList" parameterType="com.simple.domain.po.WxWebLog" resultMap="BaseResultMap"> | |||||
| select <include refid="allColumns" /> from wx_web_log | |||||
| <include refid="dynamicWhereConditions" /> | |||||
| </select> | |||||
| </mapper> | |||||