pull/3/head
wzw 2 months ago
parent 390dee041b
commit a3e66a7a04

@ -5,21 +5,22 @@ import org.springframework.validation.ObjectError;
import java.util.Iterator; import java.util.Iterator;
/**
* Created by tanxinzheng on 17/5/14.
*/
@Deprecated @Deprecated
public class ArgumentValidException extends Exception{ public class ArgumentValidException extends Exception{
// 定义一个BindingResult类型的私有变量
private final BindingResult bindingResult; private final BindingResult bindingResult;
// 构造函数传入一个BindingResult类型的参数
public ArgumentValidException(BindingResult bindingResult) { public ArgumentValidException(BindingResult bindingResult) {
this.bindingResult = bindingResult; this.bindingResult = bindingResult;
} }
// 返回BindingResult类型的变量
public BindingResult getBindingResult() { public BindingResult getBindingResult() {
return this.bindingResult; return this.bindingResult;
} }
// 返回一个字符串,包含验证失败的参数索引、错误数量和所有错误信息
public String getMessage() { public String getMessage() {
StringBuilder sb = (new StringBuilder("Validation failed for argument at index ")).append(", with ").append(this.bindingResult.getErrorCount()).append(" error(s): "); StringBuilder sb = (new StringBuilder("Validation failed for argument at index ")).append(", with ").append(this.bindingResult.getErrorCount()).append(" error(s): ");
Iterator var2 = this.bindingResult.getAllErrors().iterator(); Iterator var2 = this.bindingResult.getAllErrors().iterator();

@ -27,28 +27,13 @@ import java.io.IOException;
import java.io.InputStream; import java.io.InputStream;
import java.util.List; import java.util.List;
/**
* @author tanxinzheng
* @version 1.0.0
* @date 2017-5-14 20:05:05
*/
@RestController @RestController
@RequestMapping(value = "/advice") @RequestMapping(value = "/advice")
public class AdviceController { public class AdviceController {
@Autowired @Autowired
AdviceService adviceService; AdviceService adviceService;
// 查询快报列表
/**
*
*
* @param limit
* @param offset
* @param id
* @param ids
* @param excludeIds
* @return Page<AdviceModel>
*/
@RequestMapping(method = RequestMethod.GET) @RequestMapping(method = RequestMethod.GET)
@Log(actionName = "查询快报列表") @Log(actionName = "查询快报列表")
public Page<AdviceModel> getAdviceList(@RequestParam(value = "limit") Integer limit, public Page<AdviceModel> getAdviceList(@RequestParam(value = "limit") Integer limit,
@ -63,36 +48,21 @@ public class AdviceController {
return adviceService.getAdviceModelPage(limit, offset, adviceQuery); return adviceService.getAdviceModelPage(limit, offset, adviceQuery);
} }
/** // 查询单个快报
*
*
* @param id
* @return AdviceModel
*/
@RequestMapping(value = "/{id}", method = RequestMethod.GET) @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@Log(actionName = "查询快报") @Log(actionName = "查询快报")
public AdviceModel getAdviceById(@PathVariable(value = "id") String id) { public AdviceModel getAdviceById(@PathVariable(value = "id") String id) {
return adviceService.getOneAdviceModel(id); return adviceService.getOneAdviceModel(id);
} }
/** // 新增快报
*
*
* @param adviceModel
* @return AdviceModel
*/
@RequestMapping(method = RequestMethod.POST) @RequestMapping(method = RequestMethod.POST)
@Log(actionName = "新增快报") @Log(actionName = "新增快报")
public AdviceModel createAdvice(@RequestBody @Valid AdviceModel adviceModel) { public AdviceModel createAdvice(@RequestBody @Valid AdviceModel adviceModel) {
return adviceService.createAdvice(adviceModel); return adviceService.createAdvice(adviceModel);
} }
/** // 更新快报
*
*
* @param id
* @param adviceModel
*/
@RequestMapping(value = "/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/{id}", method = RequestMethod.PUT)
@Log(actionName = "更新快报") @Log(actionName = "更新快报")
public void updateAdvice(@PathVariable(value = "id") String id, public void updateAdvice(@PathVariable(value = "id") String id,
@ -100,22 +70,14 @@ public class AdviceController {
adviceService.updateAdvice(adviceModel); adviceService.updateAdvice(adviceModel);
} }
/** // 删除单个快报
*
*
* @param id
*/
@RequestMapping(value = "/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除单个快报") @Log(actionName = "删除单个快报")
public void deleteAdvice(@PathVariable(value = "id") String id) { public void deleteAdvice(@PathVariable(value = "id") String id) {
adviceService.deleteAdvice(id); adviceService.deleteAdvice(id);
} }
/** // 批量删除快报
*
*
* @param ids
*/
@RequestMapping(method = RequestMethod.DELETE) @RequestMapping(method = RequestMethod.DELETE)
@Log(actionName = "批量删除快报") @Log(actionName = "批量删除快报")
public void deleteAdvices(@RequestParam(value = "ids") String[] ids) { public void deleteAdvices(@RequestParam(value = "ids") String[] ids) {

@ -12,39 +12,25 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_advice") @Table(name = "cd_advice")
public class Advice extends BaseMybatisModel { public class Advice extends BaseMybatisModel {
/** // 主键
*
*/
private String id; private String id;
/** // 标题
*
*/
private String title; private String title;
/** // 创建时间
*
*/
private Date insertDate; private Date insertDate;
/** // 创建人
*
*/
private Integer insertUserId; private Integer insertUserId;
/** // 更新时间
*
*/
private Date updateDate; private Date updateDate;
/** // 更新人
*
*/
private Integer updateUserId; private Integer updateUserId;
/** // 内容
*
*/
private String content; private String content;
@Column(name = "id") @Column(name = "id")

@ -5,47 +5,60 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
// 建议实体类
public class AdviceExample extends BaseMybatisExample { public class AdviceExample extends BaseMybatisExample {
// 排序字段
protected String orderByClause; protected String orderByClause;
// 是否去重
protected boolean distinct; protected boolean distinct;
// 查询条件
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
// 构造函数
public AdviceExample() { public AdviceExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
// 设置排序字段
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
} }
// 获取排序字段
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
} }
// 设置是否去重
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
} }
// 获取是否去重
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
} }
// 获取查询条件
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
} }
// 添加查询条件
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
} }
// 创建查询条件
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria); oredCriteria.add(criteria);
return criteria; return criteria;
} }
// 创建查询条件
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) { if (oredCriteria.size() == 0) {
@ -54,37 +67,46 @@ public class AdviceExample extends BaseMybatisExample {
return criteria; return criteria;
} }
// 创建查询条件
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
return criteria; return criteria;
} }
// 清空查询条件
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
orderByClause = null; orderByClause = null;
distinct = false; distinct = false;
} }
// 生成查询条件
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
// 查询条件列表
protected List<Criterion> criteria; protected List<Criterion> criteria;
// 构造函数
protected GeneratedCriteria() { protected GeneratedCriteria() {
super(); super();
criteria = new ArrayList<Criterion>(); criteria = new ArrayList<Criterion>();
} }
// 判断查询条件是否有效
public boolean isValid() { public boolean isValid() {
return criteria.size() > 0; return criteria.size() > 0;
} }
// 获取所有查询条件
public List<Criterion> getAllCriteria() { public List<Criterion> getAllCriteria() {
return criteria; return criteria;
} }
// 获取查询条件
public List<Criterion> getCriteria() { public List<Criterion> getCriteria() {
return criteria; return criteria;
} }
// 添加查询条件
protected void addCriterion(String condition) { protected void addCriterion(String condition) {
if (condition == null) { if (condition == null) {
throw new RuntimeException("Value for condition cannot be null"); throw new RuntimeException("Value for condition cannot be null");
@ -92,6 +114,7 @@ public class AdviceExample extends BaseMybatisExample {
criteria.add(new Criterion(condition)); criteria.add(new Criterion(condition));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value, String property) { protected void addCriterion(String condition, Object value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -99,6 +122,7 @@ public class AdviceExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value)); criteria.add(new Criterion(condition, value));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value1, Object value2, String property) { protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -106,381 +130,457 @@ public class AdviceExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value1, value2)); criteria.add(new Criterion(condition, value1, value2));
} }
// 判断id是否为空
public Criteria andIdIsNull() { public Criteria andIdIsNull() {
addCriterion("id is null"); addCriterion("id is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否不为空
public Criteria andIdIsNotNull() { public Criteria andIdIsNotNull() {
addCriterion("id is not null"); addCriterion("id is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否等于某个值
public Criteria andIdEqualTo(String value) { public Criteria andIdEqualTo(String value) {
addCriterion("id =", value, "id"); addCriterion("id =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否不等于某个值
public Criteria andIdNotEqualTo(String value) { public Criteria andIdNotEqualTo(String value) {
addCriterion("id <>", value, "id"); addCriterion("id <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否大于某个值
public Criteria andIdGreaterThan(String value) { public Criteria andIdGreaterThan(String value) {
addCriterion("id >", value, "id"); addCriterion("id >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否大于等于某个值
public Criteria andIdGreaterThanOrEqualTo(String value) { public Criteria andIdGreaterThanOrEqualTo(String value) {
addCriterion("id >=", value, "id"); addCriterion("id >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否小于某个值
public Criteria andIdLessThan(String value) { public Criteria andIdLessThan(String value) {
addCriterion("id <", value, "id"); addCriterion("id <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否小于等于某个值
public Criteria andIdLessThanOrEqualTo(String value) { public Criteria andIdLessThanOrEqualTo(String value) {
addCriterion("id <=", value, "id"); addCriterion("id <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否包含某个值
public Criteria andIdLike(String value) { public Criteria andIdLike(String value) {
addCriterion("id like", value, "id"); addCriterion("id like", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否不包含某个值
public Criteria andIdNotLike(String value) { public Criteria andIdNotLike(String value) {
addCriterion("id not like", value, "id"); addCriterion("id not like", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否在某个值列表中
public Criteria andIdIn(List<String> values) { public Criteria andIdIn(List<String> values) {
addCriterion("id in", values, "id"); addCriterion("id in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否不在某个值列表中
public Criteria andIdNotIn(List<String> values) { public Criteria andIdNotIn(List<String> values) {
addCriterion("id not in", values, "id"); addCriterion("id not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否在某个值范围内
public Criteria andIdBetween(String value1, String value2) { public Criteria andIdBetween(String value1, String value2) {
addCriterion("id between", value1, value2, "id"); addCriterion("id between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断id是否不在某个值范围内
public Criteria andIdNotBetween(String value1, String value2) { public Criteria andIdNotBetween(String value1, String value2) {
addCriterion("id not between", value1, value2, "id"); addCriterion("id not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否为空
public Criteria andTitleIsNull() { public Criteria andTitleIsNull() {
addCriterion("title is null"); addCriterion("title is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否不为空
public Criteria andTitleIsNotNull() { public Criteria andTitleIsNotNull() {
addCriterion("title is not null"); addCriterion("title is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否等于某个值
public Criteria andTitleEqualTo(String value) { public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title"); addCriterion("title =", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否不等于某个值
public Criteria andTitleNotEqualTo(String value) { public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title"); addCriterion("title <>", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否大于某个值
public Criteria andTitleGreaterThan(String value) { public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title"); addCriterion("title >", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否大于等于某个值
public Criteria andTitleGreaterThanOrEqualTo(String value) { public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title"); addCriterion("title >=", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否小于某个值
public Criteria andTitleLessThan(String value) { public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title"); addCriterion("title <", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否小于等于某个值
public Criteria andTitleLessThanOrEqualTo(String value) { public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title"); addCriterion("title <=", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否包含某个值
public Criteria andTitleLike(String value) { public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title"); addCriterion("title like", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否不包含某个值
public Criteria andTitleNotLike(String value) { public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title"); addCriterion("title not like", value, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否在某个值列表中
public Criteria andTitleIn(List<String> values) { public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title"); addCriterion("title in", values, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否不在某个值列表中
public Criteria andTitleNotIn(List<String> values) { public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title"); addCriterion("title not in", values, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否在某个值范围内
public Criteria andTitleBetween(String value1, String value2) { public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title"); addCriterion("title between", value1, value2, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断title是否不在某个值范围内
public Criteria andTitleNotBetween(String value1, String value2) { public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title"); addCriterion("title not between", value1, value2, "title");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否为空
public Criteria andInsertDateIsNull() { public Criteria andInsertDateIsNull() {
addCriterion("insert_date is null"); addCriterion("insert_date is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否不为空
public Criteria andInsertDateIsNotNull() { public Criteria andInsertDateIsNotNull() {
addCriterion("insert_date is not null"); addCriterion("insert_date is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否等于某个值
public Criteria andInsertDateEqualTo(Date value) { public Criteria andInsertDateEqualTo(Date value) {
addCriterion("insert_date =", value, "insertDate"); addCriterion("insert_date =", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否不等于某个值
public Criteria andInsertDateNotEqualTo(Date value) { public Criteria andInsertDateNotEqualTo(Date value) {
addCriterion("insert_date <>", value, "insertDate"); addCriterion("insert_date <>", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否大于某个值
public Criteria andInsertDateGreaterThan(Date value) { public Criteria andInsertDateGreaterThan(Date value) {
addCriterion("insert_date >", value, "insertDate"); addCriterion("insert_date >", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否大于等于某个值
public Criteria andInsertDateGreaterThanOrEqualTo(Date value) { public Criteria andInsertDateGreaterThanOrEqualTo(Date value) {
addCriterion("insert_date >=", value, "insertDate"); addCriterion("insert_date >=", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否小于某个值
public Criteria andInsertDateLessThan(Date value) { public Criteria andInsertDateLessThan(Date value) {
addCriterion("insert_date <", value, "insertDate"); addCriterion("insert_date <", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否小于等于某个值
public Criteria andInsertDateLessThanOrEqualTo(Date value) { public Criteria andInsertDateLessThanOrEqualTo(Date value) {
addCriterion("insert_date <=", value, "insertDate"); addCriterion("insert_date <=", value, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否在某个值列表中
public Criteria andInsertDateIn(List<Date> values) { public Criteria andInsertDateIn(List<Date> values) {
addCriterion("insert_date in", values, "insertDate"); addCriterion("insert_date in", values, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否不在某个值列表中
public Criteria andInsertDateNotIn(List<Date> values) { public Criteria andInsertDateNotIn(List<Date> values) {
addCriterion("insert_date not in", values, "insertDate"); addCriterion("insert_date not in", values, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否在某个值范围内
public Criteria andInsertDateBetween(Date value1, Date value2) { public Criteria andInsertDateBetween(Date value1, Date value2) {
addCriterion("insert_date between", value1, value2, "insertDate"); addCriterion("insert_date between", value1, value2, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertDate是否不在某个值范围内
public Criteria andInsertDateNotBetween(Date value1, Date value2) { public Criteria andInsertDateNotBetween(Date value1, Date value2) {
addCriterion("insert_date not between", value1, value2, "insertDate"); addCriterion("insert_date not between", value1, value2, "insertDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否为空
public Criteria andInsertUserIdIsNull() { public Criteria andInsertUserIdIsNull() {
addCriterion("insert_user_id is null"); addCriterion("insert_user_id is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否不为空
public Criteria andInsertUserIdIsNotNull() { public Criteria andInsertUserIdIsNotNull() {
addCriterion("insert_user_id is not null"); addCriterion("insert_user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否等于某个值
public Criteria andInsertUserIdEqualTo(Integer value) { public Criteria andInsertUserIdEqualTo(Integer value) {
addCriterion("insert_user_id =", value, "insertUserId"); addCriterion("insert_user_id =", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否不等于某个值
public Criteria andInsertUserIdNotEqualTo(Integer value) { public Criteria andInsertUserIdNotEqualTo(Integer value) {
addCriterion("insert_user_id <>", value, "insertUserId"); addCriterion("insert_user_id <>", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否大于某个值
public Criteria andInsertUserIdGreaterThan(Integer value) { public Criteria andInsertUserIdGreaterThan(Integer value) {
addCriterion("insert_user_id >", value, "insertUserId"); addCriterion("insert_user_id >", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否大于等于某个值
public Criteria andInsertUserIdGreaterThanOrEqualTo(Integer value) { public Criteria andInsertUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("insert_user_id >=", value, "insertUserId"); addCriterion("insert_user_id >=", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否小于某个值
public Criteria andInsertUserIdLessThan(Integer value) { public Criteria andInsertUserIdLessThan(Integer value) {
addCriterion("insert_user_id <", value, "insertUserId"); addCriterion("insert_user_id <", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否小于等于某个值
public Criteria andInsertUserIdLessThanOrEqualTo(Integer value) { public Criteria andInsertUserIdLessThanOrEqualTo(Integer value) {
addCriterion("insert_user_id <=", value, "insertUserId"); addCriterion("insert_user_id <=", value, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否在某个值列表中
public Criteria andInsertUserIdIn(List<Integer> values) { public Criteria andInsertUserIdIn(List<Integer> values) {
addCriterion("insert_user_id in", values, "insertUserId"); addCriterion("insert_user_id in", values, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否不在某个值列表中
public Criteria andInsertUserIdNotIn(List<Integer> values) { public Criteria andInsertUserIdNotIn(List<Integer> values) {
addCriterion("insert_user_id not in", values, "insertUserId"); addCriterion("insert_user_id not in", values, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否在某个值范围内
public Criteria andInsertUserIdBetween(Integer value1, Integer value2) { public Criteria andInsertUserIdBetween(Integer value1, Integer value2) {
addCriterion("insert_user_id between", value1, value2, "insertUserId"); addCriterion("insert_user_id between", value1, value2, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断insertUserId是否不在某个值范围内
public Criteria andInsertUserIdNotBetween(Integer value1, Integer value2) { public Criteria andInsertUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("insert_user_id not between", value1, value2, "insertUserId"); addCriterion("insert_user_id not between", value1, value2, "insertUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否为空
public Criteria andUpdateDateIsNull() { public Criteria andUpdateDateIsNull() {
addCriterion("update_date is null"); addCriterion("update_date is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否不为空
public Criteria andUpdateDateIsNotNull() { public Criteria andUpdateDateIsNotNull() {
addCriterion("update_date is not null"); addCriterion("update_date is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否等于某个值
public Criteria andUpdateDateEqualTo(Date value) { public Criteria andUpdateDateEqualTo(Date value) {
addCriterion("update_date =", value, "updateDate"); addCriterion("update_date =", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否不等于某个值
public Criteria andUpdateDateNotEqualTo(Date value) { public Criteria andUpdateDateNotEqualTo(Date value) {
addCriterion("update_date <>", value, "updateDate"); addCriterion("update_date <>", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否大于某个值
public Criteria andUpdateDateGreaterThan(Date value) { public Criteria andUpdateDateGreaterThan(Date value) {
addCriterion("update_date >", value, "updateDate"); addCriterion("update_date >", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否大于等于某个值
public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) { public Criteria andUpdateDateGreaterThanOrEqualTo(Date value) {
addCriterion("update_date >=", value, "updateDate"); addCriterion("update_date >=", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否小于某个值
public Criteria andUpdateDateLessThan(Date value) { public Criteria andUpdateDateLessThan(Date value) {
addCriterion("update_date <", value, "updateDate"); addCriterion("update_date <", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否小于等于某个值
public Criteria andUpdateDateLessThanOrEqualTo(Date value) { public Criteria andUpdateDateLessThanOrEqualTo(Date value) {
addCriterion("update_date <=", value, "updateDate"); addCriterion("update_date <=", value, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否在某个值列表中
public Criteria andUpdateDateIn(List<Date> values) { public Criteria andUpdateDateIn(List<Date> values) {
addCriterion("update_date in", values, "updateDate"); addCriterion("update_date in", values, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否不在某个值列表中
public Criteria andUpdateDateNotIn(List<Date> values) { public Criteria andUpdateDateNotIn(List<Date> values) {
addCriterion("update_date not in", values, "updateDate"); addCriterion("update_date not in", values, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否在某个值范围内
public Criteria andUpdateDateBetween(Date value1, Date value2) { public Criteria andUpdateDateBetween(Date value1, Date value2) {
addCriterion("update_date between", value1, value2, "updateDate"); addCriterion("update_date between", value1, value2, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateDate是否不在某个值范围内
public Criteria andUpdateDateNotBetween(Date value1, Date value2) { public Criteria andUpdateDateNotBetween(Date value1, Date value2) {
addCriterion("update_date not between", value1, value2, "updateDate"); addCriterion("update_date not between", value1, value2, "updateDate");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否为空
public Criteria andUpdateUserIdIsNull() { public Criteria andUpdateUserIdIsNull() {
addCriterion("update_user_id is null"); addCriterion("update_user_id is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否不为空
public Criteria andUpdateUserIdIsNotNull() { public Criteria andUpdateUserIdIsNotNull() {
addCriterion("update_user_id is not null"); addCriterion("update_user_id is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否等于某个值
public Criteria andUpdateUserIdEqualTo(Integer value) { public Criteria andUpdateUserIdEqualTo(Integer value) {
addCriterion("update_user_id =", value, "updateUserId"); addCriterion("update_user_id =", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否不等于某个值
public Criteria andUpdateUserIdNotEqualTo(Integer value) { public Criteria andUpdateUserIdNotEqualTo(Integer value) {
addCriterion("update_user_id <>", value, "updateUserId"); addCriterion("update_user_id <>", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否大于某个值
public Criteria andUpdateUserIdGreaterThan(Integer value) { public Criteria andUpdateUserIdGreaterThan(Integer value) {
addCriterion("update_user_id >", value, "updateUserId"); addCriterion("update_user_id >", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否大于等于某个值
public Criteria andUpdateUserIdGreaterThanOrEqualTo(Integer value) { public Criteria andUpdateUserIdGreaterThanOrEqualTo(Integer value) {
addCriterion("update_user_id >=", value, "updateUserId"); addCriterion("update_user_id >=", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否小于某个值
public Criteria andUpdateUserIdLessThan(Integer value) { public Criteria andUpdateUserIdLessThan(Integer value) {
addCriterion("update_user_id <", value, "updateUserId"); addCriterion("update_user_id <", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否小于等于某个值
public Criteria andUpdateUserIdLessThanOrEqualTo(Integer value) { public Criteria andUpdateUserIdLessThanOrEqualTo(Integer value) {
addCriterion("update_user_id <=", value, "updateUserId"); addCriterion("update_user_id <=", value, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否在某个值列表中
public Criteria andUpdateUserIdIn(List<Integer> values) { public Criteria andUpdateUserIdIn(List<Integer> values) {
addCriterion("update_user_id in", values, "updateUserId"); addCriterion("update_user_id in", values, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否不在某个值列表中
public Criteria andUpdateUserIdNotIn(List<Integer> values) { public Criteria andUpdateUserIdNotIn(List<Integer> values) {
addCriterion("update_user_id not in", values, "updateUserId"); addCriterion("update_user_id not in", values, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否在某个值范围内
public Criteria andUpdateUserIdBetween(Integer value1, Integer value2) { public Criteria andUpdateUserIdBetween(Integer value1, Integer value2) {
addCriterion("update_user_id between", value1, value2, "updateUserId"); addCriterion("update_user_id between", value1, value2, "updateUserId");
return (Criteria) this; return (Criteria) this;
} }
// 判断updateUserId是否不在某个值范围内
public Criteria andUpdateUserIdNotBetween(Integer value1, Integer value2) { public Criteria andUpdateUserIdNotBetween(Integer value1, Integer value2) {
addCriterion("update_user_id not between", value1, value2, "updateUserId"); addCriterion("update_user_id not between", value1, value2, "updateUserId");
return (Criteria) this; return (Criteria) this;

@ -5,12 +5,17 @@ import com.xmomen.module.advice.entity.Advice;
import com.xmomen.module.advice.entity.AdviceExample; import com.xmomen.module.advice.entity.AdviceExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// AdviceMapper接口继承MybatisMapper
public interface AdviceMapper extends MybatisMapper { public interface AdviceMapper extends MybatisMapper {
// 根据条件统计Advice数量
int countByExample(AdviceExample example); int countByExample(AdviceExample example);
// 根据条件删除Advice
int deleteByExample(AdviceExample example); int deleteByExample(AdviceExample example);
// 插入Selective即只插入不为空的字段
int insertSelective(Advice record); int insertSelective(Advice record);
// 根据条件更新Selective即只更新不为空的字段
int updateByExampleSelective(@Param("record") Advice record, @Param("example") AdviceExample example); int updateByExampleSelective(@Param("record") Advice record, @Param("example") AdviceExample example);
} }

@ -1,12 +1,9 @@
package com.xmomen.module.advice.mapper; package com.xmomen.module.advice.mapper;
/** // 定义一个接口用于扩展AdviceMapper的功能
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
public interface AdviceMapperExt { public interface AdviceMapperExt {
// 定义一个常量,用于命名空间
public static final String AdviceMapperNameSpace = "com.xmomen.module.advice.mapper.AdviceMapperExt."; public static final String AdviceMapperNameSpace = "com.xmomen.module.advice.mapper.AdviceMapperExt.";
} }

@ -9,28 +9,25 @@ import org.springframework.beans.BeanUtils;
import java.util.Date; import java.util.Date;
import java.io.Serializable; import java.io.Serializable;
/**
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
public @Data class AdviceCreate implements Serializable { public @Data class AdviceCreate implements Serializable {
/** 主键 */ // 主键
private String id; private String id;
/** 标题 */ // 标题
private String title; private String title;
/** 创建时间 */ // 创建时间
private Date insertDate; private Date insertDate;
/** 创建人 */ // 创建人
private Integer insertUserId; private Integer insertUserId;
/** 更新时间 */ // 更新时间
private Date updateDate; private Date updateDate;
/** 更新人 */ // 更新人
private Integer updateUserId; private Integer updateUserId;
/** 内容 */ // 内容
private String content; private String content;
// 将AdviceCreate对象转换为Advice对象
public Advice getEntity(){ public Advice getEntity(){
Advice advice = new Advice(); Advice advice = new Advice();
BeanUtils.copyProperties(this, advice); BeanUtils.copyProperties(this, advice);

@ -16,66 +16,43 @@ import java.lang.Integer;
import java.util.Date; import java.util.Date;
import java.io.Serializable; import java.io.Serializable;
/**
* @author tanxinzheng
* @version 1.0.0
* @date 2017-5-14 20:05:05
*/
@ExcelTarget(value = "AdviceModel") @ExcelTarget(value = "AdviceModel")
public public
@Data @Data
class AdviceModel implements Serializable { class AdviceModel implements Serializable {
/** // 主键
*
*/
@Length(max = 32, message = "主键字符长度限制[0,32]") @Length(max = 32, message = "主键字符长度限制[0,32]")
private String id; private String id;
/** // 标题
*
*/
@Excel(name = "标题") @Excel(name = "标题")
@NotBlank(message = "标题为必填项") @NotBlank(message = "标题为必填项")
@Length(max = 128, message = "标题字符长度限制[0,128]") @Length(max = 128, message = "标题字符长度限制[0,128]")
private String title; private String title;
/** // 创建时间
*
*/
@Excel(name = "创建时间") @Excel(name = "创建时间")
private Date insertDate; private Date insertDate;
/** // 创建人
*
*/
@Excel(name = "创建人") @Excel(name = "创建人")
@Range(max = 999999999, min = -999999999, message = "创建人数值范围[999999999,-999999999]") @Range(max = 999999999, min = -999999999, message = "创建人数值范围[999999999,-999999999]")
private Integer insertUserId; private Integer insertUserId;
private String insertUser; private String insertUser;
/** // 更新时间
*
*/
@Excel(name = "更新时间") @Excel(name = "更新时间")
private Date updateDate; private Date updateDate;
/** // 更新人
*
*/
@Excel(name = "更新人") @Excel(name = "更新人")
@Range(max = 999999999, min = -999999999, message = "更新人数值范围[999999999,-999999999]") @Range(max = 999999999, min = -999999999, message = "更新人数值范围[999999999,-999999999]")
private Integer updateUserId; private Integer updateUserId;
private String updateUser; private String updateUser;
/** // 内容
*
*/
@Excel(name = "内容") @Excel(name = "内容")
@Length(max = 65535, message = "内容字符长度限制[0,65,535]") @Length(max = 65535, message = "内容字符长度限制[0,65,535]")
private String content; private String content;
/** // Get Advice Entity Object
* Get Advice Entity Object
*
* @return
*/
@JsonIgnore @JsonIgnore
public Advice getEntity() { public Advice getEntity() {
Advice advice = new Advice(); Advice advice = new Advice();

@ -4,17 +4,12 @@ import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
/**
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
public @Data class AdviceQuery implements Serializable { public @Data class AdviceQuery implements Serializable {
/** 主键 */ // 主键
private String id; private String id;
/** 包含主键集 */ // 包含主键集
private String[] ids; private String[] ids;
/** 排除主键集 */ // 排除主键集
private String[] excludeIds; private String[] excludeIds;
} }

@ -9,29 +9,26 @@ import org.springframework.beans.BeanUtils;
import java.util.Date; import java.util.Date;
import java.io.Serializable; import java.io.Serializable;
/**
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
public @Data class AdviceUpdate implements Serializable { public @Data class AdviceUpdate implements Serializable {
/** 主键 */ // 主键
private String id; private String id;
/** 标题 */ // 标题
private String title; private String title;
/** 创建时间 */ // 创建时间
private Date insertDate; private Date insertDate;
/** 创建人 */ // 创建人
private Integer insertUserId; private Integer insertUserId;
/** 更新时间 */ // 更新时间
private Date updateDate; private Date updateDate;
/** 更新人 */ // 更新人
private Integer updateUserId; private Integer updateUserId;
/** 内容 */ // 内容
private String content; private String content;
// 将AdviceUpdate对象转换为Advice对象
public Advice getEntity(){ public Advice getEntity(){
Advice advice = new Advice(); Advice advice = new Advice();
BeanUtils.copyProperties(this, advice); BeanUtils.copyProperties(this, advice);

@ -9,107 +9,47 @@ import org.apache.ibatis.exceptions.TooManyResultsException;
import java.io.Serializable; import java.io.Serializable;
import java.util.List; import java.util.List;
/**
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
public interface AdviceService { public interface AdviceService {
/** // 新增快报
*
* @param adviceModel
* @return AdviceModel
*/
public AdviceModel createAdvice(AdviceModel adviceModel); public AdviceModel createAdvice(AdviceModel adviceModel);
/** // 新增快报实体对象
*
* @param advice
* @return Advice
*/
public Advice createAdvice(Advice advice); public Advice createAdvice(Advice advice);
/** // 批量新增快报
*
* @param AdviceModel
* @return List<AdviceModel>
*/
List<AdviceModel> createAdvices(List<AdviceModel> adviceModels); List<AdviceModel> createAdvices(List<AdviceModel> adviceModels);
/** // 更新快报
*
* @param adviceModel
*/
public void updateAdvice(AdviceModel adviceModel); public void updateAdvice(AdviceModel adviceModel);
/** // 更新快报实体对象
*
* @param advice
* @return Advice
*/
public void updateAdvice(Advice advice); public void updateAdvice(Advice advice);
/** // 批量删除快报
*
* @param ids
*/
public void deleteAdvice(String[] ids); public void deleteAdvice(String[] ids);
/** // 删除快报
*
* @param id
*/
public void deleteAdvice(String id); public void deleteAdvice(String id);
/** // 查询快报领域分页对象(带参数条件)
*
* @param adviceQuery
* @param limit
* @param offset
* @return Page<AdviceModel>
*/
public Page<AdviceModel> getAdviceModelPage(int limit, int offset, AdviceQuery adviceQuery); public Page<AdviceModel> getAdviceModelPage(int limit, int offset, AdviceQuery adviceQuery);
/** // 查询快报领域分页对象(无参数条件)
*
* @param limit
* @param offset
* @return Page<AdviceModel>
*/
public Page<AdviceModel> getAdviceModelPage(int limit, int offset); public Page<AdviceModel> getAdviceModelPage(int limit, int offset);
/** // 查询快报领域集合对象(带参数条件)
*
* @param adviceQuery
* @return List<AdviceModel>
*/
public List<AdviceModel> getAdviceModelList(AdviceQuery adviceQuery); public List<AdviceModel> getAdviceModelList(AdviceQuery adviceQuery);
/** // 查询快报领域集合对象(无参数条件)
*
* @return List<AdviceModel>
*/
public List<AdviceModel> getAdviceModelList(); public List<AdviceModel> getAdviceModelList();
/** // 查询快报实体对象
*
* @param id
* @return Advice
*/
public Advice getOneAdvice(String id); public Advice getOneAdvice(String id);
/** // 根据主键查询单个对象
*
* @param id
* @return AdviceModel
*/
public AdviceModel getOneAdviceModel(String id); public AdviceModel getOneAdviceModel(String id);
/** // 根据查询参数查询单个对象此方法只用于提供精确查询单个对象若结果数超过1则会报错
* 1
* @param adviceQuery
* @return AdviceModel
*/
public AdviceModel getOneAdviceModel(AdviceQuery adviceQuery) throws TooManyResultsException; public AdviceModel getOneAdviceModel(AdviceQuery adviceQuery) throws TooManyResultsException;
} }

@ -23,23 +23,14 @@ import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
/**
* @author tanxinzheng
* @date 2017-5-14 20:05:05
* @version 1.0.0
*/
@Service @Service
public class AdviceServiceImpl implements AdviceService { public class AdviceServiceImpl implements AdviceService {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 新增快报
*
*
* @param adviceModel
* @return AdviceModel
*/
@Override @Override
@Transactional @Transactional
public AdviceModel createAdvice(AdviceModel adviceModel) { public AdviceModel createAdvice(AdviceModel adviceModel) {
@ -50,12 +41,7 @@ public class AdviceServiceImpl implements AdviceService {
return null; return null;
} }
/** // 新增快报实体对象
*
*
* @param advice
* @return Advice
*/
@Override @Override
@Transactional @Transactional
public Advice createAdvice(Advice advice) { public Advice createAdvice(Advice advice) {
@ -66,12 +52,7 @@ public class AdviceServiceImpl implements AdviceService {
return mybatisDao.insertByModel(advice); return mybatisDao.insertByModel(advice);
} }
/** // 批量新增快报
*
*
* @param adviceModels
* @return List<AdviceModel>
*/
@Override @Override
@Transactional @Transactional
public List<AdviceModel> createAdvices(List<AdviceModel> adviceModels) { public List<AdviceModel> createAdvices(List<AdviceModel> adviceModels) {
@ -88,11 +69,7 @@ public class AdviceServiceImpl implements AdviceService {
return adviceModelList; return adviceModelList;
} }
/** // 更新快报
*
*
* @param adviceModel
*/
@Override @Override
@Transactional @Transactional
public void updateAdvice(AdviceModel adviceModel) { public void updateAdvice(AdviceModel adviceModel) {
@ -101,12 +78,7 @@ public class AdviceServiceImpl implements AdviceService {
mybatisDao.update(adviceModel.getEntity()); mybatisDao.update(adviceModel.getEntity());
} }
/** // 更新快报实体对象
*
*
* @param advice
* @return Advice
*/
@Override @Override
@Transactional @Transactional
public void updateAdvice(Advice advice) { public void updateAdvice(Advice advice) {
@ -115,11 +87,7 @@ public class AdviceServiceImpl implements AdviceService {
mybatisDao.update(advice); mybatisDao.update(advice);
} }
/** // 删除快报
*
*
* @param ids
*/
@Override @Override
@Transactional @Transactional
public void deleteAdvice(String[] ids) { public void deleteAdvice(String[] ids) {
@ -128,80 +96,44 @@ public class AdviceServiceImpl implements AdviceService {
mybatisDao.deleteByExample(adviceExample); mybatisDao.deleteByExample(adviceExample);
} }
/** // 删除快报
*
*
* @param id
*/
@Override @Override
@Transactional @Transactional
public void deleteAdvice(String id) { public void deleteAdvice(String id) {
mybatisDao.deleteByPrimaryKey(Advice.class, id); mybatisDao.deleteByPrimaryKey(Advice.class, id);
} }
/** // 查询快报领域分页对象(带参数条件)
*
*
* @param limit
* @param offset
* @param adviceQuery
* @return Page<AdviceModel>
*/
@Override @Override
public Page<AdviceModel> getAdviceModelPage(int limit, int offset, AdviceQuery adviceQuery) { public Page<AdviceModel> getAdviceModelPage(int limit, int offset, AdviceQuery adviceQuery) {
return (Page<AdviceModel>) mybatisDao.selectPage(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery, limit, offset); return (Page<AdviceModel>) mybatisDao.selectPage(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery, limit, offset);
} }
/** // 查询快报领域分页对象(无参数条件)
*
*
* @param limit
* @param offset
* @return Page<AdviceModel>
*/
@Override @Override
public Page<AdviceModel> getAdviceModelPage(int limit, int offset) { public Page<AdviceModel> getAdviceModelPage(int limit, int offset) {
return (Page<AdviceModel>) mybatisDao.selectPage(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", null, limit, offset); return (Page<AdviceModel>) mybatisDao.selectPage(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", null, limit, offset);
} }
/** // 查询快报领域集合对象(带参数条件)
*
*
* @param adviceQuery
* @return List<AdviceModel>
*/
@Override @Override
public List<AdviceModel> getAdviceModelList(AdviceQuery adviceQuery) { public List<AdviceModel> getAdviceModelList(AdviceQuery adviceQuery) {
return mybatisDao.getSqlSessionTemplate().selectList(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery); return mybatisDao.getSqlSessionTemplate().selectList(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery);
} }
/** // 查询快报领域集合对象(无参数条件)
*
*
* @return List<AdviceModel>
*/
@Override @Override
public List<AdviceModel> getAdviceModelList() { public List<AdviceModel> getAdviceModelList() {
return mybatisDao.getSqlSessionTemplate().selectList(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel"); return mybatisDao.getSqlSessionTemplate().selectList(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel");
} }
/** // 查询快报实体对象
*
*
* @param id
* @return Advice
*/
@Override @Override
public Advice getOneAdvice(String id) { public Advice getOneAdvice(String id) {
return mybatisDao.selectByPrimaryKey(Advice.class, id); return mybatisDao.selectByPrimaryKey(Advice.class, id);
} }
/** // 根据主键查询单个对象
*
*
* @param id
* @return AdviceModel
*/
@Override @Override
public AdviceModel getOneAdviceModel(String id) { public AdviceModel getOneAdviceModel(String id) {
AdviceQuery adviceQuery = new AdviceQuery(); AdviceQuery adviceQuery = new AdviceQuery();
@ -209,12 +141,7 @@ public class AdviceServiceImpl implements AdviceService {
return mybatisDao.getSqlSessionTemplate().selectOne(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery); return mybatisDao.getSqlSessionTemplate().selectOne(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery);
} }
/** // 根据查询参数查询单个对象此方法只用于提供精确查询单个对象若结果数超过1则会报错
* 1
*
* @param adviceQuery
* @return AdviceModel
*/
@Override @Override
public AdviceModel getOneAdviceModel(AdviceQuery adviceQuery) throws TooManyResultsException { public AdviceModel getOneAdviceModel(AdviceQuery adviceQuery) throws TooManyResultsException {
return mybatisDao.getSqlSessionTemplate().selectOne(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery); return mybatisDao.getSqlSessionTemplate().selectOne(AdviceMapperExt.AdviceMapperNameSpace + "getAdviceModel", adviceQuery);

@ -2,67 +2,49 @@ package com.xmomen.module.base.constant;
import java.io.Serializable; import java.io.Serializable;
/**
* Created by Jeng on 16/5/10.
*/
public class AppConstants implements Serializable { public class AppConstants implements Serializable {
/** // 客服经理角色代码
*
*/
public static final String CUSTOMER_MANAGER_PERMISSION_CODE = "customer_manager"; public static final String CUSTOMER_MANAGER_PERMISSION_CODE = "customer_manager";
/** // 客服组
*
*/
public static final String CUSTOMER_PERMISSION_CODE = "kehuzu"; public static final String CUSTOMER_PERMISSION_CODE = "kehuzu";
/** // 后台组
*
*/
public static final String HOU_TAI_CODE = "houtaibu"; public static final String HOU_TAI_CODE = "houtaibu";
/** // 管理员
*
*/
public static final String ADMIN = "admin"; public static final String ADMIN = "admin";
/** // 超级管理员
*
*/
public static final String SUPER_ADMIN = "super_admin"; public static final String SUPER_ADMIN = "super_admin";
/** // 物流中心
*
*/
public static final String WULIUZXB = "wuliuzxb"; public static final String WULIUZXB = "wuliuzxb";
/** // 财务组
*
*/
public static final String CWU = "cwu"; public static final String CWU = "cwu";
public static final String PACKAGE_PERMISSION_CODE = "baozhuangzu"; public static final String PACKAGE_PERMISSION_CODE = "baozhuangzu";
public static final String PACKING_PERMISSION_CODE = "zhuangxiangzu"; public static final String PACKING_PERMISSION_CODE = "zhuangxiangzu";
/** // 运输
*
*/
public static final String YUN_SHU_PERMISSION_CODE = "yunshubu"; public static final String YUN_SHU_PERMISSION_CODE = "yunshubu";
/** // 快递商
*
*/
public static final String KUAI_DI_SHANG = "kuaidishang"; public static final String KUAI_DI_SHANG = "kuaidishang";
/** // 用户sessionUserId键值
* sessionUserId
*/
public static final String SESSION_USER_ID_KEY = "user_id"; public static final String SESSION_USER_ID_KEY = "user_id";
public static final String PC_PASSWORD_SALT = "dms_pc"; public static final String PC_PASSWORD_SALT = "dms_pc";
public static final int STOCK_CHANGE_TYPE_IN = 1;//入库 //入库
public static final int STOCK_CHANGE_TYPE_BROKEN = 2;//破损 public static final int STOCK_CHANGE_TYPE_IN = 1;
public static final int STOCK_CHANGE_TYPE_CANCEL = 3;//核销
//破损
public static final int STOCK_CHANGE_TYPE_BROKEN = 2;
//核销
public static final int STOCK_CHANGE_TYPE_CANCEL = 3;
} }

@ -29,8 +29,7 @@ import com.xmomen.module.base.model.UpdateActivity;
import com.xmomen.module.base.service.ActivityService; import com.xmomen.module.base.service.ActivityService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
*/
@RestController @RestController
public class ActivityController { public class ActivityController {
@ -40,13 +39,7 @@ public class ActivityController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 活动列表
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/activity", method = RequestMethod.GET) @RequestMapping(value = "/activity", method = RequestMethod.GET)
@Log(actionName = "查询活动列表") @Log(actionName = "查询活动列表")
public Page<ActivityModel> getUserList(@RequestParam(value = "limit") Integer limit, public Page<ActivityModel> getUserList(@RequestParam(value = "limit") Integer limit,
@ -58,12 +51,7 @@ public class ActivityController {
} }
/** // 新增活动
*
* @param createActivity
* @param bindingResult
* @return
*/
@RequestMapping(value = "/activity", method = RequestMethod.POST) @RequestMapping(value = "/activity", method = RequestMethod.POST)
@Log(actionName = "新增活动") @Log(actionName = "新增活动")
public void createActivity(@RequestBody @Valid CreateActivity createActivity, BindingResult bindingResult) throws ArgumentValidException { public void createActivity(@RequestBody @Valid CreateActivity createActivity, BindingResult bindingResult) throws ArgumentValidException {
@ -73,13 +61,7 @@ public class ActivityController {
activityService.createActivity(createActivity); activityService.createActivity(createActivity);
} }
/** // 更新活动
*
* @param id
* @param updateActivity
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/activity/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/activity/{id}", method = RequestMethod.PUT)
@Log(actionName = "更新活动") @Log(actionName = "更新活动")
public void updateActivity(@PathVariable(value = "id") Integer id, public void updateActivity(@PathVariable(value = "id") Integer id,
@ -90,20 +72,13 @@ public class ActivityController {
activityService.updateActivity(id,updateActivity); activityService.updateActivity(id,updateActivity);
} }
/** // 删除活动
*
* @param id
*/
@RequestMapping(value = "/activity/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/activity/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除活动") @Log(actionName = "删除活动")
public void deleteActivity(@PathVariable(value = "id") Long id){ public void deleteActivity(@PathVariable(value = "id") Long id){
mybatisDao.deleteByPrimaryKey(CdActivity.class, id); mybatisDao.deleteByPrimaryKey(CdActivity.class, id);
} }
/** // 查询选择的产品
*
* @param parentId
* @return
*/
@RequestMapping(value = "/activity/getChoseItemList", method = RequestMethod.GET) @RequestMapping(value = "/activity/getChoseItemList", method = RequestMethod.GET)
public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId){ public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId){
List<ItemChildModel> childItems = new ArrayList<ItemChildModel>(); List<ItemChildModel> childItems = new ArrayList<ItemChildModel>();

@ -28,9 +28,6 @@ import com.xmomen.module.base.model.UpdatePlan;
import com.xmomen.module.base.service.BasePlanService; import com.xmomen.module.base.service.BasePlanService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
* Created by Jeng on 2016/3/30.
*/
@RestController @RestController
public class BasePlanController { public class BasePlanController {
@ -40,13 +37,7 @@ public class BasePlanController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询计划列表
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/basePlan", method = RequestMethod.GET) @RequestMapping(value = "/basePlan", method = RequestMethod.GET)
@Log(actionName = "查询计划列表") @Log(actionName = "查询计划列表")
public Page<PlanModel> getUserList(@RequestParam(value = "limit") Integer limit, public Page<PlanModel> getUserList(@RequestParam(value = "limit") Integer limit,
@ -55,10 +46,7 @@ public class BasePlanController {
return basePlanService.getPlanList(keyword, limit, offset); return basePlanService.getPlanList(keyword, limit, offset);
} }
/** // 查询计划
*
* @param id
*/
@RequestMapping(value = "/basePlan/{id}", method = RequestMethod.GET) @RequestMapping(value = "/basePlan/{id}", method = RequestMethod.GET)
@Log(actionName = "查询计划") @Log(actionName = "查询计划")
public CdPlan getUserList(@PathVariable(value = "id") Integer id){ public CdPlan getUserList(@PathVariable(value = "id") Integer id){

@ -35,12 +35,7 @@ public class CompanyController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询单位公司信息
*
*
* @param id
* @return
*/
@RequestMapping(value = "/company", method = RequestMethod.GET) @RequestMapping(value = "/company", method = RequestMethod.GET)
@Log(actionName = "查询单位公司信息") @Log(actionName = "查询单位公司信息")
public Page<CompanyModel> getMemberList(@RequestParam(value = "limit") Integer limit, public Page<CompanyModel> getMemberList(@RequestParam(value = "limit") Integer limit,
@ -58,11 +53,7 @@ public class CompanyController {
return (Page<CompanyModel>) mybatisDao.selectPage(CompanyMapper.CompanyMapperNameSpace + "getCompanyList", map, limit, offset); return (Page<CompanyModel>) mybatisDao.selectPage(CompanyMapper.CompanyMapperNameSpace + "getCompanyList", map, limit, offset);
} }
/** // 根据ID查询客户经理信息
* ID
*
* @param id
*/
@RequestMapping(value = "/company/queryCompanyManagerListById", method = RequestMethod.GET) @RequestMapping(value = "/company/queryCompanyManagerListById", method = RequestMethod.GET)
@Log(actionName = "根据ID查询客户经理信息") @Log(actionName = "根据ID查询客户经理信息")
public List<CompanyCustomerManager> queryCompanyManagerListById(@PathVariable(value = "id") Integer id) { public List<CompanyCustomerManager> queryCompanyManagerListById(@PathVariable(value = "id") Integer id) {
@ -85,11 +76,7 @@ public class CompanyController {
companyService.createCompany(createCompany); companyService.createCompany(createCompany);
} }
/** // 修改
*
*
* @param id
*/
@RequestMapping(value = "/company/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/company/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改单位信息") @Log(actionName = "修改单位信息")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -100,11 +87,7 @@ public class CompanyController {
companyService.updateCompany(id, updateCompany); companyService.updateCompany(id, updateCompany);
} }
/** // 删除
*
*
* @param id
*/
@RequestMapping(value = "/company/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/company/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除单位信息") @Log(actionName = "删除单位信息")
public void deleteMember(@PathVariable(value = "id") Integer id) { public void deleteMember(@PathVariable(value = "id") Integer id) {

@ -33,11 +33,7 @@ public class ContractController {
ContractMapper contractMapper; ContractMapper contractMapper;
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询合同信息
*
* @param id
* @return
*/
@RequestMapping(value = "/contract", method = RequestMethod.GET) @RequestMapping(value = "/contract", method = RequestMethod.GET)
@Log(actionName = "查询合同信息") @Log(actionName = "查询合同信息")
public Page<ContractModel> getMemberList(@RequestParam(value = "limit") Integer limit, public Page<ContractModel> getMemberList(@RequestParam(value = "limit") Integer limit,
@ -58,10 +54,7 @@ public class ContractController {
contractService.createContract(createContract); contractService.createContract(createContract);
} }
/** // 合同查看
*
* @return
*/
@RequestMapping(value = "/contract/{id}", method = RequestMethod.GET) @RequestMapping(value = "/contract/{id}", method = RequestMethod.GET)
@Log(actionName = "查询合同") @Log(actionName = "查询合同")
public ContractModel getContractDetail(@PathVariable(value = "id") Integer id){ public ContractModel getContractDetail(@PathVariable(value = "id") Integer id){
@ -75,10 +68,7 @@ public class ContractController {
return null; return null;
} }
/** // 修改
*
* @param id
*/
@RequestMapping(value = "/contract/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/contract/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改合同") @Log(actionName = "修改合同")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -89,10 +79,7 @@ public class ContractController {
contractService.updateContract(id, updateContract); contractService.updateContract(id, updateContract);
} }
/** // 删除
*
* @param id
*/
@RequestMapping(value = "/contract/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/contract/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除合同信息") @Log(actionName = "删除合同信息")
public void deleteMember(@PathVariable(value = "id") Integer id){ public void deleteMember(@PathVariable(value = "id") Integer id){

@ -31,11 +31,7 @@ public class ContractItemController {
ContractItemMapper contractItemMapper; ContractItemMapper contractItemMapper;
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询合同价格信息
*
* @param id
* @return
*/
@RequestMapping(value = "/contractItem", method = RequestMethod.GET) @RequestMapping(value = "/contractItem", method = RequestMethod.GET)
@Log(actionName = "查询合同价格信息") @Log(actionName = "查询合同价格信息")
public Page<ContractItemModel> getMemberList(@RequestParam(value = "limit") Integer limit, public Page<ContractItemModel> getMemberList(@RequestParam(value = "limit") Integer limit,
@ -56,10 +52,7 @@ public class ContractItemController {
contractItemService.createContractItem(createContractItem); contractItemService.createContractItem(createContractItem);
} }
/** // 修改
*
* @param id
*/
@RequestMapping(value = "/contractItem/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/contractItem/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改合同价格") @Log(actionName = "修改合同价格")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -70,10 +63,7 @@ public class ContractItemController {
contractItemService.updateContractItem(id, updateContractItem); contractItemService.updateContractItem(id, updateContractItem);
} }
/** // 删除
*
* @param id
*/
@RequestMapping(value = "/contractItem/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/contractItem/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除合同价格信息") @Log(actionName = "删除合同价格信息")
public void deleteMember(@PathVariable(value = "id") Integer id){ public void deleteMember(@PathVariable(value = "id") Integer id){

@ -43,9 +43,6 @@ import com.xmomen.module.base.model.UpdateCoupon;
import com.xmomen.module.base.service.CouponService; import com.xmomen.module.base.service.CouponService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
* Created by Jeng on 2016/3/30.
*/
@RestController @RestController
public class CouponActivityController { public class CouponActivityController {
@ -55,13 +52,7 @@ public class CouponActivityController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 卡券列表
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/couponActivity", method = RequestMethod.GET) @RequestMapping(value = "/couponActivity", method = RequestMethod.GET)
@Log(actionName = "卡劵回填查询") @Log(actionName = "卡劵回填查询")
public Page<CouponModel> getCouponList(@RequestParam(value = "limit") Integer limit, public Page<CouponModel> getCouponList(@RequestParam(value = "limit") Integer limit,
@ -76,34 +67,42 @@ public class CouponActivityController {
@RequestParam(value = "isOver",required = false) Integer isOver, @RequestParam(value = "isOver",required = false) Integer isOver,
@RequestParam(value = "batch",required = false) String batch, @RequestParam(value = "batch",required = false) String batch,
@RequestParam(value = "keyword", required = false) String keyword){ @RequestParam(value = "keyword", required = false) String keyword){
// 创建卡券查询对象
CouponQuery couponQuery = new CouponQuery(); CouponQuery couponQuery = new CouponQuery();
// 设置查询关键字
couponQuery.setKeyword(keyword); couponQuery.setKeyword(keyword);
// 设置公司ID
couponQuery.setCdCompanyId(cdCompanyId); couponQuery.setCdCompanyId(cdCompanyId);
// 设置卡券分类ID
couponQuery.setCouponCategoryId(couponCategoryId); couponQuery.setCouponCategoryId(couponCategoryId);
// 设置卡券编号
couponQuery.setCouponNumber(couponNumber); couponQuery.setCouponNumber(couponNumber);
// 设置卡券类型
couponQuery.setCouponType(couponType); couponQuery.setCouponType(couponType);
// 设置客户经理ID
couponQuery.setCustomerMangerId(customerMangerId); couponQuery.setCustomerMangerId(customerMangerId);
// 设置是否过期
couponQuery.setIsOver(isOver); couponQuery.setIsOver(isOver);
// 设置是否发送
couponQuery.setIsSend(isSend); couponQuery.setIsSend(isSend);
// 设置是否有效
couponQuery.setIsUseful(isUseful); couponQuery.setIsUseful(isUseful);
// 设置批次
if(!StringUtils.isBlank(batch)){ if(!StringUtils.isBlank(batch)){
couponQuery.setBatch(batch); couponQuery.setBatch(batch);
} }
//客服经理过滤 如果有客服组权限则不过滤 //客服经理过滤 如果有客服组权限则不过滤
if(SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE)){ if(SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE)){
// 获取当前用户ID
Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY); Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY);
// 设置客服经理ID
couponQuery.setManagerId(userId); couponQuery.setManagerId(userId);
} }
// 查询卡券列表
return couponService.queryCouponActivity(couponQuery, limit, offset); return couponService.queryCouponActivity(couponQuery, limit, offset);
} }
/** // 卡券列表
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/couponActivity/couponActivityAddress", method = RequestMethod.GET) @RequestMapping(value = "/couponActivity/couponActivityAddress", method = RequestMethod.GET)
@Log(actionName = "参与活动卡劵回填查询") @Log(actionName = "参与活动卡劵回填查询")
public Page<CouponModel> getCouponActivityAddressList(@RequestParam(value = "limit") Integer limit, public Page<CouponModel> getCouponActivityAddressList(@RequestParam(value = "limit") Integer limit,
@ -118,36 +117,48 @@ public class CouponActivityController {
@RequestParam(value = "isOver",required = false) Integer isOver, @RequestParam(value = "isOver",required = false) Integer isOver,
@RequestParam(value = "batch",required = false) String batch, @RequestParam(value = "batch",required = false) String batch,
@RequestParam(value = "keyword", required = false) String keyword){ @RequestParam(value = "keyword", required = false) String keyword){
// 创建卡券查询对象
CouponQuery couponQuery = new CouponQuery(); CouponQuery couponQuery = new CouponQuery();
// 设置查询关键字
couponQuery.setKeyword(keyword); couponQuery.setKeyword(keyword);
// 设置公司ID
couponQuery.setCdCompanyId(cdCompanyId); couponQuery.setCdCompanyId(cdCompanyId);
// 设置卡券分类ID
couponQuery.setCouponCategoryId(couponCategoryId); couponQuery.setCouponCategoryId(couponCategoryId);
// 设置卡券编号
couponQuery.setCouponNumber(couponNumber); couponQuery.setCouponNumber(couponNumber);
// 设置卡券类型
couponQuery.setCouponType(couponType); couponQuery.setCouponType(couponType);
// 设置客户经理ID
couponQuery.setCustomerMangerId(customerMangerId); couponQuery.setCustomerMangerId(customerMangerId);
// 设置是否过期
couponQuery.setIsOver(isOver); couponQuery.setIsOver(isOver);
// 设置是否发送
couponQuery.setIsSend(isSend); couponQuery.setIsSend(isSend);
// 设置是否有效
couponQuery.setIsUseful(isUseful); couponQuery.setIsUseful(isUseful);
// 设置批次
if(!StringUtils.isBlank(batch)){ if(!StringUtils.isBlank(batch)){
couponQuery.setBatch(batch); couponQuery.setBatch(batch);
} }
//客服经理过滤 如果有客服组权限则不过滤 //客服经理过滤 如果有客服组权限则不过滤
if(SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE)){ if(SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE)){
// 获取当前用户ID
Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY); Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY);
// 设置客服经理ID
couponQuery.setManagerId(userId); couponQuery.setManagerId(userId);
} }
// 查询卡券列表
return (Page<CouponModel>) mybatisDao.selectPage(CouponMapper.CouponMapperNameSpace + "getCouponActivityAddressList", couponQuery, limit, offset); return (Page<CouponModel>) mybatisDao.selectPage(CouponMapper.CouponMapperNameSpace + "getCouponActivityAddressList", couponQuery, limit, offset);
} }
/** // 查询卡填写的活动送货地址
*
* @param parentId
* @return
*/
@RequestMapping(value = "/couponActivity/getCouponActivityAddress", method = RequestMethod.GET) @RequestMapping(value = "/couponActivity/getCouponActivityAddress", method = RequestMethod.GET)
public List<CouponActivityAddress> getCouponActivityAddress(@RequestParam(value = "couponNumber", required = false) String couponNumber){ public List<CouponActivityAddress> getCouponActivityAddress(@RequestParam(value = "couponNumber", required = false) String couponNumber){
// 创建卡券活动地址列表
List<CouponActivityAddress> couponActivityAddressList = new ArrayList<CouponActivityAddress>(); List<CouponActivityAddress> couponActivityAddressList = new ArrayList<CouponActivityAddress>();
// 查询卡券活动地址
couponActivityAddressList = mybatisDao.getSqlSessionTemplate().selectList(CouponMapper.CouponMapperNameSpace + "getActivityAddress", couponNumber); couponActivityAddressList = mybatisDao.getSqlSessionTemplate().selectList(CouponMapper.CouponMapperNameSpace + "getActivityAddress", couponNumber);
return couponActivityAddressList; return couponActivityAddressList;
} }

@ -27,9 +27,6 @@ import com.xmomen.module.base.model.UpdateCouponCategory;
import com.xmomen.module.base.service.CouponCategoryService; import com.xmomen.module.base.service.CouponCategoryService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
* Created by Jeng on 2016/3/30.
*/
@RestController @RestController
public class CouponCategoryController { public class CouponCategoryController {
@ -39,13 +36,7 @@ public class CouponCategoryController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 卡券类别列表
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/couponCategory", method = RequestMethod.GET) @RequestMapping(value = "/couponCategory", method = RequestMethod.GET)
@Log(actionName = "查询卡券类别列表") @Log(actionName = "查询卡券类别列表")
public Page<CdCouponCategory> getUserList(@RequestParam(value = "limit") Integer limit, public Page<CdCouponCategory> getUserList(@RequestParam(value = "limit") Integer limit,
@ -55,22 +46,14 @@ public class CouponCategoryController {
return couponCategoryService.getCouponCategoryList(keyword,categoryType, limit, offset); return couponCategoryService.getCouponCategoryList(keyword,categoryType, limit, offset);
} }
/** // 卡券类别列表
*
* @param id
*/
@RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.GET) @RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.GET)
@Log(actionName = "查询卡券类别") @Log(actionName = "查询卡券类别")
public CdCouponCategory getUserList(@PathVariable(value = "id") Integer id){ public CdCouponCategory getUserList(@PathVariable(value = "id") Integer id){
return couponCategoryService.getCouponCategory(id); return couponCategoryService.getCouponCategory(id);
} }
/** // 新增卡券类别
*
* @param createCouponCategory
* @param bindingResult
* @return
*/
@RequestMapping(value = "/couponCategory", method = RequestMethod.POST) @RequestMapping(value = "/couponCategory", method = RequestMethod.POST)
@Log(actionName = "新增卡券类别") @Log(actionName = "新增卡券类别")
public CdCouponCategory createCouponCategory(@RequestBody @Valid CreateCouponCategory createCouponCategory, BindingResult bindingResult) throws ArgumentValidException { public CdCouponCategory createCouponCategory(@RequestBody @Valid CreateCouponCategory createCouponCategory, BindingResult bindingResult) throws ArgumentValidException {
@ -80,13 +63,7 @@ public class CouponCategoryController {
return couponCategoryService.createCouponCategory(createCouponCategory); return couponCategoryService.createCouponCategory(createCouponCategory);
} }
/** // 更新卡券类别
*
* @param id
* @param updateCouponCategory
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.PUT)
@Log(actionName = "更新卡券类别") @Log(actionName = "更新卡券类别")
public CdCouponCategory updateCouponCategory(@PathVariable(value = "id") Integer id, public CdCouponCategory updateCouponCategory(@PathVariable(value = "id") Integer id,
@ -97,20 +74,13 @@ public class CouponCategoryController {
return couponCategoryService.updateCouponCategory(id,updateCouponCategory); return couponCategoryService.updateCouponCategory(id,updateCouponCategory);
} }
/** // 删除卡券类别类别
*
* @param id
*/
@RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/couponCategory/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除卡券类别") @Log(actionName = "删除卡券类别")
public void deleteCouponCategory(@PathVariable(value = "id") Long id){ public void deleteCouponCategory(@PathVariable(value = "id") Long id){
mybatisDao.deleteByPrimaryKey(CdCouponCategory.class, id); mybatisDao.deleteByPrimaryKey(CdCouponCategory.class, id);
} }
/** // 查询选择的产品
*
* @param parentId
* @return
*/
@RequestMapping(value = "/getChoseItemList", method = RequestMethod.GET) @RequestMapping(value = "/getChoseItemList", method = RequestMethod.GET)
public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId){ public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId){
List<ItemChildModel> childItems = new ArrayList<ItemChildModel>(); List<ItemChildModel> childItems = new ArrayList<ItemChildModel>();

@ -33,9 +33,6 @@ import java.text.ParseException;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
/**
* Created by Jeng on 2016/3/30.
*/
@RestController @RestController
public class CouponController { public class CouponController {
@ -45,14 +42,7 @@ public class CouponController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 卡券列表
*
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/coupon", method = RequestMethod.GET) @RequestMapping(value = "/coupon", method = RequestMethod.GET)
@Log(actionName = "查询卡券列表") @Log(actionName = "查询卡券列表")
public Page<CouponModel> getCouponList(@RequestParam(value = "limit") Integer limit, public Page<CouponModel> getCouponList(@RequestParam(value = "limit") Integer limit,
@ -99,24 +89,14 @@ public class CouponController {
return couponService.queryCoupon(couponQuery, limit, offset); return couponService.queryCoupon(couponQuery, limit, offset);
} }
/** // 卡券列表
*
*
* @param id
*/
@RequestMapping(value = "/coupon/{id}", method = RequestMethod.GET) @RequestMapping(value = "/coupon/{id}", method = RequestMethod.GET)
@Log(actionName = "查询卡券") @Log(actionName = "查询卡券")
public CdCoupon getUserList(@PathVariable(value = "id") Integer id) { public CdCoupon getUserList(@PathVariable(value = "id") Integer id) {
return couponService.getCoupon(id); return couponService.getCoupon(id);
} }
/** // 新增卡券
*
*
* @param createCoupon
* @param bindingResult
* @return
*/
@RequestMapping(value = "/coupon", method = RequestMethod.POST) @RequestMapping(value = "/coupon", method = RequestMethod.POST)
@Log(actionName = "新增卡券") @Log(actionName = "新增卡券")
public CdCoupon createCoupon(@RequestBody @Valid CreateCoupon createCoupon, BindingResult bindingResult) throws ArgumentValidException { public CdCoupon createCoupon(@RequestBody @Valid CreateCoupon createCoupon, BindingResult bindingResult) throws ArgumentValidException {
@ -141,14 +121,7 @@ public class CouponController {
return couponService.createCoupon(cdCoupon); return couponService.createCoupon(cdCoupon);
} }
/** // 更新卡券
*
*
* @param id
* @param updateCoupon
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/coupon/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/coupon/{id}", method = RequestMethod.PUT)
@Log(actionName = "更新卡券") @Log(actionName = "更新卡券")
public void updateCoupon(@PathVariable(value = "id") Integer id, public void updateCoupon(@PathVariable(value = "id") Integer id,
@ -175,20 +148,14 @@ public class CouponController {
couponService.updateCoupon(cdCoupon); couponService.updateCoupon(cdCoupon);
} }
/** // 删除卡券
*
*
* @param id
*/
@RequestMapping(value = "/coupon/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/coupon/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除卡券") @Log(actionName = "删除卡券")
public void deleteCoupon(@PathVariable(value = "id") Long id) { public void deleteCoupon(@PathVariable(value = "id") Long id) {
mybatisDao.deleteByPrimaryKey(CdCoupon.class, id); mybatisDao.deleteByPrimaryKey(CdCoupon.class, id);
} }
/** // 发放单卡
* @param id
*/
@RequestMapping(value = "/coupon/sendOneCoupon", method = RequestMethod.GET) @RequestMapping(value = "/coupon/sendOneCoupon", method = RequestMethod.GET)
@Log(actionName = "发放单卡") @Log(actionName = "发放单卡")
public void sendOneCoupon( public void sendOneCoupon(
@ -201,9 +168,7 @@ public class CouponController {
couponService.sendOneCoupon(id, companyId, customerMangerId, couponNumber, batch, isGift); couponService.sendOneCoupon(id, companyId, customerMangerId, couponNumber, batch, isGift);
} }
/** // 批量发放卡
* @param id
*/
@RequestMapping(value = "/coupon/sendMoreCoupon", method = RequestMethod.GET) @RequestMapping(value = "/coupon/sendMoreCoupon", method = RequestMethod.GET)
@Log(actionName = "批量发放卡") @Log(actionName = "批量发放卡")
public void sendMoreCoupon( public void sendMoreCoupon(
@ -227,9 +192,7 @@ public class CouponController {
} }
} }
/** // 根据批次号修改
*
*/
@RequestMapping(value = "/coupon/updateBatchCoupon", method = RequestMethod.GET) @RequestMapping(value = "/coupon/updateBatchCoupon", method = RequestMethod.GET)
@Log(actionName = "根据批次号修改") @Log(actionName = "根据批次号修改")
public void updateBatchCoupon( public void updateBatchCoupon(
@ -248,9 +211,7 @@ public class CouponController {
} }
} }
/** // 批量修改卡类型
*
*/
@RequestMapping(value = "/coupon/updateBatchCouponType", method = RequestMethod.GET) @RequestMapping(value = "/coupon/updateBatchCouponType", method = RequestMethod.GET)
@Log(actionName = "批量修改卡类型") @Log(actionName = "批量修改卡类型")
public void updateBatchCouponType( public void updateBatchCouponType(
@ -267,10 +228,7 @@ public class CouponController {
} }
} }
/** // 活动送货地址信息
* @param id
* @throws ParseException
*/
@RequestMapping(value = "/coupon/activityAddress", method = RequestMethod.POST) @RequestMapping(value = "/coupon/activityAddress", method = RequestMethod.POST)
@Log(actionName = "活动送货地址信息") @Log(actionName = "活动送货地址信息")
public void activityAddress(@RequestBody CouponActivityAddressHead couponActivityAddressHead) throws ParseException { public void activityAddress(@RequestBody CouponActivityAddressHead couponActivityAddressHead) throws ParseException {
@ -307,11 +265,7 @@ public class CouponController {
} }
} }
/** // 审核金额
*
*
* @param id
*/
@RequestMapping(value = "/coupon/{id}/audit", method = RequestMethod.PUT) @RequestMapping(value = "/coupon/{id}/audit", method = RequestMethod.PUT)
@Log(actionName = "审核金额") @Log(actionName = "审核金额")
public void audit(@PathVariable(value = "id") Integer id, public void audit(@PathVariable(value = "id") Integer id,
@ -319,11 +273,7 @@ public class CouponController {
this.couponService.auditCoupon(id, locked); this.couponService.auditCoupon(id, locked);
} }
/** // 批量审核金额
*
*
* @param id
*/
@RequestMapping(value = "/coupon/batchAudit", method = RequestMethod.PUT) @RequestMapping(value = "/coupon/batchAudit", method = RequestMethod.PUT)
@Log(actionName = "批量审核金额") @Log(actionName = "批量审核金额")
public void batchAudit(@RequestParam(value = "ids") String ids, public void batchAudit(@RequestParam(value = "ids") String ids,
@ -334,22 +284,14 @@ public class CouponController {
} }
} }
/** // 退卡
* 退
*
* @param id
*/
@RequestMapping(value = "/coupon/{id}/returnCoupon", method = RequestMethod.PUT) @RequestMapping(value = "/coupon/{id}/returnCoupon", method = RequestMethod.PUT)
@Log(actionName = "退卡") @Log(actionName = "退卡")
public void returnCoupon(@PathVariable(value = "id") Integer id) { public void returnCoupon(@PathVariable(value = "id") Integer id) {
couponService.returnCoupon(id); couponService.returnCoupon(id);
} }
/** // 完结卡
*
*
* @param id
*/
@RequestMapping(value = "/coupon/{id}/overCoupon", method = RequestMethod.PUT) @RequestMapping(value = "/coupon/{id}/overCoupon", method = RequestMethod.PUT)
@Log(actionName = "完结卡") @Log(actionName = "完结卡")
public void overCoupon(@PathVariable(value = "id") Integer id, public void overCoupon(@PathVariable(value = "id") Integer id,
@ -454,12 +396,7 @@ public class CouponController {
couponService.updateBalance(couponNo, updatePrice, remark); couponService.updateBalance(couponNo, updatePrice, remark);
} }
/** // 卡劵导入
*
*
* @param request
* @param response
*/
@RequestMapping(value = "/coupon/importExcel", method = RequestMethod.POST) @RequestMapping(value = "/coupon/importExcel", method = RequestMethod.POST)
public void importExcel(HttpServletRequest request, HttpServletResponse response) { public void importExcel(HttpServletRequest request, HttpServletResponse response) {
MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request; MultipartHttpServletRequest multipartRequest = (MultipartHttpServletRequest) request;

@ -30,6 +30,7 @@ import com.xmomen.module.order.model.OrderQuery;
@RestController @RestController
public class ExpressController { public class ExpressController {
// 快递公司信息
@Autowired @Autowired
ExpressService expressService; ExpressService expressService;
@Autowired @Autowired
@ -37,12 +38,7 @@ public class ExpressController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询快递公司信息
*
*
* @param id
* @return
*/
@RequestMapping(value = "/express", method = RequestMethod.GET) @RequestMapping(value = "/express", method = RequestMethod.GET)
@Log(actionName = "查询快递公司信息") @Log(actionName = "查询快递公司信息")
public Page<CdExpress> getExpressList(@RequestParam(value = "limit") Integer limit, public Page<CdExpress> getExpressList(@RequestParam(value = "limit") Integer limit,
@ -55,6 +51,7 @@ public class ExpressController {
return (Page<CdExpress>) mybatisDao.selectPage(ExpressMapper.ExpressMapperNameSpace + "getExpressList", map, limit, offset); return (Page<CdExpress>) mybatisDao.selectPage(ExpressMapper.ExpressMapperNameSpace + "getExpressList", map, limit, offset);
} }
// 新增快递公司信息
@RequestMapping(value = "/express", method = RequestMethod.POST) @RequestMapping(value = "/express", method = RequestMethod.POST)
@Log(actionName = "新增快递、公司") @Log(actionName = "新增快递、公司")
public void createExpress(@RequestBody @Valid CdExpress createExpress, BindingResult bindingResult) throws ArgumentValidException { public void createExpress(@RequestBody @Valid CdExpress createExpress, BindingResult bindingResult) throws ArgumentValidException {
@ -65,14 +62,7 @@ public class ExpressController {
} }
/** // 快递商查询已分配未提货订单
*
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/express/noScanOrder", method = RequestMethod.GET) @RequestMapping(value = "/express/noScanOrder", method = RequestMethod.GET)
@Log(actionName = "快递商查询已分配未提货订单") @Log(actionName = "快递商查询已分配未提货订单")
public Page<OrderModel> noScanOrder(@RequestParam(value = "limit") Integer limit, public Page<OrderModel> noScanOrder(@RequestParam(value = "limit") Integer limit,
@ -99,14 +89,7 @@ public class ExpressController {
} }
/** // 订单列表
*
*
* @param limit
* @param offset
* @param keyword
* @return
*/
@RequestMapping(value = "/express/order", method = RequestMethod.GET) @RequestMapping(value = "/express/order", method = RequestMethod.GET)
@Log(actionName = "查询订单列表") @Log(actionName = "查询订单列表")
public Page<OrderModel> getUserList(@RequestParam(value = "limit") Integer limit, public Page<OrderModel> getUserList(@RequestParam(value = "limit") Integer limit,
@ -138,11 +121,7 @@ public class ExpressController {
return expressService.getTakeDeliveryList(orderQuery, limit, offset); return expressService.getTakeDeliveryList(orderQuery, limit, offset);
} }
/** // 修改
*
*
* @param id
*/
@RequestMapping(value = "/express/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/express/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改快递信息") @Log(actionName = "修改快递信息")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -153,11 +132,7 @@ public class ExpressController {
expressService.updateExpress(id, updateExpress); expressService.updateExpress(id, updateExpress);
} }
/** // 删除
*
*
* @param id
*/
@RequestMapping(value = "/express/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/express/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除快递信息") @Log(actionName = "删除快递信息")
public void deleteMember(@PathVariable(value = "id") Integer id) { public void deleteMember(@PathVariable(value = "id") Integer id) {
@ -165,13 +140,7 @@ public class ExpressController {
} }
/** // 分配快递商
*
*
* @param packingTask
* @param bindingResult
* @return
*/
@RequestMapping(value = "/express/order/bind", method = RequestMethod.PUT) @RequestMapping(value = "/express/order/bind", method = RequestMethod.PUT)
@Log(actionName = "分配快递商") @Log(actionName = "分配快递商")
public void createPacking(@RequestBody @Valid ExpressTask expressTask, BindingResult bindingResult) throws ArgumentValidException { public void createPacking(@RequestBody @Valid ExpressTask expressTask, BindingResult bindingResult) throws ArgumentValidException {
@ -181,12 +150,7 @@ public class ExpressController {
expressService.dispatchExpress(expressTask); expressService.dispatchExpress(expressTask);
} }
/** // 解绑快递商
*
*
* @param orderNoList
* @throws ArgumentValidException
*/
@RequestMapping(value = "/express/order/unbind", method = RequestMethod.PUT) @RequestMapping(value = "/express/order/unbind", method = RequestMethod.PUT)
@Log(actionName = "解绑快递商") @Log(actionName = "解绑快递商")
public void createPacking(@RequestParam(value = "orderNos", required = true) String[] orderNoList) throws ArgumentValidException { public void createPacking(@RequestParam(value = "orderNos", required = true) String[] orderNoList) throws ArgumentValidException {
@ -196,18 +160,19 @@ public class ExpressController {
expressService.cancelExpress(orderNoList); expressService.cancelExpress(orderNoList);
} }
// 快递商提货
@RequestMapping(value = "/express/order/takeDelivery", method = RequestMethod.PUT) @RequestMapping(value = "/express/order/takeDelivery", method = RequestMethod.PUT)
@Log(actionName = "快递商提货") @Log(actionName = "快递商提货")
/**
* // @param boxNo 箱号
* @param boxNo
*/
public void takeDelivery(@RequestParam(value = "boxNo", required = true) String boxNo) { public void takeDelivery(@RequestParam(value = "boxNo", required = true) String boxNo) {
expressService.takeDelivery(boxNo); expressService.takeDelivery(boxNo);
} }
// 快递商取消提货
@RequestMapping(value = "/express/order/untakeDelivery", method = RequestMethod.PUT) @RequestMapping(value = "/express/order/untakeDelivery", method = RequestMethod.PUT)
@Log(actionName = "快递商取消提货") @Log(actionName = "快递商取消提货")
// @param orderNo 订单号
public void untakeDelivery(@RequestParam(value = "orderNo", required = true) String orderNo) { public void untakeDelivery(@RequestParam(value = "orderNo", required = true) String orderNo) {
expressService.unTakeDelivery(orderNo); expressService.unTakeDelivery(orderNo);
} }

@ -33,12 +33,7 @@ public class ExpressMemberController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 查询快递员员信息
*
*
* @param id
* @return
*/
@RequestMapping(value = "/expressMember", method = RequestMethod.GET) @RequestMapping(value = "/expressMember", method = RequestMethod.GET)
@Log(actionName = "查询快递员员信息") @Log(actionName = "查询快递员员信息")
public Page<CdExpressMember> getExpressMemberList(@RequestParam(value = "limit") Integer limit, public Page<CdExpressMember> getExpressMemberList(@RequestParam(value = "limit") Integer limit,
@ -55,6 +50,7 @@ public class ExpressMemberController {
return (Page<CdExpressMember>) mybatisDao.selectPage(ExpressMemberMapper.ExpressMemberMapperNameSpace + "getExpressMemberList", map, limit, offset); return (Page<CdExpressMember>) mybatisDao.selectPage(ExpressMemberMapper.ExpressMemberMapperNameSpace + "getExpressMemberList", map, limit, offset);
} }
// 新增快递员
@RequestMapping(value = "/expressMember", method = RequestMethod.POST) @RequestMapping(value = "/expressMember", method = RequestMethod.POST)
@Log(actionName = "新增快递员") @Log(actionName = "新增快递员")
public void createExpressMember(@RequestBody @Valid CdExpressMember createExpressMember, BindingResult bindingResult) throws ArgumentValidException { public void createExpressMember(@RequestBody @Valid CdExpressMember createExpressMember, BindingResult bindingResult) throws ArgumentValidException {
@ -64,11 +60,7 @@ public class ExpressMemberController {
expressMemberService.createExpressMember(createExpressMember); expressMemberService.createExpressMember(createExpressMember);
} }
/** // 修改快递员信息
*
*
* @param id
*/
@RequestMapping(value = "/expressMember/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/expressMember/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改快递员信息") @Log(actionName = "修改快递员信息")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -79,11 +71,7 @@ public class ExpressMemberController {
expressMemberService.updateExpressMember(id, updateExpressMember); expressMemberService.updateExpressMember(id, updateExpressMember);
} }
/** // 删除快递员信息
*
*
* @param id
*/
@RequestMapping(value = "/expressMember/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/expressMember/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除快递员信息") @Log(actionName = "删除快递员信息")
public void deleteMember(@PathVariable(value = "id") Integer id) { public void deleteMember(@PathVariable(value = "id") Integer id) {

@ -20,65 +20,53 @@ import com.xmomen.module.base.model.ItemCategoryModel;
import com.xmomen.module.base.service.ItemCategoryService; import com.xmomen.module.base.service.ItemCategoryService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
* Created by Jeng on 16/3/25.
*/
@RestController @RestController
public class ItemCategoryController { public class ItemCategoryController {
@Autowired @Autowired
ItemCategoryService itemCategoryService; ItemCategoryService itemCategoryService;
/** // 查询产品分类信息
*
* @param id
* @return
*/
@RequestMapping(value = "/itemCategory", method = RequestMethod.GET) @RequestMapping(value = "/itemCategory", method = RequestMethod.GET)
@Log(actionName = "查询产品分类信息") @Log(actionName = "查询产品分类信息")
public List<ItemCategoryModel> getItemCategoryTree(@RequestParam(value = "id", required = false) Integer id){ public List<ItemCategoryModel> getItemCategoryTree(@RequestParam(value = "id", required = false) Integer id){
// 根据id查询产品分类信息
return itemCategoryService.getItemCategoryTree(id); return itemCategoryService.getItemCategoryTree(id);
} }
/** // 新增产品分类
*
* @param createItemCategory
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/itemCategory", method = RequestMethod.POST) @RequestMapping(value = "/itemCategory", method = RequestMethod.POST)
@Log(actionName = "新增产品分类") @Log(actionName = "新增产品分类")
public void createItemCategory(@RequestBody @Valid CreateItemCategory createItemCategory, BindingResult bindingResult) throws ArgumentValidException { public void createItemCategory(@RequestBody @Valid CreateItemCategory createItemCategory, BindingResult bindingResult) throws ArgumentValidException {
// 验证参数
if(bindingResult != null && bindingResult.hasErrors()){ if(bindingResult != null && bindingResult.hasErrors()){
throw new ArgumentValidException(bindingResult); throw new ArgumentValidException(bindingResult);
} }
// 创建产品分类
CdCategory cdCategory = new CdCategory(); CdCategory cdCategory = new CdCategory();
cdCategory.setCategoryName(createItemCategory.getName()); cdCategory.setCategoryName(createItemCategory.getName());
cdCategory.setParentId(createItemCategory.getParentId()); cdCategory.setParentId(createItemCategory.getParentId());
itemCategoryService.createItemCategory(cdCategory); itemCategoryService.createItemCategory(cdCategory);
} }
/** // 删除产品分类
*
* @param id
*/
@RequestMapping(value = "/itemCategory/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/itemCategory/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除产品分类") @Log(actionName = "删除产品分类")
public void deleteItemCategory(@PathVariable(value = "id") Integer id){ public void deleteItemCategory(@PathVariable(value = "id") Integer id){
// 根据id删除产品分类
itemCategoryService.delete(id); itemCategoryService.delete(id);
} }
/** // 修改产品分类
*
* @param id
*/
@RequestMapping(value = "/itemCategory/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/itemCategory/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改产品分类") @Log(actionName = "修改产品分类")
public void updateItemCategory(@PathVariable(value = "id") Integer id, public void updateItemCategory(@PathVariable(value = "id") Integer id,
@RequestBody @Valid CreateItemCategory createItemCategory, BindingResult bindingResult) throws ArgumentValidException { @RequestBody @Valid CreateItemCategory createItemCategory, BindingResult bindingResult) throws ArgumentValidException {
// 验证参数
if(bindingResult != null && bindingResult.hasErrors()){ if(bindingResult != null && bindingResult.hasErrors()){
throw new ArgumentValidException(bindingResult); throw new ArgumentValidException(bindingResult);
} }
// 修改产品分类
CdCategory cdCategory = new CdCategory(); CdCategory cdCategory = new CdCategory();
cdCategory.setId(id); cdCategory.setId(id);
cdCategory.setCategoryName(createItemCategory.getName()); cdCategory.setCategoryName(createItemCategory.getName());

@ -48,12 +48,7 @@ public class ItemController {
@Autowired @Autowired
ResourceService resourceService; ResourceService resourceService;
/** //查询产品信息
*
*
* @param id
* @return
*/
@RequestMapping(value = "/item", method = RequestMethod.GET) @RequestMapping(value = "/item", method = RequestMethod.GET)
@Log(actionName = "查询产品信息") @Log(actionName = "查询产品信息")
public Page<ItemModel> getMemberList(@RequestParam(value = "limit") Integer limit, public Page<ItemModel> getMemberList(@RequestParam(value = "limit") Integer limit,
@ -94,13 +89,7 @@ public class ItemController {
return itemService.queryItemList(itemQuery, offset, limit); return itemService.queryItemList(itemQuery, offset, limit);
} }
/** // 新增产品
*
*
* @param createItem
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/item", method = RequestMethod.POST) @RequestMapping(value = "/item", method = RequestMethod.POST)
@Log(actionName = "新增产品") @Log(actionName = "新增产品")
public void createCompany(@RequestBody @Valid CreateItem createItem, BindingResult bindingResult) throws ArgumentValidException { public void createCompany(@RequestBody @Valid CreateItem createItem, BindingResult bindingResult) throws ArgumentValidException {
@ -110,11 +99,7 @@ public class ItemController {
itemService.createItem(createItem); itemService.createItem(createItem);
} }
/** // 修改产品
*
*
* @param id
*/
@RequestMapping(value = "/item/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/item/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改产品") @Log(actionName = "修改产品")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -125,23 +110,14 @@ public class ItemController {
itemService.updateItem(id, updateItem); itemService.updateItem(id, updateItem);
} }
/** // 删除产品
*
*
* @param id
*/
@RequestMapping(value = "/item/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/item/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除产品信息") @Log(actionName = "删除产品信息")
public void deleteMember(@PathVariable(value = "id") Integer id) { public void deleteMember(@PathVariable(value = "id") Integer id) {
itemService.delete(id); itemService.delete(id);
} }
/** // 查询子产品
*
*
* @param parentId
* @return
*/
@RequestMapping(value = "/getChildItem", method = RequestMethod.GET) @RequestMapping(value = "/getChildItem", method = RequestMethod.GET)
public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId) { public List<ItemChildModel> getChildItem(@RequestParam(value = "parentId", required = false) Integer parentId) {
List<ItemChildModel> childItems = new ArrayList<ItemChildModel>(); List<ItemChildModel> childItems = new ArrayList<ItemChildModel>();
@ -203,12 +179,7 @@ public class ItemController {
} }
/** // 默认封面图片
*
*
* @param resourceId id
* @return
*/
@RequestMapping(value = "/item/defaultImage", method = RequestMethod.GET) @RequestMapping(value = "/item/defaultImage", method = RequestMethod.GET)
@ResponseBody @ResponseBody
public Boolean defaultImage( public Boolean defaultImage(

@ -28,45 +28,36 @@ public class ItemDetailController {
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
/** // 新增产品详情
*
*
* @param createItemDetail
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/itemDetail", method = RequestMethod.POST) @RequestMapping(value = "/itemDetail", method = RequestMethod.POST)
@Log(actionName = "新增产品") @Log(actionName = "新增产品")
public void createItemDeatil(@RequestBody @Valid CreateItemDetail createItemDetail, BindingResult bindingResult) throws ArgumentValidException { public void createItemDeatil(@RequestBody @Valid CreateItemDetail createItemDetail, BindingResult bindingResult) throws ArgumentValidException {
// 验证参数是否合法
if (bindingResult != null && bindingResult.hasErrors()) { if (bindingResult != null && bindingResult.hasErrors()) {
throw new ArgumentValidException(bindingResult); throw new ArgumentValidException(bindingResult);
} }
// 调用服务层新增产品详情
itemDetailService.createItemDetail(createItemDetail); itemDetailService.createItemDetail(createItemDetail);
} }
/** // 修改产品详情
*
*
* @param id
*/
@RequestMapping(value = "/itemDetail/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/itemDetail/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改产品详情") @Log(actionName = "修改产品详情")
public void updateItemDetail(@PathVariable(value = "id") Integer id, public void updateItemDetail(@PathVariable(value = "id") Integer id,
@RequestBody @Valid UpdateItemDetail updateItemDetail, BindingResult bindingResult) throws ArgumentValidException { @RequestBody @Valid UpdateItemDetail updateItemDetail, BindingResult bindingResult) throws ArgumentValidException {
// 验证参数是否合法
if (bindingResult != null && bindingResult.hasErrors()) { if (bindingResult != null && bindingResult.hasErrors()) {
throw new ArgumentValidException(bindingResult); throw new ArgumentValidException(bindingResult);
} }
// 调用服务层修改产品详情
itemDetailService.updateItemDetail(id, updateItemDetail); itemDetailService.updateItemDetail(id, updateItemDetail);
} }
/** // 删除商品详情
*
*
* @param id
*/
@RequestMapping(value = "/itemDetail/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/itemDetail/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除产品详情信息") @Log(actionName = "删除产品详情信息")
public void deleteItemDetail(@PathVariable(value = "id") Integer id) { public void deleteItemDetail(@PathVariable(value = "id") Integer id) {
// 调用服务层删除商品详情
itemDetailService.delete(id); itemDetailService.delete(id);
} }
} }

@ -28,9 +28,6 @@ import com.xmomen.module.base.model.UpdateMember;
import com.xmomen.module.base.service.MemberService; import com.xmomen.module.base.service.MemberService;
import com.xmomen.module.logger.Log; import com.xmomen.module.logger.Log;
/**
* Created by ted on 16/3/28.
*/
@RestController @RestController
public class MemberController { public class MemberController {
@ -44,12 +41,7 @@ public class MemberController {
@Autowired @Autowired
RoleService roleService; RoleService roleService;
/** // 查询客户信息
*
*
* @param id
* @return
*/
@RequestMapping(value = "/member", method = RequestMethod.GET) @RequestMapping(value = "/member", method = RequestMethod.GET)
@Log(actionName = "查询客户信息") @Log(actionName = "查询客户信息")
public Page<MemberModel> getMemberList(@RequestParam(value = "limit") Integer limit, public Page<MemberModel> getMemberList(@RequestParam(value = "limit") Integer limit,
@ -91,11 +83,7 @@ public class MemberController {
memberService.createMember(createMember); memberService.createMember(createMember);
} }
/** // 根据ID查询客户信息
* ID
*
* @param id
*/
@RequestMapping(value = "/member/{id:[0-9]+}", method = RequestMethod.GET) @RequestMapping(value = "/member/{id:[0-9]+}", method = RequestMethod.GET)
@Log(actionName = "根据ID查询客户信息") @Log(actionName = "根据ID查询客户信息")
public MemberModel getMember(@PathVariable(value = "id") Integer id) { public MemberModel getMember(@PathVariable(value = "id") Integer id) {
@ -104,11 +92,7 @@ public class MemberController {
return mybatisDao.getSqlSessionTemplate().selectOne(MemberMapper.MemberMapperNameSpace + "getMemberList", map); return mybatisDao.getSqlSessionTemplate().selectOne(MemberMapper.MemberMapperNameSpace + "getMemberList", map);
} }
/** // 修改客户信息
*
*
* @param id
*/
@RequestMapping(value = "/member/{id}", method = RequestMethod.PUT) @RequestMapping(value = "/member/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改客户信息") @Log(actionName = "修改客户信息")
public void updateMember(@PathVariable(value = "id") Integer id, public void updateMember(@PathVariable(value = "id") Integer id,
@ -119,11 +103,7 @@ public class MemberController {
memberService.updateMember(id, updateMember); memberService.updateMember(id, updateMember);
} }
/** // 删除客户信息
*
*
* @param id
*/
@RequestMapping(value = "/member/{id}", method = RequestMethod.DELETE) @RequestMapping(value = "/member/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除客户信息") @Log(actionName = "删除客户信息")
public void deleteMember(@PathVariable(value = "id") Integer id) { public void deleteMember(@PathVariable(value = "id") Integer id) {

@ -21,42 +21,65 @@ import com.xmomen.module.base.model.CompanyCustomerManager;
@RestController @RestController
public class PublicController { public class PublicController {
//注入MybatisDao
@Autowired @Autowired
MybatisDao mybatisDao; MybatisDao mybatisDao;
//注入PublicMapper
@Autowired @Autowired
PublicMapper publicMapper; PublicMapper publicMapper;
//获取公司列表
@RequestMapping(value = "/companyList", method = RequestMethod.GET) @RequestMapping(value = "/companyList", method = RequestMethod.GET)
public List<CdCompany> getCompany() { public List<CdCompany> getCompany() {
//创建CdCompany对象
CdCompany company = new CdCompany(); CdCompany company = new CdCompany();
//根据CdCompany对象查询公司列表
List<CdCompany> companys = mybatisDao.selectByModel(company); List<CdCompany> companys = mybatisDao.selectByModel(company);
//返回公司列表
return companys; return companys;
} }
//查询客服经理 //查询客服经理
@RequestMapping(value = "/customerManagerList", method = RequestMethod.GET) @RequestMapping(value = "/customerManagerList", method = RequestMethod.GET)
public List<CompanyCustomerManager> getCustomerManager( public List<CompanyCustomerManager> getCustomerManager(
//用户类型
@RequestParam(value = "userType", required = false) String userType, @RequestParam(value = "userType", required = false) String userType,
//关键字
@RequestParam(value = "keyword", required = false) String keyword) { @RequestParam(value = "keyword", required = false) String keyword) {
//创建Map对象
Map map = new HashMap<String, Object>(); Map map = new HashMap<String, Object>();
//将用户类型放入Map中
map.put("userType", userType); map.put("userType", userType);
//如果用户类型为客服经理
if ("customer_manager".equals(userType)) { if ("customer_manager".equals(userType)) {
//客服经理过滤 如果有客服组权限则不过滤 //客服经理过滤 如果有客服组权限则不过滤
//判断当前用户是否有客服组权限
if (SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE) if (SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_MANAGER_PERMISSION_CODE)
//判断当前用户是否有客服权限
&& !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.CUSTOMER_PERMISSION_CODE)
//判断当前用户是否有后台权限
&& !SecurityUtils.getSubject().hasRole(AppConstants.HOU_TAI_CODE) && !SecurityUtils.getSubject().hasRole(AppConstants.HOU_TAI_CODE)
//判断当前用户是否有管理员权限
&& !SecurityUtils.getSubject().hasRole(AppConstants.ADMIN) && !SecurityUtils.getSubject().hasRole(AppConstants.ADMIN)
//判断当前用户是否有超级管理员权限
&& !SecurityUtils.getSubject().hasRole(AppConstants.SUPER_ADMIN) && !SecurityUtils.getSubject().hasRole(AppConstants.SUPER_ADMIN)
//判断当前用户是否有物流中心权限
&& !SecurityUtils.getSubject().hasRole(AppConstants.WULIUZXB)) { && !SecurityUtils.getSubject().hasRole(AppConstants.WULIUZXB)) {
//获取当前用户ID
Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY); Integer userId = (Integer) SecurityUtils.getSubject().getSession().getAttribute(AppConstants.SESSION_USER_ID_KEY);
//将当前用户ID放入Map中
map.put("managerId", userId); map.put("managerId", userId);
} }
} }
//如果关键字不为空
if (StringUtils.trimToNull(keyword) != null) { if (StringUtils.trimToNull(keyword) != null) {
//将关键字放入Map中
map.put("keyword", StringUtils.trimToEmpty(keyword)); map.put("keyword", StringUtils.trimToEmpty(keyword));
} }
//根据Map查询客服经理列表
List<CompanyCustomerManager> customerManagerList = mybatisDao.getSqlSessionTemplate().selectList(PublicMapper.PublicMapperNameSpace + "getManagerList", map); List<CompanyCustomerManager> customerManagerList = mybatisDao.getSqlSessionTemplate().selectList(PublicMapper.PublicMapperNameSpace + "getManagerList", map);
//返回客服经理列表
return customerManagerList; return customerManagerList;
} }
} }

@ -13,44 +13,28 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_activity") @Table(name = "cd_activity")
public class CdActivity extends BaseMybatisModel { public class CdActivity extends BaseMybatisModel {
/** // 活动ID
*
*/
private Integer id; private Integer id;
/** // 活动名称
*
*/
private String activityName; private String activityName;
/** // 活动开始时间
*
*/
private Date activityBeginTime; private Date activityBeginTime;
/** // 活动结束时间
*
*/
private Date activityEndTime; private Date activityEndTime;
/** // 活动描述
*
*/
private String activityDescribe; private String activityDescribe;
/** // 活动类型
*
*/
private Integer activityType; private Integer activityType;
/** // 是否可用
* 0-1-
*/
private Integer available; private Integer available;
/** // 最低价格
*
*/
private BigDecimal lowestPrice; private BigDecimal lowestPrice;
@Column(name = "ID") @Column(name = "ID")

@ -12,39 +12,25 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_activity_address") @Table(name = "cd_activity_address")
public class CdActivityAddress extends BaseMybatisModel { public class CdActivityAddress extends BaseMybatisModel {
/** // 活动地址ID
*
*/
private Integer id; private Integer id;
/** // 优惠券编号
*
*/
private String couponNumber; private String couponNumber;
/** // 寄件人姓名
*
*/
private String consignmentName; private String consignmentName;
/** // 寄件人电话
*
*/
private String consignmentPhone; private String consignmentPhone;
/** // 寄件人地址
*
*/
private String consignmentAddress; private String consignmentAddress;
/** // 寄件时间
*
*/
private Date sendTime; private Date sendTime;
/** // 寄件数量
*
*/
private Integer sendCount; private Integer sendCount;
@Column(name = "ID") @Column(name = "ID")

@ -6,47 +6,60 @@ import java.util.Date;
import java.util.Iterator; import java.util.Iterator;
import java.util.List; import java.util.List;
// 定义一个名为CdActivityAddressExample的类继承自BaseMybatisExample
public class CdActivityAddressExample extends BaseMybatisExample { public class CdActivityAddressExample extends BaseMybatisExample {
// 定义一个orderByClause变量用于存储排序字段
protected String orderByClause; protected String orderByClause;
// 定义一个distinct变量用于存储是否去重
protected boolean distinct; protected boolean distinct;
// 定义一个oredCriteria变量用于存储查询条件
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
// 构造函数初始化oredCriteria
public CdActivityAddressExample() { public CdActivityAddressExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
// 设置orderByClause的值
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
} }
// 获取orderByClause的值
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
} }
// 设置distinct的值
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
} }
// 获取distinct的值
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
} }
// 获取oredCriteria的值
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
} }
// 添加一个查询条件
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
} }
// 创建一个新的查询条件
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria); oredCriteria.add(criteria);
return criteria; return criteria;
} }
// 创建一个新的查询条件
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) { if (oredCriteria.size() == 0) {
@ -55,37 +68,46 @@ public class CdActivityAddressExample extends BaseMybatisExample {
return criteria; return criteria;
} }
// 创建一个新的查询条件
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
return criteria; return criteria;
} }
// 清空oredCriteria、orderByClause和distinct的值
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
orderByClause = null; orderByClause = null;
distinct = false; distinct = false;
} }
// 定义一个内部类GeneratedCriteria用于存储查询条件
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
// 定义一个criteria变量用于存储查询条件
protected List<Criterion> criteria; protected List<Criterion> criteria;
// 构造函数初始化criteria
protected GeneratedCriteria() { protected GeneratedCriteria() {
super(); super();
criteria = new ArrayList<Criterion>(); criteria = new ArrayList<Criterion>();
} }
// 判断是否有查询条件
public boolean isValid() { public boolean isValid() {
return criteria.size() > 0; return criteria.size() > 0;
} }
// 获取所有查询条件
public List<Criterion> getAllCriteria() { public List<Criterion> getAllCriteria() {
return criteria; return criteria;
} }
// 获取查询条件
public List<Criterion> getCriteria() { public List<Criterion> getCriteria() {
return criteria; return criteria;
} }
// 添加一个查询条件
protected void addCriterion(String condition) { protected void addCriterion(String condition) {
if (condition == null) { if (condition == null) {
throw new RuntimeException("Value for condition cannot be null"); throw new RuntimeException("Value for condition cannot be null");
@ -93,6 +115,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
criteria.add(new Criterion(condition)); criteria.add(new Criterion(condition));
} }
// 添加一个查询条件
protected void addCriterion(String condition, Object value, String property) { protected void addCriterion(String condition, Object value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -100,6 +123,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value)); criteria.add(new Criterion(condition, value));
} }
// 添加一个查询条件
protected void addCriterion(String condition, Object value1, Object value2, String property) { protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -107,6 +131,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value1, value2)); criteria.add(new Criterion(condition, value1, value2));
} }
// 添加一个查询条件
protected void addCriterionForJDBCDate(String condition, Date value, String property) { protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -114,6 +139,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
addCriterion(condition, new java.sql.Date(value.getTime()), property); addCriterion(condition, new java.sql.Date(value.getTime()), property);
} }
// 添加一个查询条件
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) { protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) { if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty"); throw new RuntimeException("Value list for " + property + " cannot be null or empty");
@ -126,6 +152,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
addCriterion(condition, dateList, property); addCriterion(condition, dateList, property);
} }
// 添加一个查询条件
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -133,461 +160,553 @@ public class CdActivityAddressExample extends BaseMybatisExample {
addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
} }
// 判断ID是否为空
public Criteria andIdIsNull() { public Criteria andIdIsNull() {
addCriterion("ID is null"); addCriterion("ID is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不为空
public Criteria andIdIsNotNull() { public Criteria andIdIsNotNull() {
addCriterion("ID is not null"); addCriterion("ID is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否等于某个值
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id"); addCriterion("ID =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不等于某个值
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Integer value) {
addCriterion("ID <>", value, "id"); addCriterion("ID <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否大于某个值
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Integer value) {
addCriterion("ID >", value, "id"); addCriterion("ID >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否大于等于某个值
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("ID >=", value, "id"); addCriterion("ID >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否小于某个值
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Integer value) {
addCriterion("ID <", value, "id"); addCriterion("ID <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否小于等于某个值
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("ID <=", value, "id"); addCriterion("ID <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否在某个范围内
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Integer> values) {
addCriterion("ID in", values, "id"); addCriterion("ID in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不在某个范围内
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Integer> values) {
addCriterion("ID not in", values, "id"); addCriterion("ID not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否在某个范围内
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("ID between", value1, value2, "id"); addCriterion("ID between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不在某个范围内
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("ID not between", value1, value2, "id"); addCriterion("ID not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否为空
public Criteria andCouponNumberIsNull() { public Criteria andCouponNumberIsNull() {
addCriterion("COUPON_NUMBER is null"); addCriterion("COUPON_NUMBER is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否不为空
public Criteria andCouponNumberIsNotNull() { public Criteria andCouponNumberIsNotNull() {
addCriterion("COUPON_NUMBER is not null"); addCriterion("COUPON_NUMBER is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否等于某个值
public Criteria andCouponNumberEqualTo(String value) { public Criteria andCouponNumberEqualTo(String value) {
addCriterion("COUPON_NUMBER =", value, "couponNumber"); addCriterion("COUPON_NUMBER =", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否不等于某个值
public Criteria andCouponNumberNotEqualTo(String value) { public Criteria andCouponNumberNotEqualTo(String value) {
addCriterion("COUPON_NUMBER <>", value, "couponNumber"); addCriterion("COUPON_NUMBER <>", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否大于某个值
public Criteria andCouponNumberGreaterThan(String value) { public Criteria andCouponNumberGreaterThan(String value) {
addCriterion("COUPON_NUMBER >", value, "couponNumber"); addCriterion("COUPON_NUMBER >", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否大于等于某个值
public Criteria andCouponNumberGreaterThanOrEqualTo(String value) { public Criteria andCouponNumberGreaterThanOrEqualTo(String value) {
addCriterion("COUPON_NUMBER >=", value, "couponNumber"); addCriterion("COUPON_NUMBER >=", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否小于某个值
public Criteria andCouponNumberLessThan(String value) { public Criteria andCouponNumberLessThan(String value) {
addCriterion("COUPON_NUMBER <", value, "couponNumber"); addCriterion("COUPON_NUMBER <", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否小于等于某个值
public Criteria andCouponNumberLessThanOrEqualTo(String value) { public Criteria andCouponNumberLessThanOrEqualTo(String value) {
addCriterion("COUPON_NUMBER <=", value, "couponNumber"); addCriterion("COUPON_NUMBER <=", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否包含某个值
public Criteria andCouponNumberLike(String value) { public Criteria andCouponNumberLike(String value) {
addCriterion("COUPON_NUMBER like", value, "couponNumber"); addCriterion("COUPON_NUMBER like", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否不包含某个值
public Criteria andCouponNumberNotLike(String value) { public Criteria andCouponNumberNotLike(String value) {
addCriterion("COUPON_NUMBER not like", value, "couponNumber"); addCriterion("COUPON_NUMBER not like", value, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否在某个范围内
public Criteria andCouponNumberIn(List<String> values) { public Criteria andCouponNumberIn(List<String> values) {
addCriterion("COUPON_NUMBER in", values, "couponNumber"); addCriterion("COUPON_NUMBER in", values, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否不在某个范围内
public Criteria andCouponNumberNotIn(List<String> values) { public Criteria andCouponNumberNotIn(List<String> values) {
addCriterion("COUPON_NUMBER not in", values, "couponNumber"); addCriterion("COUPON_NUMBER not in", values, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否在某个范围内
public Criteria andCouponNumberBetween(String value1, String value2) { public Criteria andCouponNumberBetween(String value1, String value2) {
addCriterion("COUPON_NUMBER between", value1, value2, "couponNumber"); addCriterion("COUPON_NUMBER between", value1, value2, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断COUPON_NUMBER是否不在某个范围内
public Criteria andCouponNumberNotBetween(String value1, String value2) { public Criteria andCouponNumberNotBetween(String value1, String value2) {
addCriterion("COUPON_NUMBER not between", value1, value2, "couponNumber"); addCriterion("COUPON_NUMBER not between", value1, value2, "couponNumber");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否为空
public Criteria andConsignmentNameIsNull() { public Criteria andConsignmentNameIsNull() {
addCriterion("CONSIGNMENT_NAME is null"); addCriterion("CONSIGNMENT_NAME is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否不为空
public Criteria andConsignmentNameIsNotNull() { public Criteria andConsignmentNameIsNotNull() {
addCriterion("CONSIGNMENT_NAME is not null"); addCriterion("CONSIGNMENT_NAME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否等于某个值
public Criteria andConsignmentNameEqualTo(String value) { public Criteria andConsignmentNameEqualTo(String value) {
addCriterion("CONSIGNMENT_NAME =", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME =", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否不等于某个值
public Criteria andConsignmentNameNotEqualTo(String value) { public Criteria andConsignmentNameNotEqualTo(String value) {
addCriterion("CONSIGNMENT_NAME <>", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME <>", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否大于某个值
public Criteria andConsignmentNameGreaterThan(String value) { public Criteria andConsignmentNameGreaterThan(String value) {
addCriterion("CONSIGNMENT_NAME >", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME >", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否大于等于某个值
public Criteria andConsignmentNameGreaterThanOrEqualTo(String value) { public Criteria andConsignmentNameGreaterThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_NAME >=", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME >=", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否小于某个值
public Criteria andConsignmentNameLessThan(String value) { public Criteria andConsignmentNameLessThan(String value) {
addCriterion("CONSIGNMENT_NAME <", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME <", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否小于等于某个值
public Criteria andConsignmentNameLessThanOrEqualTo(String value) { public Criteria andConsignmentNameLessThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_NAME <=", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME <=", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否包含某个值
public Criteria andConsignmentNameLike(String value) { public Criteria andConsignmentNameLike(String value) {
addCriterion("CONSIGNMENT_NAME like", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME like", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否不包含某个值
public Criteria andConsignmentNameNotLike(String value) { public Criteria andConsignmentNameNotLike(String value) {
addCriterion("CONSIGNMENT_NAME not like", value, "consignmentName"); addCriterion("CONSIGNMENT_NAME not like", value, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否在某个范围内
public Criteria andConsignmentNameIn(List<String> values) { public Criteria andConsignmentNameIn(List<String> values) {
addCriterion("CONSIGNMENT_NAME in", values, "consignmentName"); addCriterion("CONSIGNMENT_NAME in", values, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否不在某个范围内
public Criteria andConsignmentNameNotIn(List<String> values) { public Criteria andConsignmentNameNotIn(List<String> values) {
addCriterion("CONSIGNMENT_NAME not in", values, "consignmentName"); addCriterion("CONSIGNMENT_NAME not in", values, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否在某个范围内
public Criteria andConsignmentNameBetween(String value1, String value2) { public Criteria andConsignmentNameBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_NAME between", value1, value2, "consignmentName"); addCriterion("CONSIGNMENT_NAME between", value1, value2, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_NAME是否不在某个范围内
public Criteria andConsignmentNameNotBetween(String value1, String value2) { public Criteria andConsignmentNameNotBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_NAME not between", value1, value2, "consignmentName"); addCriterion("CONSIGNMENT_NAME not between", value1, value2, "consignmentName");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否为空
public Criteria andConsignmentPhoneIsNull() { public Criteria andConsignmentPhoneIsNull() {
addCriterion("CONSIGNMENT_PHONE is null"); addCriterion("CONSIGNMENT_PHONE is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否不为空
public Criteria andConsignmentPhoneIsNotNull() { public Criteria andConsignmentPhoneIsNotNull() {
addCriterion("CONSIGNMENT_PHONE is not null"); addCriterion("CONSIGNMENT_PHONE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否等于某个值
public Criteria andConsignmentPhoneEqualTo(String value) { public Criteria andConsignmentPhoneEqualTo(String value) {
addCriterion("CONSIGNMENT_PHONE =", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE =", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否不等于某个值
public Criteria andConsignmentPhoneNotEqualTo(String value) { public Criteria andConsignmentPhoneNotEqualTo(String value) {
addCriterion("CONSIGNMENT_PHONE <>", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE <>", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否大于某个值
public Criteria andConsignmentPhoneGreaterThan(String value) { public Criteria andConsignmentPhoneGreaterThan(String value) {
addCriterion("CONSIGNMENT_PHONE >", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE >", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否大于等于某个值
public Criteria andConsignmentPhoneGreaterThanOrEqualTo(String value) { public Criteria andConsignmentPhoneGreaterThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_PHONE >=", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE >=", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否小于某个值
public Criteria andConsignmentPhoneLessThan(String value) { public Criteria andConsignmentPhoneLessThan(String value) {
addCriterion("CONSIGNMENT_PHONE <", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE <", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否小于等于某个值
public Criteria andConsignmentPhoneLessThanOrEqualTo(String value) { public Criteria andConsignmentPhoneLessThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_PHONE <=", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE <=", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否包含某个值
public Criteria andConsignmentPhoneLike(String value) { public Criteria andConsignmentPhoneLike(String value) {
addCriterion("CONSIGNMENT_PHONE like", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE like", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否不包含某个值
public Criteria andConsignmentPhoneNotLike(String value) { public Criteria andConsignmentPhoneNotLike(String value) {
addCriterion("CONSIGNMENT_PHONE not like", value, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE not like", value, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否在某个范围内
public Criteria andConsignmentPhoneIn(List<String> values) { public Criteria andConsignmentPhoneIn(List<String> values) {
addCriterion("CONSIGNMENT_PHONE in", values, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE in", values, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否不在某个范围内
public Criteria andConsignmentPhoneNotIn(List<String> values) { public Criteria andConsignmentPhoneNotIn(List<String> values) {
addCriterion("CONSIGNMENT_PHONE not in", values, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE not in", values, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否在某个范围内
public Criteria andConsignmentPhoneBetween(String value1, String value2) { public Criteria andConsignmentPhoneBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_PHONE between", value1, value2, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE between", value1, value2, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_PHONE是否不在某个范围内
public Criteria andConsignmentPhoneNotBetween(String value1, String value2) { public Criteria andConsignmentPhoneNotBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_PHONE not between", value1, value2, "consignmentPhone"); addCriterion("CONSIGNMENT_PHONE not between", value1, value2, "consignmentPhone");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否为空
public Criteria andConsignmentAddressIsNull() { public Criteria andConsignmentAddressIsNull() {
addCriterion("CONSIGNMENT_ADDRESS is null"); addCriterion("CONSIGNMENT_ADDRESS is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否不为空
public Criteria andConsignmentAddressIsNotNull() { public Criteria andConsignmentAddressIsNotNull() {
addCriterion("CONSIGNMENT_ADDRESS is not null"); addCriterion("CONSIGNMENT_ADDRESS is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否等于某个值
public Criteria andConsignmentAddressEqualTo(String value) { public Criteria andConsignmentAddressEqualTo(String value) {
addCriterion("CONSIGNMENT_ADDRESS =", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS =", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否不等于某个值
public Criteria andConsignmentAddressNotEqualTo(String value) { public Criteria andConsignmentAddressNotEqualTo(String value) {
addCriterion("CONSIGNMENT_ADDRESS <>", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS <>", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否大于某个值
public Criteria andConsignmentAddressGreaterThan(String value) { public Criteria andConsignmentAddressGreaterThan(String value) {
addCriterion("CONSIGNMENT_ADDRESS >", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS >", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否大于等于某个值
public Criteria andConsignmentAddressGreaterThanOrEqualTo(String value) { public Criteria andConsignmentAddressGreaterThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_ADDRESS >=", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS >=", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否小于某个值
public Criteria andConsignmentAddressLessThan(String value) { public Criteria andConsignmentAddressLessThan(String value) {
addCriterion("CONSIGNMENT_ADDRESS <", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS <", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否小于等于某个值
public Criteria andConsignmentAddressLessThanOrEqualTo(String value) { public Criteria andConsignmentAddressLessThanOrEqualTo(String value) {
addCriterion("CONSIGNMENT_ADDRESS <=", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS <=", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否包含某个值
public Criteria andConsignmentAddressLike(String value) { public Criteria andConsignmentAddressLike(String value) {
addCriterion("CONSIGNMENT_ADDRESS like", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS like", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否不包含某个值
public Criteria andConsignmentAddressNotLike(String value) { public Criteria andConsignmentAddressNotLike(String value) {
addCriterion("CONSIGNMENT_ADDRESS not like", value, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS not like", value, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否在某个范围内
public Criteria andConsignmentAddressIn(List<String> values) { public Criteria andConsignmentAddressIn(List<String> values) {
addCriterion("CONSIGNMENT_ADDRESS in", values, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS in", values, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否不在某个范围内
public Criteria andConsignmentAddressNotIn(List<String> values) { public Criteria andConsignmentAddressNotIn(List<String> values) {
addCriterion("CONSIGNMENT_ADDRESS not in", values, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS not in", values, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否在某个范围内
public Criteria andConsignmentAddressBetween(String value1, String value2) { public Criteria andConsignmentAddressBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_ADDRESS between", value1, value2, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS between", value1, value2, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断CONSIGNMENT_ADDRESS是否不在某个范围内
public Criteria andConsignmentAddressNotBetween(String value1, String value2) { public Criteria andConsignmentAddressNotBetween(String value1, String value2) {
addCriterion("CONSIGNMENT_ADDRESS not between", value1, value2, "consignmentAddress"); addCriterion("CONSIGNMENT_ADDRESS not between", value1, value2, "consignmentAddress");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否为空
public Criteria andSendTimeIsNull() { public Criteria andSendTimeIsNull() {
addCriterion("SEND_TIME is null"); addCriterion("SEND_TIME is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否不为空
public Criteria andSendTimeIsNotNull() { public Criteria andSendTimeIsNotNull() {
addCriterion("SEND_TIME is not null"); addCriterion("SEND_TIME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否等于某个值
public Criteria andSendTimeEqualTo(Date value) { public Criteria andSendTimeEqualTo(Date value) {
addCriterionForJDBCDate("SEND_TIME =", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME =", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否不等于某个值
public Criteria andSendTimeNotEqualTo(Date value) { public Criteria andSendTimeNotEqualTo(Date value) {
addCriterionForJDBCDate("SEND_TIME <>", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME <>", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否大于某个值
public Criteria andSendTimeGreaterThan(Date value) { public Criteria andSendTimeGreaterThan(Date value) {
addCriterionForJDBCDate("SEND_TIME >", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME >", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否大于等于某个值
public Criteria andSendTimeGreaterThanOrEqualTo(Date value) { public Criteria andSendTimeGreaterThanOrEqualTo(Date value) {
addCriterionForJDBCDate("SEND_TIME >=", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME >=", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否小于某个值
public Criteria andSendTimeLessThan(Date value) { public Criteria andSendTimeLessThan(Date value) {
addCriterionForJDBCDate("SEND_TIME <", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME <", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否小于等于某个值
public Criteria andSendTimeLessThanOrEqualTo(Date value) { public Criteria andSendTimeLessThanOrEqualTo(Date value) {
addCriterionForJDBCDate("SEND_TIME <=", value, "sendTime"); addCriterionForJDBCDate("SEND_TIME <=", value, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否在某个范围内
public Criteria andSendTimeIn(List<Date> values) { public Criteria andSendTimeIn(List<Date> values) {
addCriterionForJDBCDate("SEND_TIME in", values, "sendTime"); addCriterionForJDBCDate("SEND_TIME in", values, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否不在某个范围内
public Criteria andSendTimeNotIn(List<Date> values) { public Criteria andSendTimeNotIn(List<Date> values) {
addCriterionForJDBCDate("SEND_TIME not in", values, "sendTime"); addCriterionForJDBCDate("SEND_TIME not in", values, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否在某个范围内
public Criteria andSendTimeBetween(Date value1, Date value2) { public Criteria andSendTimeBetween(Date value1, Date value2) {
addCriterionForJDBCDate("SEND_TIME between", value1, value2, "sendTime"); addCriterionForJDBCDate("SEND_TIME between", value1, value2, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_TIME是否不在某个范围内
public Criteria andSendTimeNotBetween(Date value1, Date value2) { public Criteria andSendTimeNotBetween(Date value1, Date value2) {
addCriterionForJDBCDate("SEND_TIME not between", value1, value2, "sendTime"); addCriterionForJDBCDate("SEND_TIME not between", value1, value2, "sendTime");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否为空
public Criteria andSendCountIsNull() { public Criteria andSendCountIsNull() {
addCriterion("SEND_COUNT is null"); addCriterion("SEND_COUNT is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否不为空
public Criteria andSendCountIsNotNull() { public Criteria andSendCountIsNotNull() {
addCriterion("SEND_COUNT is not null"); addCriterion("SEND_COUNT is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否等于某个值
public Criteria andSendCountEqualTo(Integer value) { public Criteria andSendCountEqualTo(Integer value) {
addCriterion("SEND_COUNT =", value, "sendCount"); addCriterion("SEND_COUNT =", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否不等于某个值
public Criteria andSendCountNotEqualTo(Integer value) { public Criteria andSendCountNotEqualTo(Integer value) {
addCriterion("SEND_COUNT <>", value, "sendCount"); addCriterion("SEND_COUNT <>", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否大于某个值
public Criteria andSendCountGreaterThan(Integer value) { public Criteria andSendCountGreaterThan(Integer value) {
addCriterion("SEND_COUNT >", value, "sendCount"); addCriterion("SEND_COUNT >", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否大于等于某个值
public Criteria andSendCountGreaterThanOrEqualTo(Integer value) { public Criteria andSendCountGreaterThanOrEqualTo(Integer value) {
addCriterion("SEND_COUNT >=", value, "sendCount"); addCriterion("SEND_COUNT >=", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否小于某个值
public Criteria andSendCountLessThan(Integer value) { public Criteria andSendCountLessThan(Integer value) {
addCriterion("SEND_COUNT <", value, "sendCount"); addCriterion("SEND_COUNT <", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否小于等于某个值
public Criteria andSendCountLessThanOrEqualTo(Integer value) { public Criteria andSendCountLessThanOrEqualTo(Integer value) {
addCriterion("SEND_COUNT <=", value, "sendCount"); addCriterion("SEND_COUNT <=", value, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否在某个范围内
public Criteria andSendCountIn(List<Integer> values) { public Criteria andSendCountIn(List<Integer> values) {
addCriterion("SEND_COUNT in", values, "sendCount"); addCriterion("SEND_COUNT in", values, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否不在某个范围内
public Criteria andSendCountNotIn(List<Integer> values) { public Criteria andSendCountNotIn(List<Integer> values) {
addCriterion("SEND_COUNT not in", values, "sendCount"); addCriterion("SEND_COUNT not in", values, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否在某个范围内
public Criteria andSendCountBetween(Integer value1, Integer value2) { public Criteria andSendCountBetween(Integer value1, Integer value2) {
addCriterion("SEND_COUNT between", value1, value2, "sendCount"); addCriterion("SEND_COUNT between", value1, value2, "sendCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断SEND_COUNT是否不在某个范围内
public Criteria andSendCountNotBetween(Integer value1, Integer value2) { public Criteria andSendCountNotBetween(Integer value1, Integer value2) {
addCriterion("SEND_COUNT not between", value1, value2, "sendCount"); addCriterion("SEND_COUNT not between", value1, value2, "sendCount");
return (Criteria) this; return (Criteria) this;
@ -602,6 +721,7 @@ public class CdActivityAddressExample extends BaseMybatisExample {
} }
public static class Criterion { public static class Criterion {
private String condition; private String condition;
private Object value; private Object value;

@ -6,47 +6,60 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
// 活动实体类
public class CdActivityExample extends BaseMybatisExample { public class CdActivityExample extends BaseMybatisExample {
// 排序字段
protected String orderByClause; protected String orderByClause;
// 是否去重
protected boolean distinct; protected boolean distinct;
// 查询条件
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
// 构造函数
public CdActivityExample() { public CdActivityExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
// 设置排序字段
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
} }
// 获取排序字段
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
} }
// 设置是否去重
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
} }
// 获取是否去重
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
} }
// 获取查询条件
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
} }
// 添加查询条件
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
} }
// 创建查询条件
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria); oredCriteria.add(criteria);
return criteria; return criteria;
} }
// 创建查询条件
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) { if (oredCriteria.size() == 0) {
@ -55,37 +68,46 @@ public class CdActivityExample extends BaseMybatisExample {
return criteria; return criteria;
} }
// 创建查询条件
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
return criteria; return criteria;
} }
// 清空查询条件
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
orderByClause = null; orderByClause = null;
distinct = false; distinct = false;
} }
// GeneratedCriteria 类,用于生成查询条件
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
// 查询条件列表
protected List<Criterion> criteria; protected List<Criterion> criteria;
// 构造函数
protected GeneratedCriteria() { protected GeneratedCriteria() {
super(); super();
criteria = new ArrayList<Criterion>(); criteria = new ArrayList<Criterion>();
} }
// 判断查询条件是否有效
public boolean isValid() { public boolean isValid() {
return criteria.size() > 0; return criteria.size() > 0;
} }
// 获取所有查询条件
public List<Criterion> getAllCriteria() { public List<Criterion> getAllCriteria() {
return criteria; return criteria;
} }
// 获取查询条件
public List<Criterion> getCriteria() { public List<Criterion> getCriteria() {
return criteria; return criteria;
} }
// 添加查询条件
protected void addCriterion(String condition) { protected void addCriterion(String condition) {
if (condition == null) { if (condition == null) {
throw new RuntimeException("Value for condition cannot be null"); throw new RuntimeException("Value for condition cannot be null");
@ -93,6 +115,7 @@ public class CdActivityExample extends BaseMybatisExample {
criteria.add(new Criterion(condition)); criteria.add(new Criterion(condition));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value, String property) { protected void addCriterion(String condition, Object value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -100,6 +123,7 @@ public class CdActivityExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value)); criteria.add(new Criterion(condition, value));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value1, Object value2, String property) { protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -107,501 +131,601 @@ public class CdActivityExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value1, value2)); criteria.add(new Criterion(condition, value1, value2));
} }
// 添加查询条件ID为空
public Criteria andIdIsNull() { public Criteria andIdIsNull() {
addCriterion("ID is null"); addCriterion("ID is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID不为空
public Criteria andIdIsNotNull() { public Criteria andIdIsNotNull() {
addCriterion("ID is not null"); addCriterion("ID is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID等于某个值
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id"); addCriterion("ID =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID不等于某个值
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Integer value) {
addCriterion("ID <>", value, "id"); addCriterion("ID <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID大于某个值
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Integer value) {
addCriterion("ID >", value, "id"); addCriterion("ID >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID大于等于某个值
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("ID >=", value, "id"); addCriterion("ID >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID小于某个值
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Integer value) {
addCriterion("ID <", value, "id"); addCriterion("ID <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID小于等于某个值
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("ID <=", value, "id"); addCriterion("ID <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID在某个值列表中
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Integer> values) {
addCriterion("ID in", values, "id"); addCriterion("ID in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID不在某个值列表中
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Integer> values) {
addCriterion("ID not in", values, "id"); addCriterion("ID not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID在某个值范围内
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("ID between", value1, value2, "id"); addCriterion("ID between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件ID不在某个值范围内
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("ID not between", value1, value2, "id"); addCriterion("ID not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称为空
public Criteria andActivityNameIsNull() { public Criteria andActivityNameIsNull() {
addCriterion("ACTIVITY_NAME is null"); addCriterion("ACTIVITY_NAME is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称不为空
public Criteria andActivityNameIsNotNull() { public Criteria andActivityNameIsNotNull() {
addCriterion("ACTIVITY_NAME is not null"); addCriterion("ACTIVITY_NAME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称等于某个值
public Criteria andActivityNameEqualTo(String value) { public Criteria andActivityNameEqualTo(String value) {
addCriterion("ACTIVITY_NAME =", value, "activityName"); addCriterion("ACTIVITY_NAME =", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称不等于某个值
public Criteria andActivityNameNotEqualTo(String value) { public Criteria andActivityNameNotEqualTo(String value) {
addCriterion("ACTIVITY_NAME <>", value, "activityName"); addCriterion("ACTIVITY_NAME <>", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称大于某个值
public Criteria andActivityNameGreaterThan(String value) { public Criteria andActivityNameGreaterThan(String value) {
addCriterion("ACTIVITY_NAME >", value, "activityName"); addCriterion("ACTIVITY_NAME >", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称大于等于某个值
public Criteria andActivityNameGreaterThanOrEqualTo(String value) { public Criteria andActivityNameGreaterThanOrEqualTo(String value) {
addCriterion("ACTIVITY_NAME >=", value, "activityName"); addCriterion("ACTIVITY_NAME >=", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称小于某个值
public Criteria andActivityNameLessThan(String value) { public Criteria andActivityNameLessThan(String value) {
addCriterion("ACTIVITY_NAME <", value, "activityName"); addCriterion("ACTIVITY_NAME <", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称小于等于某个值
public Criteria andActivityNameLessThanOrEqualTo(String value) { public Criteria andActivityNameLessThanOrEqualTo(String value) {
addCriterion("ACTIVITY_NAME <=", value, "activityName"); addCriterion("ACTIVITY_NAME <=", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称包含某个值
public Criteria andActivityNameLike(String value) { public Criteria andActivityNameLike(String value) {
addCriterion("ACTIVITY_NAME like", value, "activityName"); addCriterion("ACTIVITY_NAME like", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称不包含某个值
public Criteria andActivityNameNotLike(String value) { public Criteria andActivityNameNotLike(String value) {
addCriterion("ACTIVITY_NAME not like", value, "activityName"); addCriterion("ACTIVITY_NAME not like", value, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称在某个值列表中
public Criteria andActivityNameIn(List<String> values) { public Criteria andActivityNameIn(List<String> values) {
addCriterion("ACTIVITY_NAME in", values, "activityName"); addCriterion("ACTIVITY_NAME in", values, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称不在某个值列表中
public Criteria andActivityNameNotIn(List<String> values) { public Criteria andActivityNameNotIn(List<String> values) {
addCriterion("ACTIVITY_NAME not in", values, "activityName"); addCriterion("ACTIVITY_NAME not in", values, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称在某个值范围内
public Criteria andActivityNameBetween(String value1, String value2) { public Criteria andActivityNameBetween(String value1, String value2) {
addCriterion("ACTIVITY_NAME between", value1, value2, "activityName"); addCriterion("ACTIVITY_NAME between", value1, value2, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动名称不在某个值范围内
public Criteria andActivityNameNotBetween(String value1, String value2) { public Criteria andActivityNameNotBetween(String value1, String value2) {
addCriterion("ACTIVITY_NAME not between", value1, value2, "activityName"); addCriterion("ACTIVITY_NAME not between", value1, value2, "activityName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间为空
public Criteria andActivityBeginTimeIsNull() { public Criteria andActivityBeginTimeIsNull() {
addCriterion("ACTIVITY_BEGIN_TIME is null"); addCriterion("ACTIVITY_BEGIN_TIME is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间不为空
public Criteria andActivityBeginTimeIsNotNull() { public Criteria andActivityBeginTimeIsNotNull() {
addCriterion("ACTIVITY_BEGIN_TIME is not null"); addCriterion("ACTIVITY_BEGIN_TIME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间等于某个值
public Criteria andActivityBeginTimeEqualTo(Date value) { public Criteria andActivityBeginTimeEqualTo(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME =", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME =", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间不等于某个值
public Criteria andActivityBeginTimeNotEqualTo(Date value) { public Criteria andActivityBeginTimeNotEqualTo(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME <>", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME <>", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间大于某个值
public Criteria andActivityBeginTimeGreaterThan(Date value) { public Criteria andActivityBeginTimeGreaterThan(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME >", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME >", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间大于等于某个值
public Criteria andActivityBeginTimeGreaterThanOrEqualTo(Date value) { public Criteria andActivityBeginTimeGreaterThanOrEqualTo(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME >=", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME >=", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间小于某个值
public Criteria andActivityBeginTimeLessThan(Date value) { public Criteria andActivityBeginTimeLessThan(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME <", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME <", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间小于等于某个值
public Criteria andActivityBeginTimeLessThanOrEqualTo(Date value) { public Criteria andActivityBeginTimeLessThanOrEqualTo(Date value) {
addCriterion("ACTIVITY_BEGIN_TIME <=", value, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME <=", value, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间在某个值列表中
public Criteria andActivityBeginTimeIn(List<Date> values) { public Criteria andActivityBeginTimeIn(List<Date> values) {
addCriterion("ACTIVITY_BEGIN_TIME in", values, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME in", values, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间不在某个值列表中
public Criteria andActivityBeginTimeNotIn(List<Date> values) { public Criteria andActivityBeginTimeNotIn(List<Date> values) {
addCriterion("ACTIVITY_BEGIN_TIME not in", values, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME not in", values, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间在某个值范围内
public Criteria andActivityBeginTimeBetween(Date value1, Date value2) { public Criteria andActivityBeginTimeBetween(Date value1, Date value2) {
addCriterion("ACTIVITY_BEGIN_TIME between", value1, value2, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME between", value1, value2, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动开始时间不在某个值范围内
public Criteria andActivityBeginTimeNotBetween(Date value1, Date value2) { public Criteria andActivityBeginTimeNotBetween(Date value1, Date value2) {
addCriterion("ACTIVITY_BEGIN_TIME not between", value1, value2, "activityBeginTime"); addCriterion("ACTIVITY_BEGIN_TIME not between", value1, value2, "activityBeginTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间为空
public Criteria andActivityEndTimeIsNull() { public Criteria andActivityEndTimeIsNull() {
addCriterion("ACTIVITY_END_TIME is null"); addCriterion("ACTIVITY_END_TIME is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间不为空
public Criteria andActivityEndTimeIsNotNull() { public Criteria andActivityEndTimeIsNotNull() {
addCriterion("ACTIVITY_END_TIME is not null"); addCriterion("ACTIVITY_END_TIME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间等于某个值
public Criteria andActivityEndTimeEqualTo(Date value) { public Criteria andActivityEndTimeEqualTo(Date value) {
addCriterion("ACTIVITY_END_TIME =", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME =", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间不等于某个值
public Criteria andActivityEndTimeNotEqualTo(Date value) { public Criteria andActivityEndTimeNotEqualTo(Date value) {
addCriterion("ACTIVITY_END_TIME <>", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME <>", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间大于某个值
public Criteria andActivityEndTimeGreaterThan(Date value) { public Criteria andActivityEndTimeGreaterThan(Date value) {
addCriterion("ACTIVITY_END_TIME >", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME >", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间大于等于某个值
public Criteria andActivityEndTimeGreaterThanOrEqualTo(Date value) { public Criteria andActivityEndTimeGreaterThanOrEqualTo(Date value) {
addCriterion("ACTIVITY_END_TIME >=", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME >=", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间小于某个值
public Criteria andActivityEndTimeLessThan(Date value) { public Criteria andActivityEndTimeLessThan(Date value) {
addCriterion("ACTIVITY_END_TIME <", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME <", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间小于等于某个值
public Criteria andActivityEndTimeLessThanOrEqualTo(Date value) { public Criteria andActivityEndTimeLessThanOrEqualTo(Date value) {
addCriterion("ACTIVITY_END_TIME <=", value, "activityEndTime"); addCriterion("ACTIVITY_END_TIME <=", value, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间在某个值列表中
public Criteria andActivityEndTimeIn(List<Date> values) { public Criteria andActivityEndTimeIn(List<Date> values) {
addCriterion("ACTIVITY_END_TIME in", values, "activityEndTime"); addCriterion("ACTIVITY_END_TIME in", values, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间不在某个值列表中
public Criteria andActivityEndTimeNotIn(List<Date> values) { public Criteria andActivityEndTimeNotIn(List<Date> values) {
addCriterion("ACTIVITY_END_TIME not in", values, "activityEndTime"); addCriterion("ACTIVITY_END_TIME not in", values, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间在某个值范围内
public Criteria andActivityEndTimeBetween(Date value1, Date value2) { public Criteria andActivityEndTimeBetween(Date value1, Date value2) {
addCriterion("ACTIVITY_END_TIME between", value1, value2, "activityEndTime"); addCriterion("ACTIVITY_END_TIME between", value1, value2, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动结束时间不在某个值范围内
public Criteria andActivityEndTimeNotBetween(Date value1, Date value2) { public Criteria andActivityEndTimeNotBetween(Date value1, Date value2) {
addCriterion("ACTIVITY_END_TIME not between", value1, value2, "activityEndTime"); addCriterion("ACTIVITY_END_TIME not between", value1, value2, "activityEndTime");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述为空
public Criteria andActivityDescribeIsNull() { public Criteria andActivityDescribeIsNull() {
addCriterion("ACTIVITY_DESCRIBE is null"); addCriterion("ACTIVITY_DESCRIBE is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述不为空
public Criteria andActivityDescribeIsNotNull() { public Criteria andActivityDescribeIsNotNull() {
addCriterion("ACTIVITY_DESCRIBE is not null"); addCriterion("ACTIVITY_DESCRIBE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述等于某个值
public Criteria andActivityDescribeEqualTo(String value) { public Criteria andActivityDescribeEqualTo(String value) {
addCriterion("ACTIVITY_DESCRIBE =", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE =", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述不等于某个值
public Criteria andActivityDescribeNotEqualTo(String value) { public Criteria andActivityDescribeNotEqualTo(String value) {
addCriterion("ACTIVITY_DESCRIBE <>", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE <>", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述大于某个值
public Criteria andActivityDescribeGreaterThan(String value) { public Criteria andActivityDescribeGreaterThan(String value) {
addCriterion("ACTIVITY_DESCRIBE >", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE >", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述大于等于某个值
public Criteria andActivityDescribeGreaterThanOrEqualTo(String value) { public Criteria andActivityDescribeGreaterThanOrEqualTo(String value) {
addCriterion("ACTIVITY_DESCRIBE >=", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE >=", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述小于某个值
public Criteria andActivityDescribeLessThan(String value) { public Criteria andActivityDescribeLessThan(String value) {
addCriterion("ACTIVITY_DESCRIBE <", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE <", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述小于等于某个值
public Criteria andActivityDescribeLessThanOrEqualTo(String value) { public Criteria andActivityDescribeLessThanOrEqualTo(String value) {
addCriterion("ACTIVITY_DESCRIBE <=", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE <=", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述包含某个值
public Criteria andActivityDescribeLike(String value) { public Criteria andActivityDescribeLike(String value) {
addCriterion("ACTIVITY_DESCRIBE like", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE like", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述不包含某个值
public Criteria andActivityDescribeNotLike(String value) { public Criteria andActivityDescribeNotLike(String value) {
addCriterion("ACTIVITY_DESCRIBE not like", value, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE not like", value, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述在某个值列表中
public Criteria andActivityDescribeIn(List<String> values) { public Criteria andActivityDescribeIn(List<String> values) {
addCriterion("ACTIVITY_DESCRIBE in", values, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE in", values, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述不在某个值列表中
public Criteria andActivityDescribeNotIn(List<String> values) { public Criteria andActivityDescribeNotIn(List<String> values) {
addCriterion("ACTIVITY_DESCRIBE not in", values, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE not in", values, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述在某个值范围内
public Criteria andActivityDescribeBetween(String value1, String value2) { public Criteria andActivityDescribeBetween(String value1, String value2) {
addCriterion("ACTIVITY_DESCRIBE between", value1, value2, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE between", value1, value2, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动描述不在某个值范围内
public Criteria andActivityDescribeNotBetween(String value1, String value2) { public Criteria andActivityDescribeNotBetween(String value1, String value2) {
addCriterion("ACTIVITY_DESCRIBE not between", value1, value2, "activityDescribe"); addCriterion("ACTIVITY_DESCRIBE not between", value1, value2, "activityDescribe");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型为空
public Criteria andActivityTypeIsNull() { public Criteria andActivityTypeIsNull() {
addCriterion("ACTIVITY_TYPE is null"); addCriterion("ACTIVITY_TYPE is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型不为空
public Criteria andActivityTypeIsNotNull() { public Criteria andActivityTypeIsNotNull() {
addCriterion("ACTIVITY_TYPE is not null"); addCriterion("ACTIVITY_TYPE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型等于某个值
public Criteria andActivityTypeEqualTo(Integer value) { public Criteria andActivityTypeEqualTo(Integer value) {
addCriterion("ACTIVITY_TYPE =", value, "activityType"); addCriterion("ACTIVITY_TYPE =", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型不等于某个值
public Criteria andActivityTypeNotEqualTo(Integer value) { public Criteria andActivityTypeNotEqualTo(Integer value) {
addCriterion("ACTIVITY_TYPE <>", value, "activityType"); addCriterion("ACTIVITY_TYPE <>", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型大于某个值
public Criteria andActivityTypeGreaterThan(Integer value) { public Criteria andActivityTypeGreaterThan(Integer value) {
addCriterion("ACTIVITY_TYPE >", value, "activityType"); addCriterion("ACTIVITY_TYPE >", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型大于等于某个值
public Criteria andActivityTypeGreaterThanOrEqualTo(Integer value) { public Criteria andActivityTypeGreaterThanOrEqualTo(Integer value) {
addCriterion("ACTIVITY_TYPE >=", value, "activityType"); addCriterion("ACTIVITY_TYPE >=", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型小于某个值
public Criteria andActivityTypeLessThan(Integer value) { public Criteria andActivityTypeLessThan(Integer value) {
addCriterion("ACTIVITY_TYPE <", value, "activityType"); addCriterion("ACTIVITY_TYPE <", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型小于等于某个值
public Criteria andActivityTypeLessThanOrEqualTo(Integer value) { public Criteria andActivityTypeLessThanOrEqualTo(Integer value) {
addCriterion("ACTIVITY_TYPE <=", value, "activityType"); addCriterion("ACTIVITY_TYPE <=", value, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型在某个值列表中
public Criteria andActivityTypeIn(List<Integer> values) { public Criteria andActivityTypeIn(List<Integer> values) {
addCriterion("ACTIVITY_TYPE in", values, "activityType"); addCriterion("ACTIVITY_TYPE in", values, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型不在某个值列表中
public Criteria andActivityTypeNotIn(List<Integer> values) { public Criteria andActivityTypeNotIn(List<Integer> values) {
addCriterion("ACTIVITY_TYPE not in", values, "activityType"); addCriterion("ACTIVITY_TYPE not in", values, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型在某个值范围内
public Criteria andActivityTypeBetween(Integer value1, Integer value2) { public Criteria andActivityTypeBetween(Integer value1, Integer value2) {
addCriterion("ACTIVITY_TYPE between", value1, value2, "activityType"); addCriterion("ACTIVITY_TYPE between", value1, value2, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动类型不在某个值范围内
public Criteria andActivityTypeNotBetween(Integer value1, Integer value2) { public Criteria andActivityTypeNotBetween(Integer value1, Integer value2) {
addCriterion("ACTIVITY_TYPE not between", value1, value2, "activityType"); addCriterion("ACTIVITY_TYPE not between", value1, value2, "activityType");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性为空
public Criteria andAvailableIsNull() { public Criteria andAvailableIsNull() {
addCriterion("AVAILABLE is null"); addCriterion("AVAILABLE is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性不为空
public Criteria andAvailableIsNotNull() { public Criteria andAvailableIsNotNull() {
addCriterion("AVAILABLE is not null"); addCriterion("AVAILABLE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性等于某个值
public Criteria andAvailableEqualTo(Integer value) { public Criteria andAvailableEqualTo(Integer value) {
addCriterion("AVAILABLE =", value, "available"); addCriterion("AVAILABLE =", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性不等于某个值
public Criteria andAvailableNotEqualTo(Integer value) { public Criteria andAvailableNotEqualTo(Integer value) {
addCriterion("AVAILABLE <>", value, "available"); addCriterion("AVAILABLE <>", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性大于某个值
public Criteria andAvailableGreaterThan(Integer value) { public Criteria andAvailableGreaterThan(Integer value) {
addCriterion("AVAILABLE >", value, "available"); addCriterion("AVAILABLE >", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性大于等于某个值
public Criteria andAvailableGreaterThanOrEqualTo(Integer value) { public Criteria andAvailableGreaterThanOrEqualTo(Integer value) {
addCriterion("AVAILABLE >=", value, "available"); addCriterion("AVAILABLE >=", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性小于某个值
public Criteria andAvailableLessThan(Integer value) { public Criteria andAvailableLessThan(Integer value) {
addCriterion("AVAILABLE <", value, "available"); addCriterion("AVAILABLE <", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性小于等于某个值
public Criteria andAvailableLessThanOrEqualTo(Integer value) { public Criteria andAvailableLessThanOrEqualTo(Integer value) {
addCriterion("AVAILABLE <=", value, "available"); addCriterion("AVAILABLE <=", value, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性在某个值列表中
public Criteria andAvailableIn(List<Integer> values) { public Criteria andAvailableIn(List<Integer> values) {
addCriterion("AVAILABLE in", values, "available"); addCriterion("AVAILABLE in", values, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性不在某个值列表中
public Criteria andAvailableNotIn(List<Integer> values) { public Criteria andAvailableNotIn(List<Integer> values) {
addCriterion("AVAILABLE not in", values, "available"); addCriterion("AVAILABLE not in", values, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性在某个值范围内
public Criteria andAvailableBetween(Integer value1, Integer value2) { public Criteria andAvailableBetween(Integer value1, Integer value2) {
addCriterion("AVAILABLE between", value1, value2, "available"); addCriterion("AVAILABLE between", value1, value2, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,活动可用性不在某个值范围内
public Criteria andAvailableNotBetween(Integer value1, Integer value2) { public Criteria andAvailableNotBetween(Integer value1, Integer value2) {
addCriterion("AVAILABLE not between", value1, value2, "available"); addCriterion("AVAILABLE not between", value1, value2, "available");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价不为空
public Criteria andLowestPriceIsNull() { public Criteria andLowestPriceIsNull() {
addCriterion("LOWEST_PRICE is null"); addCriterion("LOWEST_PRICE is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价为空
public Criteria andLowestPriceIsNotNull() { public Criteria andLowestPriceIsNotNull() {
addCriterion("LOWEST_PRICE is not null"); addCriterion("LOWEST_PRICE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价等于某个值
public Criteria andLowestPriceEqualTo(BigDecimal value) { public Criteria andLowestPriceEqualTo(BigDecimal value) {
addCriterion("LOWEST_PRICE =", value, "lowestPrice"); addCriterion("LOWEST_PRICE =", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价不等于某个值
public Criteria andLowestPriceNotEqualTo(BigDecimal value) { public Criteria andLowestPriceNotEqualTo(BigDecimal value) {
addCriterion("LOWEST_PRICE <>", value, "lowestPrice"); addCriterion("LOWEST_PRICE <>", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价大于某个值
public Criteria andLowestPriceGreaterThan(BigDecimal value) { public Criteria andLowestPriceGreaterThan(BigDecimal value) {
addCriterion("LOWEST_PRICE >", value, "lowestPrice"); addCriterion("LOWEST_PRICE >", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价大于等于某个值
public Criteria andLowestPriceGreaterThanOrEqualTo(BigDecimal value) { public Criteria andLowestPriceGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("LOWEST_PRICE >=", value, "lowestPrice"); addCriterion("LOWEST_PRICE >=", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价小于某个值
public Criteria andLowestPriceLessThan(BigDecimal value) { public Criteria andLowestPriceLessThan(BigDecimal value) {
addCriterion("LOWEST_PRICE <", value, "lowestPrice"); addCriterion("LOWEST_PRICE <", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价小于等于某个值
public Criteria andLowestPriceLessThanOrEqualTo(BigDecimal value) { public Criteria andLowestPriceLessThanOrEqualTo(BigDecimal value) {
addCriterion("LOWEST_PRICE <=", value, "lowestPrice"); addCriterion("LOWEST_PRICE <=", value, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价在某个值列表中
public Criteria andLowestPriceIn(List<BigDecimal> values) { public Criteria andLowestPriceIn(List<BigDecimal> values) {
addCriterion("LOWEST_PRICE in", values, "lowestPrice"); addCriterion("LOWEST_PRICE in", values, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价不在某个值列表中
public Criteria andLowestPriceNotIn(List<BigDecimal> values) { public Criteria andLowestPriceNotIn(List<BigDecimal> values) {
addCriterion("LOWEST_PRICE not in", values, "lowestPrice"); addCriterion("LOWEST_PRICE not in", values, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价在某个值范围内
public Criteria andLowestPriceBetween(BigDecimal value1, BigDecimal value2) { public Criteria andLowestPriceBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("LOWEST_PRICE between", value1, value2, "lowestPrice"); addCriterion("LOWEST_PRICE between", value1, value2, "lowestPrice");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件,最低价不在某个值范围内
public Criteria andLowestPriceNotBetween(BigDecimal value1, BigDecimal value2) { public Criteria andLowestPriceNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("LOWEST_PRICE not between", value1, value2, "lowestPrice"); addCriterion("LOWEST_PRICE not between", value1, value2, "lowestPrice");
return (Criteria) this; return (Criteria) this;

@ -11,34 +11,23 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_activity_ref") @Table(name = "cd_activity_ref")
public class CdActivityRef extends BaseMybatisModel { public class CdActivityRef extends BaseMybatisModel {
/**
* // 主键ID
*/
private Integer id; private Integer id;
/** // 活动ID
* ID
*/
private Integer cdActivityId; private Integer cdActivityId;
/** // 引用值
*
*/
private String refValue; private String refValue;
/** // 引用类型
*
*/
private String refType; private String refType;
/** // 引用名称
*
*/
private String refName; private String refName;
/** // 引用数量
*
*/
private Integer refCount; private Integer refCount;
@Column(name = "ID") @Column(name = "ID")

@ -4,47 +4,60 @@ import com.xmomen.framework.mybatis.model.BaseMybatisExample;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
// 定义CdActivityRefExample类继承BaseMybatisExample类
public class CdActivityRefExample extends BaseMybatisExample { public class CdActivityRefExample extends BaseMybatisExample {
// 定义orderByClause变量用于存储排序字段
protected String orderByClause; protected String orderByClause;
// 定义distinct变量用于存储是否去重
protected boolean distinct; protected boolean distinct;
// 定义oredCriteria变量用于存储查询条件
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
// 构造函数初始化oredCriteria变量
public CdActivityRefExample() { public CdActivityRefExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
// 设置orderByClause变量
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
} }
// 获取orderByClause变量
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
} }
// 设置distinct变量
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
} }
// 获取distinct变量
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
} }
// 获取oredCriteria变量
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
} }
// 添加查询条件
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
} }
// 创建查询条件
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria); oredCriteria.add(criteria);
return criteria; return criteria;
} }
// 创建查询条件
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) { if (oredCriteria.size() == 0) {
@ -53,37 +66,46 @@ public class CdActivityRefExample extends BaseMybatisExample {
return criteria; return criteria;
} }
// 创建查询条件
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
return criteria; return criteria;
} }
// 清空查询条件
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
orderByClause = null; orderByClause = null;
distinct = false; distinct = false;
} }
// 定义GeneratedCriteria内部类
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
// 定义criteria变量用于存储查询条件
protected List<Criterion> criteria; protected List<Criterion> criteria;
// 构造函数初始化criteria变量
protected GeneratedCriteria() { protected GeneratedCriteria() {
super(); super();
criteria = new ArrayList<Criterion>(); criteria = new ArrayList<Criterion>();
} }
// 判断查询条件是否有效
public boolean isValid() { public boolean isValid() {
return criteria.size() > 0; return criteria.size() > 0;
} }
// 获取所有查询条件
public List<Criterion> getAllCriteria() { public List<Criterion> getAllCriteria() {
return criteria; return criteria;
} }
// 获取查询条件
public List<Criterion> getCriteria() { public List<Criterion> getCriteria() {
return criteria; return criteria;
} }
// 添加查询条件
protected void addCriterion(String condition) { protected void addCriterion(String condition) {
if (condition == null) { if (condition == null) {
throw new RuntimeException("Value for condition cannot be null"); throw new RuntimeException("Value for condition cannot be null");
@ -91,6 +113,7 @@ public class CdActivityRefExample extends BaseMybatisExample {
criteria.add(new Criterion(condition)); criteria.add(new Criterion(condition));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value, String property) { protected void addCriterion(String condition, Object value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -98,6 +121,7 @@ public class CdActivityRefExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value)); criteria.add(new Criterion(condition, value));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value1, Object value2, String property) { protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -105,391 +129,469 @@ public class CdActivityRefExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value1, value2)); criteria.add(new Criterion(condition, value1, value2));
} }
// 判断ID是否为空
public Criteria andIdIsNull() { public Criteria andIdIsNull() {
addCriterion("ID is null"); addCriterion("ID is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不为空
public Criteria andIdIsNotNull() { public Criteria andIdIsNotNull() {
addCriterion("ID is not null"); addCriterion("ID is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否等于某个值
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id"); addCriterion("ID =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不等于某个值
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Integer value) {
addCriterion("ID <>", value, "id"); addCriterion("ID <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否大于某个值
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Integer value) {
addCriterion("ID >", value, "id"); addCriterion("ID >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否大于等于某个值
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("ID >=", value, "id"); addCriterion("ID >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否小于某个值
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Integer value) {
addCriterion("ID <", value, "id"); addCriterion("ID <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否小于等于某个值
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("ID <=", value, "id"); addCriterion("ID <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否在某个范围内
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Integer> values) {
addCriterion("ID in", values, "id"); addCriterion("ID in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不在某个范围内
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Integer> values) {
addCriterion("ID not in", values, "id"); addCriterion("ID not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否在某个范围内
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("ID between", value1, value2, "id"); addCriterion("ID between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断ID是否不在某个范围内
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("ID not between", value1, value2, "id"); addCriterion("ID not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否为空
public Criteria andCdActivityIdIsNull() { public Criteria andCdActivityIdIsNull() {
addCriterion("CD_ACTIVITY_ID is null"); addCriterion("CD_ACTIVITY_ID is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否不为空
public Criteria andCdActivityIdIsNotNull() { public Criteria andCdActivityIdIsNotNull() {
addCriterion("CD_ACTIVITY_ID is not null"); addCriterion("CD_ACTIVITY_ID is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否等于某个值
public Criteria andCdActivityIdEqualTo(Integer value) { public Criteria andCdActivityIdEqualTo(Integer value) {
addCriterion("CD_ACTIVITY_ID =", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID =", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否不等于某个值
public Criteria andCdActivityIdNotEqualTo(Integer value) { public Criteria andCdActivityIdNotEqualTo(Integer value) {
addCriterion("CD_ACTIVITY_ID <>", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID <>", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否大于某个值
public Criteria andCdActivityIdGreaterThan(Integer value) { public Criteria andCdActivityIdGreaterThan(Integer value) {
addCriterion("CD_ACTIVITY_ID >", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID >", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否大于等于某个值
public Criteria andCdActivityIdGreaterThanOrEqualTo(Integer value) { public Criteria andCdActivityIdGreaterThanOrEqualTo(Integer value) {
addCriterion("CD_ACTIVITY_ID >=", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID >=", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否小于某个值
public Criteria andCdActivityIdLessThan(Integer value) { public Criteria andCdActivityIdLessThan(Integer value) {
addCriterion("CD_ACTIVITY_ID <", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID <", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否小于等于某个值
public Criteria andCdActivityIdLessThanOrEqualTo(Integer value) { public Criteria andCdActivityIdLessThanOrEqualTo(Integer value) {
addCriterion("CD_ACTIVITY_ID <=", value, "cdActivityId"); addCriterion("CD_ACTIVITY_ID <=", value, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否在某个范围内
public Criteria andCdActivityIdIn(List<Integer> values) { public Criteria andCdActivityIdIn(List<Integer> values) {
addCriterion("CD_ACTIVITY_ID in", values, "cdActivityId"); addCriterion("CD_ACTIVITY_ID in", values, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否不在某个范围内
public Criteria andCdActivityIdNotIn(List<Integer> values) { public Criteria andCdActivityIdNotIn(List<Integer> values) {
addCriterion("CD_ACTIVITY_ID not in", values, "cdActivityId"); addCriterion("CD_ACTIVITY_ID not in", values, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否在某个范围内
public Criteria andCdActivityIdBetween(Integer value1, Integer value2) { public Criteria andCdActivityIdBetween(Integer value1, Integer value2) {
addCriterion("CD_ACTIVITY_ID between", value1, value2, "cdActivityId"); addCriterion("CD_ACTIVITY_ID between", value1, value2, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断CD_ACTIVITY_ID是否不在某个范围内
public Criteria andCdActivityIdNotBetween(Integer value1, Integer value2) { public Criteria andCdActivityIdNotBetween(Integer value1, Integer value2) {
addCriterion("CD_ACTIVITY_ID not between", value1, value2, "cdActivityId"); addCriterion("CD_ACTIVITY_ID not between", value1, value2, "cdActivityId");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否为空
public Criteria andRefValueIsNull() { public Criteria andRefValueIsNull() {
addCriterion("REF_VALUE is null"); addCriterion("REF_VALUE is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否不为空
public Criteria andRefValueIsNotNull() { public Criteria andRefValueIsNotNull() {
addCriterion("REF_VALUE is not null"); addCriterion("REF_VALUE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否等于某个值
public Criteria andRefValueEqualTo(String value) { public Criteria andRefValueEqualTo(String value) {
addCriterion("REF_VALUE =", value, "refValue"); addCriterion("REF_VALUE =", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否不等于某个值
public Criteria andRefValueNotEqualTo(String value) { public Criteria andRefValueNotEqualTo(String value) {
addCriterion("REF_VALUE <>", value, "refValue"); addCriterion("REF_VALUE <>", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否大于某个值
public Criteria andRefValueGreaterThan(String value) { public Criteria andRefValueGreaterThan(String value) {
addCriterion("REF_VALUE >", value, "refValue"); addCriterion("REF_VALUE >", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否大于等于某个值
public Criteria andRefValueGreaterThanOrEqualTo(String value) { public Criteria andRefValueGreaterThanOrEqualTo(String value) {
addCriterion("REF_VALUE >=", value, "refValue"); addCriterion("REF_VALUE >=", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否小于某个值
public Criteria andRefValueLessThan(String value) { public Criteria andRefValueLessThan(String value) {
addCriterion("REF_VALUE <", value, "refValue"); addCriterion("REF_VALUE <", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否小于等于某个值
public Criteria andRefValueLessThanOrEqualTo(String value) { public Criteria andRefValueLessThanOrEqualTo(String value) {
addCriterion("REF_VALUE <=", value, "refValue"); addCriterion("REF_VALUE <=", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否包含某个值
public Criteria andRefValueLike(String value) { public Criteria andRefValueLike(String value) {
addCriterion("REF_VALUE like", value, "refValue"); addCriterion("REF_VALUE like", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否不包含某个值
public Criteria andRefValueNotLike(String value) { public Criteria andRefValueNotLike(String value) {
addCriterion("REF_VALUE not like", value, "refValue"); addCriterion("REF_VALUE not like", value, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否在某个范围内
public Criteria andRefValueIn(List<String> values) { public Criteria andRefValueIn(List<String> values) {
addCriterion("REF_VALUE in", values, "refValue"); addCriterion("REF_VALUE in", values, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否不在某个范围内
public Criteria andRefValueNotIn(List<String> values) { public Criteria andRefValueNotIn(List<String> values) {
addCriterion("REF_VALUE not in", values, "refValue"); addCriterion("REF_VALUE not in", values, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否在某个范围内
public Criteria andRefValueBetween(String value1, String value2) { public Criteria andRefValueBetween(String value1, String value2) {
addCriterion("REF_VALUE between", value1, value2, "refValue"); addCriterion("REF_VALUE between", value1, value2, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_VALUE是否不在某个范围内
public Criteria andRefValueNotBetween(String value1, String value2) { public Criteria andRefValueNotBetween(String value1, String value2) {
addCriterion("REF_VALUE not between", value1, value2, "refValue"); addCriterion("REF_VALUE not between", value1, value2, "refValue");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否为空
public Criteria andRefTypeIsNull() { public Criteria andRefTypeIsNull() {
addCriterion("REF_TYPE is null"); addCriterion("REF_TYPE is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否不为空
public Criteria andRefTypeIsNotNull() { public Criteria andRefTypeIsNotNull() {
addCriterion("REF_TYPE is not null"); addCriterion("REF_TYPE is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否等于某个值
public Criteria andRefTypeEqualTo(String value) { public Criteria andRefTypeEqualTo(String value) {
addCriterion("REF_TYPE =", value, "refType"); addCriterion("REF_TYPE =", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否不等于某个值
public Criteria andRefTypeNotEqualTo(String value) { public Criteria andRefTypeNotEqualTo(String value) {
addCriterion("REF_TYPE <>", value, "refType"); addCriterion("REF_TYPE <>", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否大于某个值
public Criteria andRefTypeGreaterThan(String value) { public Criteria andRefTypeGreaterThan(String value) {
addCriterion("REF_TYPE >", value, "refType"); addCriterion("REF_TYPE >", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否大于等于某个值
public Criteria andRefTypeGreaterThanOrEqualTo(String value) { public Criteria andRefTypeGreaterThanOrEqualTo(String value) {
addCriterion("REF_TYPE >=", value, "refType"); addCriterion("REF_TYPE >=", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否小于某个值
public Criteria andRefTypeLessThan(String value) { public Criteria andRefTypeLessThan(String value) {
addCriterion("REF_TYPE <", value, "refType"); addCriterion("REF_TYPE <", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否小于等于某个值
public Criteria andRefTypeLessThanOrEqualTo(String value) { public Criteria andRefTypeLessThanOrEqualTo(String value) {
addCriterion("REF_TYPE <=", value, "refType"); addCriterion("REF_TYPE <=", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否包含某个值
public Criteria andRefTypeLike(String value) { public Criteria andRefTypeLike(String value) {
addCriterion("REF_TYPE like", value, "refType"); addCriterion("REF_TYPE like", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否不包含某个值
public Criteria andRefTypeNotLike(String value) { public Criteria andRefTypeNotLike(String value) {
addCriterion("REF_TYPE not like", value, "refType"); addCriterion("REF_TYPE not like", value, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否在某个范围内
public Criteria andRefTypeIn(List<String> values) { public Criteria andRefTypeIn(List<String> values) {
addCriterion("REF_TYPE in", values, "refType"); addCriterion("REF_TYPE in", values, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否不在某个范围内
public Criteria andRefTypeNotIn(List<String> values) { public Criteria andRefTypeNotIn(List<String> values) {
addCriterion("REF_TYPE not in", values, "refType"); addCriterion("REF_TYPE not in", values, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否在某个范围内
public Criteria andRefTypeBetween(String value1, String value2) { public Criteria andRefTypeBetween(String value1, String value2) {
addCriterion("REF_TYPE between", value1, value2, "refType"); addCriterion("REF_TYPE between", value1, value2, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_TYPE是否不在某个范围内
public Criteria andRefTypeNotBetween(String value1, String value2) { public Criteria andRefTypeNotBetween(String value1, String value2) {
addCriterion("REF_TYPE not between", value1, value2, "refType"); addCriterion("REF_TYPE not between", value1, value2, "refType");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否为空
public Criteria andRefNameIsNull() { public Criteria andRefNameIsNull() {
addCriterion("REF_NAME is null"); addCriterion("REF_NAME is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否不为空
public Criteria andRefNameIsNotNull() { public Criteria andRefNameIsNotNull() {
addCriterion("REF_NAME is not null"); addCriterion("REF_NAME is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否等于某个值
public Criteria andRefNameEqualTo(String value) { public Criteria andRefNameEqualTo(String value) {
addCriterion("REF_NAME =", value, "refName"); addCriterion("REF_NAME =", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否不等于某个值
public Criteria andRefNameNotEqualTo(String value) { public Criteria andRefNameNotEqualTo(String value) {
addCriterion("REF_NAME <>", value, "refName"); addCriterion("REF_NAME <>", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否大于某个值
public Criteria andRefNameGreaterThan(String value) { public Criteria andRefNameGreaterThan(String value) {
addCriterion("REF_NAME >", value, "refName"); addCriterion("REF_NAME >", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否大于等于某个值
public Criteria andRefNameGreaterThanOrEqualTo(String value) { public Criteria andRefNameGreaterThanOrEqualTo(String value) {
addCriterion("REF_NAME >=", value, "refName"); addCriterion("REF_NAME >=", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否小于某个值
public Criteria andRefNameLessThan(String value) { public Criteria andRefNameLessThan(String value) {
addCriterion("REF_NAME <", value, "refName"); addCriterion("REF_NAME <", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否小于等于某个值
public Criteria andRefNameLessThanOrEqualTo(String value) { public Criteria andRefNameLessThanOrEqualTo(String value) {
addCriterion("REF_NAME <=", value, "refName"); addCriterion("REF_NAME <=", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否包含某个值
public Criteria andRefNameLike(String value) { public Criteria andRefNameLike(String value) {
addCriterion("REF_NAME like", value, "refName"); addCriterion("REF_NAME like", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否不包含某个值
public Criteria andRefNameNotLike(String value) { public Criteria andRefNameNotLike(String value) {
addCriterion("REF_NAME not like", value, "refName"); addCriterion("REF_NAME not like", value, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否在某个范围内
public Criteria andRefNameIn(List<String> values) { public Criteria andRefNameIn(List<String> values) {
addCriterion("REF_NAME in", values, "refName"); addCriterion("REF_NAME in", values, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否不在某个范围内
public Criteria andRefNameNotIn(List<String> values) { public Criteria andRefNameNotIn(List<String> values) {
addCriterion("REF_NAME not in", values, "refName"); addCriterion("REF_NAME not in", values, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否在某个范围内
public Criteria andRefNameBetween(String value1, String value2) { public Criteria andRefNameBetween(String value1, String value2) {
addCriterion("REF_NAME between", value1, value2, "refName"); addCriterion("REF_NAME between", value1, value2, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_NAME是否不在某个范围内
public Criteria andRefNameNotBetween(String value1, String value2) { public Criteria andRefNameNotBetween(String value1, String value2) {
addCriterion("REF_NAME not between", value1, value2, "refName"); addCriterion("REF_NAME not between", value1, value2, "refName");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否为空
public Criteria andRefCountIsNull() { public Criteria andRefCountIsNull() {
addCriterion("REF_COUNT is null"); addCriterion("REF_COUNT is null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否不为空
public Criteria andRefCountIsNotNull() { public Criteria andRefCountIsNotNull() {
addCriterion("REF_COUNT is not null"); addCriterion("REF_COUNT is not null");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否等于某个值
public Criteria andRefCountEqualTo(Integer value) { public Criteria andRefCountEqualTo(Integer value) {
addCriterion("REF_COUNT =", value, "refCount"); addCriterion("REF_COUNT =", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否不等于某个值
public Criteria andRefCountNotEqualTo(Integer value) { public Criteria andRefCountNotEqualTo(Integer value) {
addCriterion("REF_COUNT <>", value, "refCount"); addCriterion("REF_COUNT <>", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否大于某个值
public Criteria andRefCountGreaterThan(Integer value) { public Criteria andRefCountGreaterThan(Integer value) {
addCriterion("REF_COUNT >", value, "refCount"); addCriterion("REF_COUNT >", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否大于等于某个值
public Criteria andRefCountGreaterThanOrEqualTo(Integer value) { public Criteria andRefCountGreaterThanOrEqualTo(Integer value) {
addCriterion("REF_COUNT >=", value, "refCount"); addCriterion("REF_COUNT >=", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否小于某个值
public Criteria andRefCountLessThan(Integer value) { public Criteria andRefCountLessThan(Integer value) {
addCriterion("REF_COUNT <", value, "refCount"); addCriterion("REF_COUNT <", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否小于等于某个值
public Criteria andRefCountLessThanOrEqualTo(Integer value) { public Criteria andRefCountLessThanOrEqualTo(Integer value) {
addCriterion("REF_COUNT <=", value, "refCount"); addCriterion("REF_COUNT <=", value, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否在某个范围内
public Criteria andRefCountIn(List<Integer> values) { public Criteria andRefCountIn(List<Integer> values) {
addCriterion("REF_COUNT in", values, "refCount"); addCriterion("REF_COUNT in", values, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否不在某个范围内
public Criteria andRefCountNotIn(List<Integer> values) { public Criteria andRefCountNotIn(List<Integer> values) {
addCriterion("REF_COUNT not in", values, "refCount"); addCriterion("REF_COUNT not in", values, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否在某个范围内
public Criteria andRefCountBetween(Integer value1, Integer value2) { public Criteria andRefCountBetween(Integer value1, Integer value2) {
addCriterion("REF_COUNT between", value1, value2, "refCount"); addCriterion("REF_COUNT between", value1, value2, "refCount");
return (Criteria) this; return (Criteria) this;
} }
// 判断REF_COUNT是否不在某个范围内
public Criteria andRefCountNotBetween(Integer value1, Integer value2) { public Criteria andRefCountNotBetween(Integer value1, Integer value2) {
addCriterion("REF_COUNT not between", value1, value2, "refCount"); addCriterion("REF_COUNT not between", value1, value2, "refCount");
return (Criteria) this; return (Criteria) this;

@ -12,44 +12,29 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_attachment") @Table(name = "cd_attachment")
public class CdAttachment extends BaseMybatisModel { public class CdAttachment extends BaseMybatisModel {
/**
* // 主键
*/
private Integer id; private Integer id;
/** // 业务ID
*
*/
private String businessId; private String businessId;
/** // 类型
*
*/
private String type; private String type;
/** // 文件名
*
*/
private String fileName; private String fileName;
/** // 文件扩展名
*
*/
private String fileExtend; private String fileExtend;
/** // 文件路径
*
*/
private String filePath; private String filePath;
/** // 上传日期
*
*/
private Date uploadDate; private Date uploadDate;
/** // 上传用户
*
*/
private String uploadUser; private String uploadUser;
@Column(name = "id") @Column(name = "id")

@ -5,47 +5,60 @@ import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
// 附件实体类
public class CdAttachmentExample extends BaseMybatisExample { public class CdAttachmentExample extends BaseMybatisExample {
// 排序字段
protected String orderByClause; protected String orderByClause;
// 是否去重
protected boolean distinct; protected boolean distinct;
// 查询条件
protected List<Criteria> oredCriteria; protected List<Criteria> oredCriteria;
// 构造函数
public CdAttachmentExample() { public CdAttachmentExample() {
oredCriteria = new ArrayList<Criteria>(); oredCriteria = new ArrayList<Criteria>();
} }
// 设置排序字段
public void setOrderByClause(String orderByClause) { public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause; this.orderByClause = orderByClause;
} }
// 获取排序字段
public String getOrderByClause() { public String getOrderByClause() {
return orderByClause; return orderByClause;
} }
// 设置是否去重
public void setDistinct(boolean distinct) { public void setDistinct(boolean distinct) {
this.distinct = distinct; this.distinct = distinct;
} }
// 获取是否去重
public boolean isDistinct() { public boolean isDistinct() {
return distinct; return distinct;
} }
// 获取查询条件
public List<Criteria> getOredCriteria() { public List<Criteria> getOredCriteria() {
return oredCriteria; return oredCriteria;
} }
// 添加查询条件
public void or(Criteria criteria) { public void or(Criteria criteria) {
oredCriteria.add(criteria); oredCriteria.add(criteria);
} }
// 创建查询条件
public Criteria or() { public Criteria or() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria); oredCriteria.add(criteria);
return criteria; return criteria;
} }
// 创建查询条件
public Criteria createCriteria() { public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal(); Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) { if (oredCriteria.size() == 0) {
@ -54,37 +67,46 @@ public class CdAttachmentExample extends BaseMybatisExample {
return criteria; return criteria;
} }
// 创建查询条件
protected Criteria createCriteriaInternal() { protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria(); Criteria criteria = new Criteria();
return criteria; return criteria;
} }
// 清空查询条件
public void clear() { public void clear() {
oredCriteria.clear(); oredCriteria.clear();
orderByClause = null; orderByClause = null;
distinct = false; distinct = false;
} }
// 生成查询条件
protected abstract static class GeneratedCriteria { protected abstract static class GeneratedCriteria {
// 查询条件列表
protected List<Criterion> criteria; protected List<Criterion> criteria;
// 构造函数
protected GeneratedCriteria() { protected GeneratedCriteria() {
super(); super();
criteria = new ArrayList<Criterion>(); criteria = new ArrayList<Criterion>();
} }
// 判断查询条件是否有效
public boolean isValid() { public boolean isValid() {
return criteria.size() > 0; return criteria.size() > 0;
} }
// 获取所有查询条件
public List<Criterion> getAllCriteria() { public List<Criterion> getAllCriteria() {
return criteria; return criteria;
} }
// 获取查询条件
public List<Criterion> getCriteria() { public List<Criterion> getCriteria() {
return criteria; return criteria;
} }
// 添加查询条件
protected void addCriterion(String condition) { protected void addCriterion(String condition) {
if (condition == null) { if (condition == null) {
throw new RuntimeException("Value for condition cannot be null"); throw new RuntimeException("Value for condition cannot be null");
@ -92,6 +114,7 @@ public class CdAttachmentExample extends BaseMybatisExample {
criteria.add(new Criterion(condition)); criteria.add(new Criterion(condition));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value, String property) { protected void addCriterion(String condition, Object value, String property) {
if (value == null) { if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null"); throw new RuntimeException("Value for " + property + " cannot be null");
@ -99,6 +122,7 @@ public class CdAttachmentExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value)); criteria.add(new Criterion(condition, value));
} }
// 添加查询条件
protected void addCriterion(String condition, Object value1, Object value2, String property) { protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) { if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null"); throw new RuntimeException("Between values for " + property + " cannot be null");
@ -106,541 +130,649 @@ public class CdAttachmentExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value1, value2)); criteria.add(new Criterion(condition, value1, value2));
} }
// 添加查询条件
public Criteria andIdIsNull() { public Criteria andIdIsNull() {
addCriterion("id is null"); addCriterion("id is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdIsNotNull() { public Criteria andIdIsNotNull() {
addCriterion("id is not null"); addCriterion("id is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id"); addCriterion("id =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id"); addCriterion("id <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id"); addCriterion("id >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id"); addCriterion("id >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id"); addCriterion("id <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id"); addCriterion("id <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id"); addCriterion("id in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id"); addCriterion("id not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id"); addCriterion("id between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id"); addCriterion("id not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdIsNull() { public Criteria andBusinessIdIsNull() {
addCriterion("business_id is null"); addCriterion("business_id is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdIsNotNull() { public Criteria andBusinessIdIsNotNull() {
addCriterion("business_id is not null"); addCriterion("business_id is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdEqualTo(String value) { public Criteria andBusinessIdEqualTo(String value) {
addCriterion("business_id =", value, "businessId"); addCriterion("business_id =", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdNotEqualTo(String value) { public Criteria andBusinessIdNotEqualTo(String value) {
addCriterion("business_id <>", value, "businessId"); addCriterion("business_id <>", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdGreaterThan(String value) { public Criteria andBusinessIdGreaterThan(String value) {
addCriterion("business_id >", value, "businessId"); addCriterion("business_id >", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdGreaterThanOrEqualTo(String value) { public Criteria andBusinessIdGreaterThanOrEqualTo(String value) {
addCriterion("business_id >=", value, "businessId"); addCriterion("business_id >=", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdLessThan(String value) { public Criteria andBusinessIdLessThan(String value) {
addCriterion("business_id <", value, "businessId"); addCriterion("business_id <", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdLessThanOrEqualTo(String value) { public Criteria andBusinessIdLessThanOrEqualTo(String value) {
addCriterion("business_id <=", value, "businessId"); addCriterion("business_id <=", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdLike(String value) { public Criteria andBusinessIdLike(String value) {
addCriterion("business_id like", value, "businessId"); addCriterion("business_id like", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdNotLike(String value) { public Criteria andBusinessIdNotLike(String value) {
addCriterion("business_id not like", value, "businessId"); addCriterion("business_id not like", value, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdIn(List<String> values) { public Criteria andBusinessIdIn(List<String> values) {
addCriterion("business_id in", values, "businessId"); addCriterion("business_id in", values, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdNotIn(List<String> values) { public Criteria andBusinessIdNotIn(List<String> values) {
addCriterion("business_id not in", values, "businessId"); addCriterion("business_id not in", values, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdBetween(String value1, String value2) { public Criteria andBusinessIdBetween(String value1, String value2) {
addCriterion("business_id between", value1, value2, "businessId"); addCriterion("business_id between", value1, value2, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andBusinessIdNotBetween(String value1, String value2) { public Criteria andBusinessIdNotBetween(String value1, String value2) {
addCriterion("business_id not between", value1, value2, "businessId"); addCriterion("business_id not between", value1, value2, "businessId");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeIsNull() { public Criteria andTypeIsNull() {
addCriterion("type is null"); addCriterion("type is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeIsNotNull() { public Criteria andTypeIsNotNull() {
addCriterion("type is not null"); addCriterion("type is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeEqualTo(String value) { public Criteria andTypeEqualTo(String value) {
addCriterion("type =", value, "type"); addCriterion("type =", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeNotEqualTo(String value) { public Criteria andTypeNotEqualTo(String value) {
addCriterion("type <>", value, "type"); addCriterion("type <>", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeGreaterThan(String value) { public Criteria andTypeGreaterThan(String value) {
addCriterion("type >", value, "type"); addCriterion("type >", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeGreaterThanOrEqualTo(String value) { public Criteria andTypeGreaterThanOrEqualTo(String value) {
addCriterion("type >=", value, "type"); addCriterion("type >=", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeLessThan(String value) { public Criteria andTypeLessThan(String value) {
addCriterion("type <", value, "type"); addCriterion("type <", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeLessThanOrEqualTo(String value) { public Criteria andTypeLessThanOrEqualTo(String value) {
addCriterion("type <=", value, "type"); addCriterion("type <=", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeLike(String value) { public Criteria andTypeLike(String value) {
addCriterion("type like", value, "type"); addCriterion("type like", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeNotLike(String value) { public Criteria andTypeNotLike(String value) {
addCriterion("type not like", value, "type"); addCriterion("type not like", value, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeIn(List<String> values) { public Criteria andTypeIn(List<String> values) {
addCriterion("type in", values, "type"); addCriterion("type in", values, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeNotIn(List<String> values) { public Criteria andTypeNotIn(List<String> values) {
addCriterion("type not in", values, "type"); addCriterion("type not in", values, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeBetween(String value1, String value2) { public Criteria andTypeBetween(String value1, String value2) {
addCriterion("type between", value1, value2, "type"); addCriterion("type between", value1, value2, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andTypeNotBetween(String value1, String value2) { public Criteria andTypeNotBetween(String value1, String value2) {
addCriterion("type not between", value1, value2, "type"); addCriterion("type not between", value1, value2, "type");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameIsNull() { public Criteria andFileNameIsNull() {
addCriterion("file_name is null"); addCriterion("file_name is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameIsNotNull() { public Criteria andFileNameIsNotNull() {
addCriterion("file_name is not null"); addCriterion("file_name is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameEqualTo(String value) { public Criteria andFileNameEqualTo(String value) {
addCriterion("file_name =", value, "fileName"); addCriterion("file_name =", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameNotEqualTo(String value) { public Criteria andFileNameNotEqualTo(String value) {
addCriterion("file_name <>", value, "fileName"); addCriterion("file_name <>", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameGreaterThan(String value) { public Criteria andFileNameGreaterThan(String value) {
addCriterion("file_name >", value, "fileName"); addCriterion("file_name >", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameGreaterThanOrEqualTo(String value) { public Criteria andFileNameGreaterThanOrEqualTo(String value) {
addCriterion("file_name >=", value, "fileName"); addCriterion("file_name >=", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameLessThan(String value) { public Criteria andFileNameLessThan(String value) {
addCriterion("file_name <", value, "fileName"); addCriterion("file_name <", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameLessThanOrEqualTo(String value) { public Criteria andFileNameLessThanOrEqualTo(String value) {
addCriterion("file_name <=", value, "fileName"); addCriterion("file_name <=", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameLike(String value) { public Criteria andFileNameLike(String value) {
addCriterion("file_name like", value, "fileName"); addCriterion("file_name like", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameNotLike(String value) { public Criteria andFileNameNotLike(String value) {
addCriterion("file_name not like", value, "fileName"); addCriterion("file_name not like", value, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameIn(List<String> values) { public Criteria andFileNameIn(List<String> values) {
addCriterion("file_name in", values, "fileName"); addCriterion("file_name in", values, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameNotIn(List<String> values) { public Criteria andFileNameNotIn(List<String> values) {
addCriterion("file_name not in", values, "fileName"); addCriterion("file_name not in", values, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameBetween(String value1, String value2) { public Criteria andFileNameBetween(String value1, String value2) {
addCriterion("file_name between", value1, value2, "fileName"); addCriterion("file_name between", value1, value2, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileNameNotBetween(String value1, String value2) { public Criteria andFileNameNotBetween(String value1, String value2) {
addCriterion("file_name not between", value1, value2, "fileName"); addCriterion("file_name not between", value1, value2, "fileName");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendIsNull() { public Criteria andFileExtendIsNull() {
addCriterion("file_extend is null"); addCriterion("file_extend is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendIsNotNull() { public Criteria andFileExtendIsNotNull() {
addCriterion("file_extend is not null"); addCriterion("file_extend is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendEqualTo(String value) { public Criteria andFileExtendEqualTo(String value) {
addCriterion("file_extend =", value, "fileExtend"); addCriterion("file_extend =", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendNotEqualTo(String value) { public Criteria andFileExtendNotEqualTo(String value) {
addCriterion("file_extend <>", value, "fileExtend"); addCriterion("file_extend <>", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendGreaterThan(String value) { public Criteria andFileExtendGreaterThan(String value) {
addCriterion("file_extend >", value, "fileExtend"); addCriterion("file_extend >", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendGreaterThanOrEqualTo(String value) { public Criteria andFileExtendGreaterThanOrEqualTo(String value) {
addCriterion("file_extend >=", value, "fileExtend"); addCriterion("file_extend >=", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendLessThan(String value) { public Criteria andFileExtendLessThan(String value) {
addCriterion("file_extend <", value, "fileExtend"); addCriterion("file_extend <", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendLessThanOrEqualTo(String value) { public Criteria andFileExtendLessThanOrEqualTo(String value) {
addCriterion("file_extend <=", value, "fileExtend"); addCriterion("file_extend <=", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendLike(String value) { public Criteria andFileExtendLike(String value) {
addCriterion("file_extend like", value, "fileExtend"); addCriterion("file_extend like", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendNotLike(String value) { public Criteria andFileExtendNotLike(String value) {
addCriterion("file_extend not like", value, "fileExtend"); addCriterion("file_extend not like", value, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendIn(List<String> values) { public Criteria andFileExtendIn(List<String> values) {
addCriterion("file_extend in", values, "fileExtend"); addCriterion("file_extend in", values, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendNotIn(List<String> values) { public Criteria andFileExtendNotIn(List<String> values) {
addCriterion("file_extend not in", values, "fileExtend"); addCriterion("file_extend not in", values, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendBetween(String value1, String value2) { public Criteria andFileExtendBetween(String value1, String value2) {
addCriterion("file_extend between", value1, value2, "fileExtend"); addCriterion("file_extend between", value1, value2, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFileExtendNotBetween(String value1, String value2) { public Criteria andFileExtendNotBetween(String value1, String value2) {
addCriterion("file_extend not between", value1, value2, "fileExtend"); addCriterion("file_extend not between", value1, value2, "fileExtend");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathIsNull() { public Criteria andFilePathIsNull() {
addCriterion("file_path is null"); addCriterion("file_path is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathIsNotNull() { public Criteria andFilePathIsNotNull() {
addCriterion("file_path is not null"); addCriterion("file_path is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathEqualTo(String value) { public Criteria andFilePathEqualTo(String value) {
addCriterion("file_path =", value, "filePath"); addCriterion("file_path =", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathNotEqualTo(String value) { public Criteria andFilePathNotEqualTo(String value) {
addCriterion("file_path <>", value, "filePath"); addCriterion("file_path <>", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathGreaterThan(String value) { public Criteria andFilePathGreaterThan(String value) {
addCriterion("file_path >", value, "filePath"); addCriterion("file_path >", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathGreaterThanOrEqualTo(String value) { public Criteria andFilePathGreaterThanOrEqualTo(String value) {
addCriterion("file_path >=", value, "filePath"); addCriterion("file_path >=", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathLessThan(String value) { public Criteria andFilePathLessThan(String value) {
addCriterion("file_path <", value, "filePath"); addCriterion("file_path <", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathLessThanOrEqualTo(String value) { public Criteria andFilePathLessThanOrEqualTo(String value) {
addCriterion("file_path <=", value, "filePath"); addCriterion("file_path <=", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathLike(String value) { public Criteria andFilePathLike(String value) {
addCriterion("file_path like", value, "filePath"); addCriterion("file_path like", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathNotLike(String value) { public Criteria andFilePathNotLike(String value) {
addCriterion("file_path not like", value, "filePath"); addCriterion("file_path not like", value, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathIn(List<String> values) { public Criteria andFilePathIn(List<String> values) {
addCriterion("file_path in", values, "filePath"); addCriterion("file_path in", values, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathNotIn(List<String> values) { public Criteria andFilePathNotIn(List<String> values) {
addCriterion("file_path not in", values, "filePath"); addCriterion("file_path not in", values, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathBetween(String value1, String value2) { public Criteria andFilePathBetween(String value1, String value2) {
addCriterion("file_path between", value1, value2, "filePath"); addCriterion("file_path between", value1, value2, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andFilePathNotBetween(String value1, String value2) { public Criteria andFilePathNotBetween(String value1, String value2) {
addCriterion("file_path not between", value1, value2, "filePath"); addCriterion("file_path not between", value1, value2, "filePath");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateIsNull() { public Criteria andUploadDateIsNull() {
addCriterion("upload_date is null"); addCriterion("upload_date is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateIsNotNull() { public Criteria andUploadDateIsNotNull() {
addCriterion("upload_date is not null"); addCriterion("upload_date is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateEqualTo(Date value) { public Criteria andUploadDateEqualTo(Date value) {
addCriterion("upload_date =", value, "uploadDate"); addCriterion("upload_date =", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateNotEqualTo(Date value) { public Criteria andUploadDateNotEqualTo(Date value) {
addCriterion("upload_date <>", value, "uploadDate"); addCriterion("upload_date <>", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateGreaterThan(Date value) { public Criteria andUploadDateGreaterThan(Date value) {
addCriterion("upload_date >", value, "uploadDate"); addCriterion("upload_date >", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateGreaterThanOrEqualTo(Date value) { public Criteria andUploadDateGreaterThanOrEqualTo(Date value) {
addCriterion("upload_date >=", value, "uploadDate"); addCriterion("upload_date >=", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateLessThan(Date value) { public Criteria andUploadDateLessThan(Date value) {
addCriterion("upload_date <", value, "uploadDate"); addCriterion("upload_date <", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateLessThanOrEqualTo(Date value) { public Criteria andUploadDateLessThanOrEqualTo(Date value) {
addCriterion("upload_date <=", value, "uploadDate"); addCriterion("upload_date <=", value, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateIn(List<Date> values) { public Criteria andUploadDateIn(List<Date> values) {
addCriterion("upload_date in", values, "uploadDate"); addCriterion("upload_date in", values, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateNotIn(List<Date> values) { public Criteria andUploadDateNotIn(List<Date> values) {
addCriterion("upload_date not in", values, "uploadDate"); addCriterion("upload_date not in", values, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateBetween(Date value1, Date value2) { public Criteria andUploadDateBetween(Date value1, Date value2) {
addCriterion("upload_date between", value1, value2, "uploadDate"); addCriterion("upload_date between", value1, value2, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadDateNotBetween(Date value1, Date value2) { public Criteria andUploadDateNotBetween(Date value1, Date value2) {
addCriterion("upload_date not between", value1, value2, "uploadDate"); addCriterion("upload_date not between", value1, value2, "uploadDate");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserIsNull() { public Criteria andUploadUserIsNull() {
addCriterion("upload_user is null"); addCriterion("upload_user is null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserIsNotNull() { public Criteria andUploadUserIsNotNull() {
addCriterion("upload_user is not null"); addCriterion("upload_user is not null");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserEqualTo(String value) { public Criteria andUploadUserEqualTo(String value) {
addCriterion("upload_user =", value, "uploadUser"); addCriterion("upload_user =", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserNotEqualTo(String value) { public Criteria andUploadUserNotEqualTo(String value) {
addCriterion("upload_user <>", value, "uploadUser"); addCriterion("upload_user <>", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserGreaterThan(String value) { public Criteria andUploadUserGreaterThan(String value) {
addCriterion("upload_user >", value, "uploadUser"); addCriterion("upload_user >", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserGreaterThanOrEqualTo(String value) { public Criteria andUploadUserGreaterThanOrEqualTo(String value) {
addCriterion("upload_user >=", value, "uploadUser"); addCriterion("upload_user >=", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserLessThan(String value) { public Criteria andUploadUserLessThan(String value) {
addCriterion("upload_user <", value, "uploadUser"); addCriterion("upload_user <", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserLessThanOrEqualTo(String value) { public Criteria andUploadUserLessThanOrEqualTo(String value) {
addCriterion("upload_user <=", value, "uploadUser"); addCriterion("upload_user <=", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserLike(String value) { public Criteria andUploadUserLike(String value) {
addCriterion("upload_user like", value, "uploadUser"); addCriterion("upload_user like", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserNotLike(String value) { public Criteria andUploadUserNotLike(String value) {
addCriterion("upload_user not like", value, "uploadUser"); addCriterion("upload_user not like", value, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserIn(List<String> values) { public Criteria andUploadUserIn(List<String> values) {
addCriterion("upload_user in", values, "uploadUser"); addCriterion("upload_user in", values, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserNotIn(List<String> values) { public Criteria andUploadUserNotIn(List<String> values) {
addCriterion("upload_user not in", values, "uploadUser"); addCriterion("upload_user not in", values, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserBetween(String value1, String value2) { public Criteria andUploadUserBetween(String value1, String value2) {
addCriterion("upload_user between", value1, value2, "uploadUser"); addCriterion("upload_user between", value1, value2, "uploadUser");
return (Criteria) this; return (Criteria) this;
} }
// 添加查询条件
public Criteria andUploadUserNotBetween(String value1, String value2) { public Criteria andUploadUserNotBetween(String value1, String value2) {
addCriterion("upload_user not between", value1, value2, "uploadUser"); addCriterion("upload_user not between", value1, value2, "uploadUser");
return (Criteria) this; return (Criteria) this;

@ -11,24 +11,17 @@ import javax.persistence.Version;
@Entity @Entity
@Table(name = "cd_bind") @Table(name = "cd_bind")
public class CdBind extends BaseMybatisModel { public class CdBind extends BaseMybatisModel {
/**
* // 主键ID
*/
private Integer id; private Integer id;
/** // 用户ID
* IDID
*/
private Integer userId; private Integer userId;
/** // 手机号
*
*/
private String phone; private String phone;
/** // 开放ID
*
*/
private String openId; private String openId;
@Column(name = "ID") @Column(name = "ID")

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdActivityAddress;
import com.xmomen.module.base.entity.CdActivityAddressExample; import com.xmomen.module.base.entity.CdActivityAddressExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdActivityAddressMapper extends MybatisMapper { public interface CdActivityAddressMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdActivityAddressExample example); int countByExample(CdActivityAddressExample example);
// 根据条件删除记录
int deleteByExample(CdActivityAddressExample example); int deleteByExample(CdActivityAddressExample example);
// 插入记录
int insertSelective(CdActivityAddress record); int insertSelective(CdActivityAddress record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdActivityAddress record, @Param("example") CdActivityAddressExample example); int updateByExampleSelective(@Param("record") CdActivityAddress record, @Param("example") CdActivityAddressExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdActivity;
import com.xmomen.module.base.entity.CdActivityExample; import com.xmomen.module.base.entity.CdActivityExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdActivityMapper extends MybatisMapper { public interface CdActivityMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdActivityExample example); int countByExample(CdActivityExample example);
// 根据条件删除记录
int deleteByExample(CdActivityExample example); int deleteByExample(CdActivityExample example);
// 插入记录
int insertSelective(CdActivity record); int insertSelective(CdActivity record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdActivity record, @Param("example") CdActivityExample example); int updateByExampleSelective(@Param("record") CdActivity record, @Param("example") CdActivityExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdActivityRef;
import com.xmomen.module.base.entity.CdActivityRefExample; import com.xmomen.module.base.entity.CdActivityRefExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdActivityRefMapper extends MybatisMapper { public interface CdActivityRefMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdActivityRefExample example); int countByExample(CdActivityRefExample example);
// 根据条件删除记录
int deleteByExample(CdActivityRefExample example); int deleteByExample(CdActivityRefExample example);
// 插入记录
int insertSelective(CdActivityRef record); int insertSelective(CdActivityRef record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdActivityRef record, @Param("example") CdActivityRefExample example); int updateByExampleSelective(@Param("record") CdActivityRef record, @Param("example") CdActivityRefExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdAttachment;
import com.xmomen.module.base.entity.CdAttachmentExample; import com.xmomen.module.base.entity.CdAttachmentExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdAttachmentMapper extends MybatisMapper { public interface CdAttachmentMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdAttachmentExample example); int countByExample(CdAttachmentExample example);
// 根据条件删除记录
int deleteByExample(CdAttachmentExample example); int deleteByExample(CdAttachmentExample example);
// 插入记录
int insertSelective(CdAttachment record); int insertSelective(CdAttachment record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdAttachment record, @Param("example") CdAttachmentExample example); int updateByExampleSelective(@Param("record") CdAttachment record, @Param("example") CdAttachmentExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdBind;
import com.xmomen.module.base.entity.CdBindExample; import com.xmomen.module.base.entity.CdBindExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 继承MybatisMapper接口
public interface CdBindMapper extends MybatisMapper { public interface CdBindMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdBindExample example); int countByExample(CdBindExample example);
// 根据条件删除记录
int deleteByExample(CdBindExample example); int deleteByExample(CdBindExample example);
// 插入记录
int insertSelective(CdBind record); int insertSelective(CdBind record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdBind record, @Param("example") CdBindExample example); int updateByExampleSelective(@Param("record") CdBind record, @Param("example") CdBindExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCategory;
import com.xmomen.module.base.entity.CdCategoryExample; import com.xmomen.module.base.entity.CdCategoryExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCategoryMapper extends MybatisMapper { public interface CdCategoryMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdCategoryExample example); int countByExample(CdCategoryExample example);
// 根据条件删除记录
int deleteByExample(CdCategoryExample example); int deleteByExample(CdCategoryExample example);
// 插入记录
int insertSelective(CdCategory record); int insertSelective(CdCategory record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdCategory record, @Param("example") CdCategoryExample example); int updateByExampleSelective(@Param("record") CdCategory record, @Param("example") CdCategoryExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCompany;
import com.xmomen.module.base.entity.CdCompanyExample; import com.xmomen.module.base.entity.CdCompanyExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCompanyMapper extends MybatisMapper { public interface CdCompanyMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdCompanyExample example); int countByExample(CdCompanyExample example);
// 根据条件删除记录
int deleteByExample(CdCompanyExample example); int deleteByExample(CdCompanyExample example);
// 插入记录
int insertSelective(CdCompany record); int insertSelective(CdCompany record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdCompany record, @Param("example") CdCompanyExample example); int updateByExampleSelective(@Param("record") CdCompany record, @Param("example") CdCompanyExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdContractItem;
import com.xmomen.module.base.entity.CdContractItemExample; import com.xmomen.module.base.entity.CdContractItemExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdContractItemMapper extends MybatisMapper { public interface CdContractItemMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdContractItemExample example); int countByExample(CdContractItemExample example);
// 根据条件删除记录
int deleteByExample(CdContractItemExample example); int deleteByExample(CdContractItemExample example);
// 插入记录
int insertSelective(CdContractItem record); int insertSelective(CdContractItem record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdContractItem record, @Param("example") CdContractItemExample example); int updateByExampleSelective(@Param("record") CdContractItem record, @Param("example") CdContractItemExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdContract;
import com.xmomen.module.base.entity.CdContractExample; import com.xmomen.module.base.entity.CdContractExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdContractMapper extends MybatisMapper { public interface CdContractMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdContractExample example); int countByExample(CdContractExample example);
// 根据条件删除记录
int deleteByExample(CdContractExample example); int deleteByExample(CdContractExample example);
// 插入记录
int insertSelective(CdContract record); int insertSelective(CdContract record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdContract record, @Param("example") CdContractExample example); int updateByExampleSelective(@Param("record") CdContract record, @Param("example") CdContractExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCouponCategory;
import com.xmomen.module.base.entity.CdCouponCategoryExample; import com.xmomen.module.base.entity.CdCouponCategoryExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCouponCategoryMapper extends MybatisMapper { public interface CdCouponCategoryMapper extends MybatisMapper {
// 根据条件统计数量
int countByExample(CdCouponCategoryExample example); int countByExample(CdCouponCategoryExample example);
// 根据条件删除
int deleteByExample(CdCouponCategoryExample example); int deleteByExample(CdCouponCategoryExample example);
// 插入数据
int insertSelective(CdCouponCategory record); int insertSelective(CdCouponCategory record);
// 根据条件更新数据
int updateByExampleSelective(@Param("record") CdCouponCategory record, @Param("example") CdCouponCategoryExample example); int updateByExampleSelective(@Param("record") CdCouponCategory record, @Param("example") CdCouponCategoryExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCouponCategoryRef;
import com.xmomen.module.base.entity.CdCouponCategoryRefExample; import com.xmomen.module.base.entity.CdCouponCategoryRefExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCouponCategoryRefMapper extends MybatisMapper { public interface CdCouponCategoryRefMapper extends MybatisMapper {
// 根据条件统计数量
int countByExample(CdCouponCategoryRefExample example); int countByExample(CdCouponCategoryRefExample example);
// 根据条件删除
int deleteByExample(CdCouponCategoryRefExample example); int deleteByExample(CdCouponCategoryRefExample example);
// 插入数据
int insertSelective(CdCouponCategoryRef record); int insertSelective(CdCouponCategoryRef record);
// 根据条件更新数据
int updateByExampleSelective(@Param("record") CdCouponCategoryRef record, @Param("example") CdCouponCategoryRefExample example); int updateByExampleSelective(@Param("record") CdCouponCategoryRef record, @Param("example") CdCouponCategoryRefExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCoupon;
import com.xmomen.module.base.entity.CdCouponExample; import com.xmomen.module.base.entity.CdCouponExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCouponMapper extends MybatisMapper { public interface CdCouponMapper extends MybatisMapper {
// 根据条件统计数量
int countByExample(CdCouponExample example); int countByExample(CdCouponExample example);
// 根据条件删除
int deleteByExample(CdCouponExample example); int deleteByExample(CdCouponExample example);
// 插入数据
int insertSelective(CdCoupon record); int insertSelective(CdCoupon record);
// 根据条件更新数据
int updateByExampleSelective(@Param("record") CdCoupon record, @Param("example") CdCouponExample example); int updateByExampleSelective(@Param("record") CdCoupon record, @Param("example") CdCouponExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdCouponRef;
import com.xmomen.module.base.entity.CdCouponRefExample; import com.xmomen.module.base.entity.CdCouponRefExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdCouponRefMapper extends MybatisMapper { public interface CdCouponRefMapper extends MybatisMapper {
// 根据条件统计数量
int countByExample(CdCouponRefExample example); int countByExample(CdCouponRefExample example);
// 根据条件删除
int deleteByExample(CdCouponRefExample example); int deleteByExample(CdCouponRefExample example);
// 插入数据
int insertSelective(CdCouponRef record); int insertSelective(CdCouponRef record);
// 根据条件更新数据
int updateByExampleSelective(@Param("record") CdCouponRef record, @Param("example") CdCouponRefExample example); int updateByExampleSelective(@Param("record") CdCouponRef record, @Param("example") CdCouponRefExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdExpress;
import com.xmomen.module.base.entity.CdExpressExample; import com.xmomen.module.base.entity.CdExpressExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdExpressMapper extends MybatisMapper { public interface CdExpressMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdExpressExample example); int countByExample(CdExpressExample example);
// 根据条件删除记录
int deleteByExample(CdExpressExample example); int deleteByExample(CdExpressExample example);
// 插入记录
int insertSelective(CdExpress record); int insertSelective(CdExpress record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdExpress record, @Param("example") CdExpressExample example); int updateByExampleSelective(@Param("record") CdExpress record, @Param("example") CdExpressExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdExpressMember;
import com.xmomen.module.base.entity.CdExpressMemberExample; import com.xmomen.module.base.entity.CdExpressMemberExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdExpressMemberMapper extends MybatisMapper { public interface CdExpressMemberMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdExpressMemberExample example); int countByExample(CdExpressMemberExample example);
// 根据条件删除记录
int deleteByExample(CdExpressMemberExample example); int deleteByExample(CdExpressMemberExample example);
// 插入记录
int insertSelective(CdExpressMember record); int insertSelective(CdExpressMember record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdExpressMember record, @Param("example") CdExpressMemberExample example); int updateByExampleSelective(@Param("record") CdExpressMember record, @Param("example") CdExpressMemberExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdItemDetail;
import com.xmomen.module.base.entity.CdItemDetailExample; import com.xmomen.module.base.entity.CdItemDetailExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdItemDetailMapper extends MybatisMapper { public interface CdItemDetailMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdItemDetailExample example); int countByExample(CdItemDetailExample example);
// 根据条件删除记录
int deleteByExample(CdItemDetailExample example); int deleteByExample(CdItemDetailExample example);
// 插入记录
int insertSelective(CdItemDetail record); int insertSelective(CdItemDetail record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdItemDetail record, @Param("example") CdItemDetailExample example); int updateByExampleSelective(@Param("record") CdItemDetail record, @Param("example") CdItemDetailExample example);
} }

@ -5,12 +5,19 @@ import com.xmomen.module.base.entity.CdItem;
import com.xmomen.module.base.entity.CdItemExample; import com.xmomen.module.base.entity.CdItemExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdItemMapper extends MybatisMapper { public interface CdItemMapper extends MybatisMapper {
// 根据条件统计CdItem数量
int countByExample(CdItemExample example); int countByExample(CdItemExample example);
// 根据条件删除CdItem
int deleteByExample(CdItemExample example); int deleteByExample(CdItemExample example);
// 插入CdItem
int insertSelective(CdItem record); int insertSelective(CdItem record);
// 根据条件更新CdItem
int updateByExampleSelective(@Param("record") CdItem record, @Param("example") CdItemExample example); int updateByExampleSelective(@Param("record") CdItem record, @Param("example") CdItemExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdItemRef;
import com.xmomen.module.base.entity.CdItemRefExample; import com.xmomen.module.base.entity.CdItemRefExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdItemRefMapper extends MybatisMapper { public interface CdItemRefMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdItemRefExample example); int countByExample(CdItemRefExample example);
// 根据条件删除记录
int deleteByExample(CdItemRefExample example); int deleteByExample(CdItemRefExample example);
// 插入记录
int insertSelective(CdItemRef record); int insertSelective(CdItemRef record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdItemRef record, @Param("example") CdItemRefExample example); int updateByExampleSelective(@Param("record") CdItemRef record, @Param("example") CdItemRefExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdManagerCompany;
import com.xmomen.module.base.entity.CdManagerCompanyExample; import com.xmomen.module.base.entity.CdManagerCompanyExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdManagerCompanyMapper extends MybatisMapper { public interface CdManagerCompanyMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdManagerCompanyExample example); int countByExample(CdManagerCompanyExample example);
// 根据条件删除记录
int deleteByExample(CdManagerCompanyExample example); int deleteByExample(CdManagerCompanyExample example);
// 插入记录
int insertSelective(CdManagerCompany record); int insertSelective(CdManagerCompany record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdManagerCompany record, @Param("example") CdManagerCompanyExample example); int updateByExampleSelective(@Param("record") CdManagerCompany record, @Param("example") CdManagerCompanyExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdMemberCouponRelation;
import com.xmomen.module.base.entity.CdMemberCouponRelationExample; import com.xmomen.module.base.entity.CdMemberCouponRelationExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdMemberCouponRelationMapper extends MybatisMapper { public interface CdMemberCouponRelationMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdMemberCouponRelationExample example); int countByExample(CdMemberCouponRelationExample example);
// 根据条件删除记录
int deleteByExample(CdMemberCouponRelationExample example); int deleteByExample(CdMemberCouponRelationExample example);
// 插入记录
int insertSelective(CdMemberCouponRelation record); int insertSelective(CdMemberCouponRelation record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdMemberCouponRelation record, @Param("example") CdMemberCouponRelationExample example); int updateByExampleSelective(@Param("record") CdMemberCouponRelation record, @Param("example") CdMemberCouponRelationExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdMember;
import com.xmomen.module.base.entity.CdMemberExample; import com.xmomen.module.base.entity.CdMemberExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdMemberMapper extends MybatisMapper { public interface CdMemberMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdMemberExample example); int countByExample(CdMemberExample example);
// 根据条件删除记录
int deleteByExample(CdMemberExample example); int deleteByExample(CdMemberExample example);
// 插入记录
int insertSelective(CdMember record); int insertSelective(CdMember record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdMember record, @Param("example") CdMemberExample example); int updateByExampleSelective(@Param("record") CdMember record, @Param("example") CdMemberExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdPlanItem;
import com.xmomen.module.base.entity.CdPlanItemExample; import com.xmomen.module.base.entity.CdPlanItemExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义CdPlanItemMapper接口继承MybatisMapper
public interface CdPlanItemMapper extends MybatisMapper { public interface CdPlanItemMapper extends MybatisMapper {
// 根据example统计CdPlanItem数量
int countByExample(CdPlanItemExample example); int countByExample(CdPlanItemExample example);
// 根据example删除CdPlanItem
int deleteByExample(CdPlanItemExample example); int deleteByExample(CdPlanItemExample example);
// 插入CdPlanItem
int insertSelective(CdPlanItem record); int insertSelective(CdPlanItem record);
// 根据example更新CdPlanItem
int updateByExampleSelective(@Param("record") CdPlanItem record, @Param("example") CdPlanItemExample example); int updateByExampleSelective(@Param("record") CdPlanItem record, @Param("example") CdPlanItemExample example);
} }

@ -5,12 +5,17 @@ import com.xmomen.module.base.entity.CdPlan;
import com.xmomen.module.base.entity.CdPlanExample; import com.xmomen.module.base.entity.CdPlanExample;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
// 定义一个接口继承MybatisMapper
public interface CdPlanMapper extends MybatisMapper { public interface CdPlanMapper extends MybatisMapper {
// 根据条件统计记录数
int countByExample(CdPlanExample example); int countByExample(CdPlanExample example);
// 根据条件删除记录
int deleteByExample(CdPlanExample example); int deleteByExample(CdPlanExample example);
// 插入记录
int insertSelective(CdPlan record); int insertSelective(CdPlan record);
// 根据条件更新记录
int updateByExampleSelective(@Param("record") CdPlan record, @Param("example") CdPlanExample example); int updateByExampleSelective(@Param("record") CdPlan record, @Param("example") CdPlanExample example);
} }
Loading…
Cancel
Save