4 changed files with 1132 additions and 0 deletions
@ -0,0 +1,34 @@ |
|||
package cc.hiver.mall.dao.mapper; |
|||
|
|||
import cc.hiver.mall.entity.YearFeeLog; |
|||
import cc.hiver.mall.entity.YearFeeLogExample; |
|||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface YearFeeLogMapper extends BaseMapper<YearFeeLog> { |
|||
long countByExample(YearFeeLogExample example); |
|||
|
|||
int deleteByExample(YearFeeLogExample example); |
|||
|
|||
int deleteByPrimaryKey(String id); |
|||
|
|||
int insert(YearFeeLog record); |
|||
|
|||
int insertSelective(YearFeeLog record); |
|||
|
|||
List<YearFeeLog> selectByExample(YearFeeLogExample example); |
|||
|
|||
YearFeeLog selectByPrimaryKey(String id); |
|||
|
|||
int updateByExampleSelective(@Param("record") YearFeeLog record, @Param("example") YearFeeLogExample example); |
|||
|
|||
int updateByExample(@Param("record") YearFeeLog record, @Param("example") YearFeeLogExample example); |
|||
|
|||
int updateByPrimaryKeySelective(YearFeeLog record); |
|||
|
|||
int updateByPrimaryKey(YearFeeLog record); |
|||
} |
|||
@ -0,0 +1,119 @@ |
|||
package cc.hiver.mall.entity; |
|||
|
|||
import cc.hiver.core.common.utils.SnowFlakeUtil; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
@TableName("t_year_fee_log") |
|||
@ApiModel(value = "年费充值记录表") |
|||
public class YearFeeLog implements Serializable { |
|||
|
|||
|
|||
private String id = SnowFlakeUtil.nextId().toString(); |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Integer delFlag; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
@ApiModelProperty(value = "商铺") |
|||
private String shopId; |
|||
|
|||
@ApiModelProperty(value = "充值金额") |
|||
private BigDecimal fee; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(String id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Integer getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Integer delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getShopId() { |
|||
return shopId; |
|||
} |
|||
|
|||
public void setShopId(String shopId) { |
|||
this.shopId = shopId; |
|||
} |
|||
|
|||
public BigDecimal getFee() { |
|||
return fee; |
|||
} |
|||
|
|||
public void setFee(BigDecimal fee) { |
|||
this.fee = fee; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", shopId=").append(shopId); |
|||
sb.append(", fee=").append(fee); |
|||
sb.append(", serialVersionUID=").append(serialVersionUID); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,721 @@ |
|||
package cc.hiver.mall.entity; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class YearFeeLogExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public YearFeeLogExample() { |
|||
oredCriteria = new ArrayList<>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(String value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(String value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(String value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(String value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(String value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(String value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLike(String value) { |
|||
addCriterion("id like", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotLike(String value) { |
|||
addCriterion("id not like", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<String> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<String> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(String value1, String value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(String value1, String value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Integer value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Integer value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Integer value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Integer value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Integer value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Integer> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Integer> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Integer value1, Integer value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdIsNull() { |
|||
addCriterion("shop_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdIsNotNull() { |
|||
addCriterion("shop_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdEqualTo(String value) { |
|||
addCriterion("shop_id =", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdNotEqualTo(String value) { |
|||
addCriterion("shop_id <>", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdGreaterThan(String value) { |
|||
addCriterion("shop_id >", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdGreaterThanOrEqualTo(String value) { |
|||
addCriterion("shop_id >=", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdLessThan(String value) { |
|||
addCriterion("shop_id <", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdLessThanOrEqualTo(String value) { |
|||
addCriterion("shop_id <=", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdLike(String value) { |
|||
addCriterion("shop_id like", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdNotLike(String value) { |
|||
addCriterion("shop_id not like", value, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdIn(List<String> values) { |
|||
addCriterion("shop_id in", values, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdNotIn(List<String> values) { |
|||
addCriterion("shop_id not in", values, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdBetween(String value1, String value2) { |
|||
addCriterion("shop_id between", value1, value2, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShopIdNotBetween(String value1, String value2) { |
|||
addCriterion("shop_id not between", value1, value2, "shopId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeIsNull() { |
|||
addCriterion("fee is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeIsNotNull() { |
|||
addCriterion("fee is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeEqualTo(BigDecimal value) { |
|||
addCriterion("fee =", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeNotEqualTo(BigDecimal value) { |
|||
addCriterion("fee <>", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeGreaterThan(BigDecimal value) { |
|||
addCriterion("fee >", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeGreaterThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("fee >=", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeLessThan(BigDecimal value) { |
|||
addCriterion("fee <", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeLessThanOrEqualTo(BigDecimal value) { |
|||
addCriterion("fee <=", value, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeIn(List<BigDecimal> values) { |
|||
addCriterion("fee in", values, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeNotIn(List<BigDecimal> values) { |
|||
addCriterion("fee not in", values, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("fee between", value1, value2, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFeeNotBetween(BigDecimal value1, BigDecimal value2) { |
|||
addCriterion("fee not between", value1, value2, "fee"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,258 @@ |
|||
<?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="cc.hiver.mall.dao.mapper.YearFeeLogMapper"> |
|||
<resultMap id="BaseResultMap" type="cc.hiver.mall.entity.YearFeeLog"> |
|||
<id column="id" jdbcType="VARCHAR" property="id" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="del_flag" jdbcType="INTEGER" property="delFlag" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="shop_id" jdbcType="VARCHAR" property="shopId" /> |
|||
<result column="fee" jdbcType="DECIMAL" property="fee" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, create_by, create_time, del_flag, update_by, update_time, shop_id, fee |
|||
</sql> |
|||
<select id="selectByExample" parameterType="cc.hiver.mall.entity.YearFeeLogExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_year_fee_log |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_year_fee_log |
|||
where id = #{id,jdbcType=VARCHAR} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String"> |
|||
delete from t_year_fee_log |
|||
where id = #{id,jdbcType=VARCHAR} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="cc.hiver.mall.entity.YearFeeLogExample"> |
|||
delete from t_year_fee_log |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="cc.hiver.mall.entity.YearFeeLog"> |
|||
insert into t_year_fee_log (id, create_by, create_time, |
|||
del_flag, update_by, update_time, |
|||
shop_id, fee) |
|||
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|||
#{shopId,jdbcType=VARCHAR}, #{fee,jdbcType=DECIMAL}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.YearFeeLog"> |
|||
insert into t_year_fee_log |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="shopId != null"> |
|||
shop_id, |
|||
</if> |
|||
<if test="fee != null"> |
|||
fee, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="shopId != null"> |
|||
#{shopId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="fee != null"> |
|||
#{fee,jdbcType=DECIMAL}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="cc.hiver.mall.entity.YearFeeLogExample" resultType="java.lang.Long"> |
|||
select count(*) from t_year_fee_log |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_year_fee_log |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.shopId != null"> |
|||
shop_id = #{record.shopId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.fee != null"> |
|||
fee = #{record.fee,jdbcType=DECIMAL}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_year_fee_log |
|||
set id = #{record.id,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=INTEGER}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
shop_id = #{record.shopId,jdbcType=VARCHAR}, |
|||
fee = #{record.fee,jdbcType=DECIMAL} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="cc.hiver.mall.entity.YearFeeLog"> |
|||
update t_year_fee_log |
|||
<set> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="shopId != null"> |
|||
shop_id = #{shopId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="fee != null"> |
|||
fee = #{fee,jdbcType=DECIMAL}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=VARCHAR} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="cc.hiver.mall.entity.YearFeeLog"> |
|||
update t_year_fee_log |
|||
set create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=INTEGER}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
shop_id = #{shopId,jdbcType=VARCHAR}, |
|||
fee = #{fee,jdbcType=DECIMAL} |
|||
where id = #{id,jdbcType=VARCHAR} |
|||
</update> |
|||
</mapper> |
|||
Loading…
Reference in new issue