Merge pull request '注释' (#5) from fl into qwer

qwer
pzobk9anl 4 weeks ago
commit 47d48b7e67

@ -17,11 +17,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid;
/**
* PickController
* 使 Spring @RestController RESTful
* HTTP JSON
*/
@RestController
public class PickController {
@ -33,16 +29,7 @@ public class PickController {
@Autowired
MybatisDao mybatisDao;
/**
* PUT "/pick/settleAccounts"
*
*
* @param pickVo @RequestBody
* 使 @Valid
* @param bindingResult
* @return PickService
* @throws ArgumentValidException bindingResult
*/
@RequestMapping(value = "/pick/settleAccounts", method = RequestMethod.PUT)
// 使用自定义日志注解记录操作名称
@Log(actionName = "采摘结算")
@ -56,16 +43,7 @@ public class PickController {
pickService.pick(pickVo);
}
/**
* PUT "/pick/pickCard"
*
*
* @param createMember @RequestBody
* 使 @Valid
* @param bindingResult
* @return PickService
* @throws ArgumentValidException bindingResult
*/
@RequestMapping(value = "/pick/pickCard", method = RequestMethod.PUT)
// 使用自定义日志注解记录操作名称
@Log(actionName = "办新卡")

@ -4,10 +4,7 @@ import com.xmomen.framework.mybatis.model.BaseMybatisExample;
import java.util.ArrayList;
import java.util.List;
/**
* TbExchangeCardLogExample TbExchangeCardLog
* BaseMybatisExample SQL WHERE
*/
public class TbExchangeCardLogExample extends BaseMybatisExample {
// 用于指定查询结果的排序规则,例如 "ID ASC"
protected String orderByClause;
@ -16,75 +13,49 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
// 存储多个查询条件集合,每个 Criteria 代表一组 AND 条件,多个 Criteria 之间是 OR 关系
protected List<Criteria> oredCriteria;
/**
* oredCriteria
*/
public TbExchangeCardLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
*
* @param orderByClause "ID ASC"
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
*
* @return
*/
public String getOrderByClause() {
return orderByClause;
}
/**
*
* @param distinct
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
*
* @return
*/
public boolean isDistinct() {
return distinct;
}
/**
*
* @return
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* OR
* @param criteria
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* OR
* @return
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* oredCriteria
* @return
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
@ -93,67 +64,46 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
return criteria;
}
/**
*
* @return
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
*
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* GeneratedCriteria
*/
protected abstract static class GeneratedCriteria {
// 存储具体的查询条件
protected List<Criterion> criteria;
/**
* criteria
*/
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
/**
*
* @return true false
*/
public boolean isValid() {
return criteria.size() > 0;
}
/**
*
* @return
*/
public List<Criterion> getAllCriteria() {
return criteria;
}
/**
*
* @return
*/
public List<Criterion> getCriteria() {
return criteria;
}
/**
* "ID is null"
* @param condition
*/
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
@ -161,12 +111,7 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
* "ID = 1"
* @param condition
* @param value
* @param property
*/
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
@ -174,13 +119,7 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value));
}
/**
* "ID between 1 and 10"
* @param condition
* @param value1
* @param value2
* @param property
*/
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
@ -190,29 +129,19 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
// 以下是针对各个字段的查询条件生成方法,例如判断字段是否为空、等于某个值、大于某个值等
/**
* ID
* @return
*/
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
/**
* ID
* @return
*/
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
/**
* ID
* @param value
* @return
*/
public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
@ -220,10 +149,7 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
// 其他针对 ID 字段的条件生成方法,如不等于、大于、小于等
/**
* OLD_COUPON_ID
* @return
*/
public Criteria andOldCouponIdIsNull() {
addCriterion("OLD_COUPON_ID is null");
return (Criteria) this;
@ -235,22 +161,16 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
}
/**
* Criteria GeneratedCriteria
*/
public static class Criteria extends GeneratedCriteria {
/**
*
*/
protected Criteria() {
super();
}
}
/**
* Criterion
*/
public static class Criterion {
// 查询条件的字符串表示,例如 "ID = "
private String condition;
@ -269,74 +189,47 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
// 类型处理器,用于处理特殊类型的值
private String typeHandler;
/**
*
* @return
*/
public String getCondition() {
return condition;
}
/**
*
* @return
*/
public Object getValue() {
return value;
}
/**
*
* @return
*/
public Object getSecondValue() {
return secondValue;
}
/**
*
* @return true false
*/
public boolean isNoValue() {
return noValue;
}
/**
*
* @return true false
*/
public boolean isSingleValue() {
return singleValue;
}
/**
*
* @return true false
*/
public boolean isBetweenValue() {
return betweenValue;
}
/**
*
* @return true false
*/
public boolean isListValue() {
return listValue;
}
/**
*
* @return
*/
public String getTypeHandler() {
return typeHandler;
}
/**
*
* @param condition
*/
protected Criterion(String condition) {
super();
this.condition = condition;
@ -344,12 +237,7 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
this.noValue = true;
}
/**
*
* @param condition
* @param value
* @param typeHandler
*/
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
@ -362,22 +250,12 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
}
}
/**
*
* @param condition
* @param value
*/
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
/**
*
* @param condition
* @param value
* @param secondValue
* @param typeHandler
*/
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
@ -387,12 +265,7 @@ public class TbExchangeCardLogExample extends BaseMybatisExample {
this.betweenValue = true;
}
/**
*
* @param condition
* @param value
* @param secondValue
*/
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}

@ -10,71 +10,51 @@ import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
/**
* TbPick tb_pick
* BaseMybatisModel
* 使 JPA 便
*/
@Entity
@Table(name = "tb_pick")
public class TbPick extends BaseMybatisModel {
/**
*
*/
// 主键
private Integer id;
/**
*
*/
// 优惠券编号
private String couponNo;
/**
* 使 BigDecimal
*/
// 拣货重量
private BigDecimal pickWeight;
/**
*
* 1 -
* 2 - +
* 3 -
*/
// 拣货支付类型
private Integer pickPayType;
/**
* 使 BigDecimal
*/
// 拣货总价
private BigDecimal pickTotalPrice;
/**
* 使使 BigDecimal
*/
// 拣货卡费
private BigDecimal pickCradPrice;
/**
* 使使 BigDecimal
*/
// 拣货箱费
private BigDecimal pickCasePrice;
/**
*
*/
// 拣货日期
private Date pickDate;
/**
*
*/
// 拣货地点
private Integer pickPlace;
/**
*
*/
// 拣货地点用户
private Integer pickPlaceUser;
/**
*
* @return
*/
@Column(name = "ID")
@Id
@GeneratedValue(generator = "UUIDGenerator")
@ -82,12 +62,7 @@ public class TbPick extends BaseMybatisModel {
return id;
}
/**
*
* null
*
* @param id
*/
public void setId(Integer id) {
this.id = id;
if(id == null){
@ -99,21 +74,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("id");
}
/**
*
* @return
*/
@Column(name = "COUPON_NO")
public String getCouponNo() {
return couponNo;
}
/**
*
* null
*
* @param couponNo
*/
public void setCouponNo(String couponNo) {
this.couponNo = couponNo;
if(couponNo == null){
@ -125,21 +92,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("couponNo");
}
/**
*
* @return BigDecimal
*/
@Column(name = "PICK_WEIGHT")
public BigDecimal getPickWeight() {
return pickWeight;
}
/**
*
* null
*
* @param pickWeight
*/
public void setPickWeight(BigDecimal pickWeight) {
this.pickWeight = pickWeight;
if(pickWeight == null){
@ -151,21 +110,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickWeight");
}
/**
*
* @return
*/
@Column(name = "PICK_PAY_TYPE")
public Integer getPickPayType() {
return pickPayType;
}
/**
*
* null
*
* @param pickPayType
*/
public void setPickPayType(Integer pickPayType) {
this.pickPayType = pickPayType;
if(pickPayType == null){
@ -177,21 +128,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickPayType");
}
/**
*
* @return BigDecimal
*/
@Column(name = "PICK_TOTAL_PRICE")
public BigDecimal getPickTotalPrice() {
return pickTotalPrice;
}
/**
*
* null
*
* @param pickTotalPrice
*/
public void setPickTotalPrice(BigDecimal pickTotalPrice) {
this.pickTotalPrice = pickTotalPrice;
if(pickTotalPrice == null){
@ -203,21 +146,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickTotalPrice");
}
/**
*
* @return BigDecimal
*/
@Column(name = "PICK_CRAD_PRICE")
public BigDecimal getPickCradPrice() {
return pickCradPrice;
}
/**
*
* null
*
* @param pickCradPrice
*/
public void setPickCradPrice(BigDecimal pickCradPrice) {
this.pickCradPrice = pickCradPrice;
if(pickCradPrice == null){
@ -229,21 +164,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickCradPrice");
}
/**
*
* @return BigDecimal
*/
@Column(name = "PICK_CASE_PRICE")
public BigDecimal getPickCasePrice() {
return pickCasePrice;
}
/**
*
* null
*
* @param pickCasePrice
*/
public void setPickCasePrice(BigDecimal pickCasePrice) {
this.pickCasePrice = pickCasePrice;
if(pickCasePrice == null){
@ -255,21 +182,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickCasePrice");
}
/**
*
* @return Date
*/
@Column(name = "PICK_DATE")
public Date getPickDate() {
return pickDate;
}
/**
*
* null
*
* @param pickDate
*/
public void setPickDate(Date pickDate) {
this.pickDate = pickDate;
if(pickDate == null){
@ -281,21 +200,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickDate");
}
/**
*
* @return
*/
@Column(name = "PICK_PLACE")
public Integer getPickPlace() {
return pickPlace;
}
/**
*
* null
*
* @param pickPlace
*/
public void setPickPlace(Integer pickPlace) {
this.pickPlace = pickPlace;
if(pickPlace == null){
@ -307,21 +218,13 @@ public class TbPick extends BaseMybatisModel {
addValidField("pickPlace");
}
/**
*
* @return
*/
@Column(name = "PICK_PLACE_USER")
public Integer getPickPlaceUser() {
return pickPlaceUser;
}
/**
*
* null
*
* @param pickPlaceUser
*/
public void setPickPlaceUser(Integer pickPlaceUser) {
this.pickPlaceUser = pickPlaceUser;
if(pickPlaceUser == null){

@ -19,75 +19,49 @@ public class TbPickExample extends BaseMybatisExample {
// 存储多个查询条件集合,每个 Criteria 代表一组 AND 条件,多个 Criteria 之间是 OR 关系
protected List<Criteria> oredCriteria;
/**
* oredCriteria
*/
public TbPickExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
*
* @param orderByClause "ID ASC"
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
*
* @return
*/
public String getOrderByClause() {
return orderByClause;
}
/**
*
* @param distinct
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
*
* @return
*/
public boolean isDistinct() {
return distinct;
}
/**
*
* @return
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* OR
* @param criteria
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* OR
* @return
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* oredCriteria
* @return
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
@ -96,67 +70,46 @@ public class TbPickExample extends BaseMybatisExample {
return criteria;
}
/**
*
* @return
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
*
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* GeneratedCriteria
*/
protected abstract static class GeneratedCriteria {
// 存储具体的查询条件
protected List<Criterion> criteria;
/**
* criteria
*/
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
/**
*
* @return true false
*/
public boolean isValid() {
return criteria.size() > 0;
}
/**
*
* @return
*/
public List<Criterion> getAllCriteria() {
return criteria;
}
/**
*
* @return
*/
public List<Criterion> getCriteria() {
return criteria;
}
/**
* "ID is null"
* @param condition
*/
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
@ -164,12 +117,7 @@ public class TbPickExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
* "ID = 1"
* @param condition
* @param value
* @param property
*/
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
@ -177,13 +125,7 @@ public class TbPickExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value));
}
/**
* "ID between 1 and 10"
* @param condition
* @param value1
* @param value2
* @param property
*/
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
@ -193,29 +135,19 @@ public class TbPickExample extends BaseMybatisExample {
// 以下是针对 TbPick 表各个字段的查询条件生成方法
/**
* ID
* @return
*/
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
/**
* ID
* @return
*/
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
/**
* ID
* @param value
* @return
*/
public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
@ -223,10 +155,7 @@ public class TbPickExample extends BaseMybatisExample {
// 其他针对 ID 字段的条件生成方法,如不等于、大于、小于等
/**
* COUPON_NO
* @return
*/
public Criteria andCouponNoIsNull() {
addCriterion("COUPON_NO is null");
return (Criteria) this;
@ -238,22 +167,16 @@ public class TbPickExample extends BaseMybatisExample {
}
/**
* Criteria GeneratedCriteria
*/
public static class Criteria extends GeneratedCriteria {
/**
*
*/
protected Criteria() {
super();
}
}
/**
* Criterion
*/
public static class Criterion {
// 查询条件的字符串表示,例如 "ID = "
private String condition;
@ -272,74 +195,47 @@ public class TbPickExample extends BaseMybatisExample {
// 类型处理器,用于处理特殊类型的值
private String typeHandler;
/**
*
* @return
*/
public String getCondition() {
return condition;
}
/**
*
* @return
*/
public Object getValue() {
return value;
}
/**
*
* @return
*/
public Object getSecondValue() {
return secondValue;
}
/**
*
* @return true false
*/
public boolean isNoValue() {
return noValue;
}
/**
*
* @return true false
*/
public boolean isSingleValue() {
return singleValue;
}
/**
*
* @return true false
*/
public boolean isBetweenValue() {
return betweenValue;
}
/**
*
* @return true false
*/
public boolean isListValue() {
return listValue;
}
/**
*
* @return
*/
public String getTypeHandler() {
return typeHandler;
}
/**
*
* @param condition
*/
protected Criterion(String condition) {
super();
this.condition = condition;
@ -347,12 +243,7 @@ public class TbPickExample extends BaseMybatisExample {
this.noValue = true;
}
/**
*
* @param condition
* @param value
* @param typeHandler
*/
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
@ -365,22 +256,12 @@ public class TbPickExample extends BaseMybatisExample {
}
}
/**
*
* @param condition
* @param value
*/
public Criterion(String condition, Object value) {
this(condition, value, null);
}
/**
*
* @param condition
* @param value
* @param secondValue
* @param typeHandler
*/
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
@ -390,12 +271,7 @@ public class TbPickExample extends BaseMybatisExample {
this.betweenValue = true;
}
/**
*
* @param condition
* @param value
* @param secondValue
*/
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}

@ -17,41 +17,25 @@ import javax.persistence.Version;
@Entity
@Table(name = "tb_recharge_log")
public class TbRechargeLog extends BaseMybatisModel {
/**
*
*/
private Integer id;
/**
* 使
*/
private String couponNo;
/**
* 使 BigDecimal
*/
private BigDecimal rechargePrice;
/**
*
*/
private Date rechargeDate;
/**
*
*/
private Integer rechargeUser;
/**
*
*/
private Integer rechargePlace;
/**
* ID
*
* @return ID
*/
@Column(name = "ID")
@Id
@GeneratedValue(generator = "UUIDGenerator")
@ -59,13 +43,7 @@ public class TbRechargeLog extends BaseMybatisModel {
return id;
}
/**
* ID
* ID null
*
*
* @param id ID
*/
public void setId(Integer id) {
this.id = id;
if (id == null) {
@ -77,23 +55,13 @@ public class TbRechargeLog extends BaseMybatisModel {
addValidField("id");
}
/**
* 使
*
* @return 使
*/
@Column(name = "COUPON_NO")
public String getCouponNo() {
return couponNo;
}
/**
* 使
* null
*
*
* @param couponNo 使
*/
public void setCouponNo(String couponNo) {
this.couponNo = couponNo;
if (couponNo == null) {
@ -105,23 +73,13 @@ public class TbRechargeLog extends BaseMybatisModel {
addValidField("couponNo");
}
/**
*
*
* @return
*/
@Column(name = "RECHARGE_PRICE")
public BigDecimal getRechargePrice() {
return rechargePrice;
}
/**
*
* null
*
*
* @param rechargePrice
*/
public void setRechargePrice(BigDecimal rechargePrice) {
this.rechargePrice = rechargePrice;
if (rechargePrice == null) {
@ -133,23 +91,13 @@ public class TbRechargeLog extends BaseMybatisModel {
addValidField("rechargePrice");
}
/**
*
*
* @return
*/
@Column(name = "RECHARGE_DATE")
public Date getRechargeDate() {
return rechargeDate;
}
/**
*
* null
*
*
* @param rechargeDate
*/
public void setRechargeDate(Date rechargeDate) {
this.rechargeDate = rechargeDate;
if (rechargeDate == null) {
@ -161,23 +109,13 @@ public class TbRechargeLog extends BaseMybatisModel {
addValidField("rechargeDate");
}
/**
*
*
* @return
*/
@Column(name = "RECHARGE_USER")
public Integer getRechargeUser() {
return rechargeUser;
}
/**
*
* null
*
*
* @param rechargeUser
*/
public void setRechargeUser(Integer rechargeUser) {
this.rechargeUser = rechargeUser;
if (rechargeUser == null) {
@ -189,23 +127,13 @@ public class TbRechargeLog extends BaseMybatisModel {
addValidField("rechargeUser");
}
/**
*
*
* @return
*/
@Column(name = "RECHARGE_PLACE")
public Integer getRechargePlace() {
return rechargePlace;
}
/**
*
* null
*
*
* @param rechargePlace
*/
public void setRechargePlace(Integer rechargePlace) {
this.rechargePlace = rechargePlace;
if (rechargePlace == null) {

@ -19,75 +19,49 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 存储多个查询条件集合,每个 Criteria 代表一组 AND 条件,多个 Criteria 之间是 OR 关系
protected List<Criteria> oredCriteria;
/**
* oredCriteria
*/
public TbRechargeLogExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
*
* @param orderByClause "ID ASC"
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
*
* @return
*/
public String getOrderByClause() {
return orderByClause;
}
/**
*
* @param distinct
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
*
* @return
*/
public boolean isDistinct() {
return distinct;
}
/**
*
* @return
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* OR
* @param criteria
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* OR
* @return
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* oredCriteria
* @return
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
@ -96,67 +70,46 @@ public class TbRechargeLogExample extends BaseMybatisExample {
return criteria;
}
/**
*
* @return
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
*
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* GeneratedCriteria
*/
protected abstract static class GeneratedCriteria {
// 存储具体的查询条件
protected List<Criterion> criteria;
/**
* criteria
*/
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
/**
*
* @return true false
*/
public boolean isValid() {
return criteria.size() > 0;
}
/**
*
* @return
*/
public List<Criterion> getAllCriteria() {
return criteria;
}
/**
*
* @return
*/
public List<Criterion> getCriteria() {
return criteria;
}
/**
* "ID is null"
* @param condition
*/
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
@ -164,12 +117,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
* "ID = 1"
* @param condition
* @param value
* @param property
*/
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
@ -177,13 +125,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
criteria.add(new Criterion(condition, value));
}
/**
* "ID between 1 and 10"
* @param condition
* @param value1
* @param value2
* @param property
*/
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
@ -193,29 +135,19 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 以下是针对 TbRechargeLog 表各个字段的查询条件生成方法
/**
* ID
* @return
*/
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
}
/**
* ID
* @return
*/
public Criteria andIdIsNotNull() {
addCriterion("ID is not null");
return (Criteria) this;
}
/**
* ID
* @param value
* @return
*/
public Criteria andIdEqualTo(Integer value) {
addCriterion("ID =", value, "id");
return (Criteria) this;
@ -223,10 +155,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 其他针对 ID 字段的条件生成方法,如不等于、大于、小于等
/**
* COUPON_NO
* @return
*/
public Criteria andCouponNoIsNull() {
addCriterion("COUPON_NO is null");
return (Criteria) this;
@ -234,10 +163,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 其他针对 COUPON_NO 字段的条件生成方法
/**
* RECHARGE_PRICE
* @return
*/
public Criteria andRechargePriceIsNull() {
addCriterion("RECHARGE_PRICE is null");
return (Criteria) this;
@ -245,10 +171,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 其他针对 RECHARGE_PRICE 字段的条件生成方法
/**
* RECHARGE_DATE
* @return
*/
public Criteria andRechargeDateIsNull() {
addCriterion("RECHARGE_DATE is null");
return (Criteria) this;
@ -256,10 +179,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 其他针对 RECHARGE_DATE 字段的条件生成方法
/**
* RECHARGE_USER
* @return
*/
public Criteria andRechargeUserIsNull() {
addCriterion("RECHARGE_USER is null");
return (Criteria) this;
@ -267,10 +187,7 @@ public class TbRechargeLogExample extends BaseMybatisExample {
// 其他针对 RECHARGE_USER 字段的条件生成方法
/**
* RECHARGE_PLACE
* @return
*/
public Criteria andRechargePlaceIsNull() {
addCriterion("RECHARGE_PLACE is null");
return (Criteria) this;
@ -280,22 +197,16 @@ public class TbRechargeLogExample extends BaseMybatisExample {
}
/**
* Criteria GeneratedCriteria
*/
public static class Criteria extends GeneratedCriteria {
/**
*
*/
protected Criteria() {
super();
}
}
/**
* Criterion
*/
public static class Criterion {
// 查询条件的字符串表示,例如 "ID = "
private String condition;

@ -3,22 +3,39 @@ package com.xmomen.module.pick.model;
import java.math.BigDecimal;
public class CreateMember {
// 新优惠券号
private String newCouponNo;
// 新密码
private String newPassword;
// 会员类型
private Integer memberType;
// 姓名
private String name;
// 电话号码
private String phoneNumber;
// 备用姓名
private String spareName;
// 备用姓名2
private String spareName2;
// 备用电话
private String spareTel;
// 备用电话2
private String spareTel2;
// 固定电话
private String telNumber;
// 办公电话
private String officeTel;
// 地址
private String address;
// 备用地址
private String spareAddress;
// 备用地址2
private String spareAddress2;
// 公司ID
private Integer cdCompanyId;
// 用户ID
private Integer cdUserId;
// 用户价格
private BigDecimal userPrice;
// Getters and Setters

@ -7,9 +7,14 @@ import lombok.Data;
public @Data
class PickVo implements Serializable{
// 拣货重量
private BigDecimal pickWeight;
// 拣货价格
private BigDecimal pickPrice;
// 拣货支付类型
private Integer pickPayType;
// 拣货箱价
private BigDecimal pickCasePrice;
// 优惠券编号
private String couponNo;
}

@ -47,15 +47,7 @@ public class TablePlanController {
@Autowired
MybatisDao mybatisDao;
/**
*
* @param limit
* @param offset
* @param id ID
* @param keyword
* @param phoneNumber
* @return
*/
@RequestMapping(value = "/tablePlan", method = RequestMethod.GET)
@Log(actionName = "查询餐桌信息")
public Page<TablePlanModel> getTablePlanList(@RequestParam(value = "limit") Integer limit,
@ -84,12 +76,7 @@ public class TablePlanController {
return (Page<TablePlanModel>) mybatisDao.selectPage(TablePlanMapper.TablePlanMapperNameSpace + "getTablePlanList", map, limit, offset);
}
/**
*
* @param createTablePlan
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/tablePlan", method = RequestMethod.POST)
@Log(actionName = "新增餐桌")
public void createTablePlan(@RequestBody @Valid CreateTablePlan createTablePlan, BindingResult bindingResult) throws ArgumentValidException {
@ -102,11 +89,7 @@ public class TablePlanController {
tablePlanService.createTablePlan(createTablePlan);
}
/**
* ID
* @param id ID
* @return
*/
@RequestMapping(value = "/tablePlan/{id}", method = RequestMethod.GET)
@Log(actionName = "根据ID查询餐桌信息")
public TablePlanModel getTablePlan(@PathVariable(value = "id") Integer id) {
@ -118,13 +101,7 @@ public class TablePlanController {
return mybatisDao.getSqlSessionTemplate().selectOne(TablePlanMapper.TablePlanMapperNameSpace + "getTablePlanList", map);
}
/**
*
* @param id ID
* @param updateTablePlan
* @param bindingResult
* @throws ArgumentValidException
*/
@RequestMapping(value = "/tablePlan/{id}", method = RequestMethod.PUT)
@Log(actionName = "修改餐桌信息")
public void updateTablePlan(@PathVariable(value = "id") Integer id,
@ -138,10 +115,7 @@ public class TablePlanController {
tablePlanService.updateTablePlan(id, updateTablePlan);
}
/**
*
* @param id ID
*/
@RequestMapping(value = "/tablePlan/{id}", method = RequestMethod.DELETE)
@Log(actionName = "删除餐桌信息")
public void deleteTablePlan(@PathVariable(value = "id") Integer id) {
@ -149,11 +123,7 @@ public class TablePlanController {
tablePlanService.delete(id);
}
/**
*
* @param id ID
* @param locked truefalse
*/
@RequestMapping(value = "/tablePlan/{id}/stop", method = RequestMethod.PUT)
@Log(actionName = "暂停配送")
public void stop(@PathVariable(value = "id") Integer id,
@ -168,9 +138,7 @@ public class TablePlanController {
mybatisDao.update(tablePlan);
}
/**
*
*/
@RequestMapping(value = "/tablePlan/createPlanOrder", method = RequestMethod.PUT)
@Log(actionName = "手工调用")
public void createPlanOrder() {

@ -23,77 +23,49 @@ public class TbTablePlanExample extends BaseMybatisExample {
// 多个Criteria之间是逻辑或OR的关系
protected List<Criteria> oredCriteria;
/**
* oredCriteria
*/
public TbTablePlanExample() {
oredCriteria = new ArrayList<Criteria>();
}
/**
*
* @param orderByClause "column_name ASC" "column_name DESC"
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
*
* @return
*/
public String getOrderByClause() {
return orderByClause;
}
/**
*
* @param distinct truefalse
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
*
* @return truefalse
*/
public boolean isDistinct() {
return distinct;
}
/**
*
* @return CriteriaCriteria
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* oredCriteriaOR
* @param criteria
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* oredCriteria
* 便
* @return
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* oredCriteria
* 便
* @return
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
@ -102,69 +74,47 @@ public class TbTablePlanExample extends BaseMybatisExample {
return criteria;
}
/**
*
* @return
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* TbTablePlanExample
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
*
*
*/
protected abstract static class GeneratedCriteria {
// 存储具体的查询条件每个Criterion对象代表一个条件
protected List<Criterion> criteria;
/**
* criteria
*/
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
/**
*
* @return truefalse
*/
public boolean isValid() {
return criteria.size() > 0;
}
/**
*
* @return CriterionCriterion
*/
public List<Criterion> getAllCriteria() {
return criteria;
}
/**
*
* @return CriterionCriterion
*/
public List<Criterion> getCriteria() {
return criteria;
}
/**
* "column_name is null"
* @param condition
*/
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
@ -172,12 +122,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
* "column_name = value"
* @param condition
* @param value
* @param property
*/
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
@ -185,13 +130,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
* "column_name between value1 and value2"
* @param condition
* @param value1
* @param value2
* @param property
*/
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
@ -199,13 +138,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
criteria.add(new Criterion(condition));
}
/**
*
* JavaDateJDBCDate
* @param condition
* @param value
* @param property
*/
protected void addCriterionForJDBCDate(String condition, Date value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
@ -213,13 +146,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
addCriterion(condition, new java.sql.Date(value.getTime()), property);
}
/**
*
* JavaDateJDBCDate
* @param condition
* @param values
* @param property
*/
protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
if (values == null || values.size() == 0) {
throw new RuntimeException("Value list for " + property + " cannot be null or empty");
@ -232,14 +159,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
addCriterion(condition, dateList, property);
}
/**
*
* JavaDateJDBCDate
* @param condition
* @param value1
* @param value2
* @param property
*/
protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
@ -249,10 +169,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
// 以下是针对TbTablePlan实体的各个字段生成的具体查询条件方法例如针对id字段的查询条件
/**
* "ID is null"
* @return 便
*/
public Criteria andIdIsNull() {
addCriterion("ID is null");
return (Criteria) this;
@ -264,14 +181,10 @@ public class TbTablePlanExample extends BaseMybatisExample {
}
/**
* GeneratedCriteria
*/
public static class Criteria extends GeneratedCriteria {
/**
*
*/
protected Criteria() {
super();
}
@ -280,9 +193,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
}
}
/**
*
*/
public static class Criterion {
// 查询条件字符串,例如 "column_name = value" 中的 "column_name ="
@ -311,10 +222,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
// 以下是获取各个属性值的方法
/**
*
* @return
*/
public String getCondition() {
return condition;
}
@ -325,10 +233,7 @@ public class TbTablePlanExample extends BaseMybatisExample {
// 以下是不同参数的构造函数用于创建Criterion对象
/**
*
* @param condition
*/
protected Criterion(String condition) {
super();
this.condition = condition;

@ -17,71 +17,43 @@ import lombok.Data;
@Data
public class CreateTablePlan implements Serializable {
/**
*
* ID
*
*/
// 创建餐桌计划的ID
private Integer cdPlanId;
/**
* 0 1
*
*
*/
// 审核状态
private Integer auditStatus;
/**
* 0 1
*
*
*/
// 是否停止
private Integer isStop;
/**
*
* ID
* 便
*/
// 创建餐桌计划的会员ID
private Integer cdMemberId;
/**
*
*
*
*/
// 优惠券号码
private String couponNumber;
/**
*
*
*
*/
// 收货人电话
private String consigneePhone;
/**
*
*
*/
// 收货人姓名
private String consigneeName;
/**
*
*
*/
// 收货人地址
private String consigneeAddress;
/**
*
*
* 使 ID
*/
// 创建餐桌计划的ID列表
private List<Integer> cdPlanIds;
/**
* TbTablePlan
*
*
*/
// 餐桌计划列表
private List<TbTablePlan> tablePlans;
}

@ -18,55 +18,43 @@ import org.hibernate.validator.constraints.NotBlank;
*/
@Data
public class UpdateTablePlan implements Serializable {
/**
*
*/
// 计划ID
private Integer cdPlanId;
/**
* 01
*
*/
// 审核状态
private Integer auditStatus;
/**
* 01
*
*/
// 是否停用
private Integer isStop;
/**
*
*/
// 会员ID
private Integer cdMemberId;
/**
*
*/
// 优惠券编号
private String couponNumber;
/**
*
*/
// 收货人电话
private String consigneePhone;
/**
*
*/
// 收货人姓名
private String consigneeName;
/**
*
*/
// 收货人地址
private String consigneeAddress;
/**
*
*/
// 开始时间
private Date beginTime;
/**
*
*/
// 发送星期
private String sendWeekDay;
}

@ -21,11 +21,7 @@ public class CategoryController {
@Autowired
private CategoryService categoryService;
/**
* GET"/wx/category"
*
* @return CategoryModel
*/
@RequestMapping(value = "/category", method = RequestMethod.GET)
// 将返回的对象直接转换为JSON格式的数据返回给客户端
@ResponseBody

@ -23,58 +23,44 @@ public class Category extends BaseMybatisModel {
// 父类别ID用于表示类别之间的层级关系
private Integer parentId;
/**
* ID
* @return ID
*/
// 获取类别ID
public Integer getId() {
return id;
}
/**
* ID
* @param id ID
*/
// 设置类别ID
public void setId(Integer id) {
this.id = id;
}
/**
*
* @return
*/
// 获取类别名称
public String getName() {
return name;
}
/**
*
* @param name
*/
// 设置类别名称
public void setName(String name) {
this.name = name;
}
/**
* ID
* @return ID
*/
// 获取父类别ID
public Integer getParentId() {
return parentId;
}
/**
* ID
* @param parentId ID
*/
// 设置父类别ID
public void setParentId(Integer parentId) {
this.parentId = parentId;
}
/**
* toString便
* @return IDID
*/
// 重写toString方法用于输出Category对象的字符串表示
@Override
public String toString() {
// 使用StringBuilder来构建字符串提高性能

@ -17,56 +17,34 @@ public enum ProductQueryFilter {
// 查询条件,可能用于构建更复杂的 SQL 查询,初始值可为 null
private String condition;
/**
* null
* @param desc
* @param fieldName
*/
ProductQueryFilter(String desc, String fieldName) {
this(desc, fieldName, null);
}
/**
*
* @param desc
* @param fieldName
* @param condition
*/
ProductQueryFilter(String desc, String fieldName, String condition) {
this.desc = desc;
this.fieldName = fieldName;
this.condition = condition;
}
/**
*
* @return
*/
public String getDesc() {
return this.desc;
}
/**
*
* @return
*/
public String getFieldName() {
return this.fieldName;
}
/**
*
* @return
*/
public String getCondition() {
return this.condition;
}
/**
* ProductQueryFilter
* @param desc
* @return null
*/
public static ProductQueryFilter enumOf(String desc) {
// 获取所有的 ProductQueryFilter 枚举实例
ProductQueryFilter[] filters = ProductQueryFilter.values();

@ -26,10 +26,7 @@ public class CategoryServiceImpl implements CategoryService {
@Autowired
MybatisDao mybatisDao;
/**
* CategoryModel
* @return CategoryModel
*/
public List<CategoryModel> getAllProductCategory() {
// 调用 MyBatis 的 SQLSessionTemplate 执行查询,获取所有产品类别的 Category 实体列表
List<Category> categoryList = mybatisDao.getSqlSessionTemplate().selectList(ProductCategoryMapper.ProductCategoryMapperNameSpace + "getProductCategoryList");

@ -28,13 +28,7 @@ public class ProductServiceImpl implements ProductService {
@Autowired
MybatisDao mybatisDao;
/**
*
* @param productQuery
* @param limit
* @param offset
* @return
*/
@SuppressWarnings("unchecked")
@Override
public Page<ProductModel> getProductList(ProductQuery productQuery, Integer limit, Integer offset) {
@ -62,11 +56,7 @@ public class ProductServiceImpl implements ProductService {
return pageModel;
}
/**
* ID
* @param id ID
* @return ProductModel null
*/
@Override
public ProductModel getDetailById(Integer id) {
// 调用 MyBatis 的查询方法,根据产品 ID 获取产品详细信息列表
@ -122,11 +112,7 @@ public class ProductServiceImpl implements ProductService {
return null;
}
/**
* ID
* @param itemIds ID
* @return ID
*/
@Override
public List<ProductModel> getProducts(List<Integer> itemIds) {
// 如果产品 ID 列表为空

Loading…
Cancel
Save