Merge branch 'main' of http://118.31.7.2:3000/tzjy-code/digital_trade
# Conflicts: # src/main/java/com/sztzjy/trade/controller/stu/StuGoodsTradingCenterController.java # src/main/java/com/sztzjy/trade/entity/StuGoodsOrderInfo.java # src/main/java/com/sztzjy/trade/mapper/StuGoodsOrderInfoMapper.java # src/main/java/com/sztzjy/trade/service/impl/StuGoodsTradingCenterServiceImpl.java # src/main/resources/mappers/StuGoodsOrderInfoMapper.xmlmain
commit
023927f3a1
@ -0,0 +1,17 @@
|
||||
package com.sztzjy.trade.controller.stu;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/10/28 16:12
|
||||
*/
|
||||
@RequestMapping("api/stu/goodsManage")
|
||||
@RestController
|
||||
@Api(tags = "商品管理中心")
|
||||
public class StuCommodityManageController {
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,130 @@
|
||||
package com.sztzjy.trade.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.UUID;
|
||||
|
||||
import com.sztzjy.trade.mapper.StuUserMapper;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* 数字贸易营销-账户信息
|
||||
*
|
||||
* @author whb
|
||||
* stu_trade_account_info
|
||||
*/
|
||||
public class StuTradeAccountInfo {
|
||||
@ApiModelProperty(notes = "ID")
|
||||
private Integer id;
|
||||
|
||||
@ApiModelProperty(notes = "账户名称")
|
||||
private String accountName;
|
||||
|
||||
@ApiModelProperty(notes = "账户余额")
|
||||
private BigDecimal accountBalance;
|
||||
|
||||
@ApiModelProperty(notes = "用户ID")
|
||||
private String userId;
|
||||
|
||||
@ApiModelProperty(notes = "预留字段1")
|
||||
private String reservedOne;
|
||||
|
||||
@ApiModelProperty(notes = "预留字段2")
|
||||
private String reservedTwo;
|
||||
|
||||
@ApiModelProperty(notes = "预留字段3")
|
||||
private String reservedThree;
|
||||
|
||||
@ApiModelProperty(notes = "预留字段4")
|
||||
private String reservedFour;
|
||||
|
||||
@ApiModelProperty(notes = "预留字段5")
|
||||
private String reservedFive;
|
||||
|
||||
@Resource
|
||||
StuUserMapper stuUserMapper;
|
||||
public StuTradeAccountInfo(String userId){
|
||||
Integer uuid= UUID.randomUUID().toString().replaceAll("-","").hashCode();
|
||||
uuid = uuid < 0 ? -uuid : uuid;//String.hashCode() 值会为空
|
||||
this.id=uuid;
|
||||
this.accountBalance=new BigDecimal(20000000);
|
||||
this.userId=userId;
|
||||
|
||||
//查询用户名称
|
||||
StuUser stuUser = stuUserMapper.selectByPrimaryKey(userId);
|
||||
this.accountName=stuUser.getName();
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Integer id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getAccountName() {
|
||||
return accountName;
|
||||
}
|
||||
|
||||
public void setAccountName(String accountName) {
|
||||
this.accountName = accountName == null ? null : accountName.trim();
|
||||
}
|
||||
|
||||
public BigDecimal getAccountBalance() {
|
||||
return accountBalance;
|
||||
}
|
||||
|
||||
public void setAccountBalance(BigDecimal accountBalance) {
|
||||
this.accountBalance = accountBalance;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId == null ? null : userId.trim();
|
||||
}
|
||||
|
||||
public String getReservedOne() {
|
||||
return reservedOne;
|
||||
}
|
||||
|
||||
public void setReservedOne(String reservedOne) {
|
||||
this.reservedOne = reservedOne == null ? null : reservedOne.trim();
|
||||
}
|
||||
|
||||
public String getReservedTwo() {
|
||||
return reservedTwo;
|
||||
}
|
||||
|
||||
public void setReservedTwo(String reservedTwo) {
|
||||
this.reservedTwo = reservedTwo == null ? null : reservedTwo.trim();
|
||||
}
|
||||
|
||||
public String getReservedThree() {
|
||||
return reservedThree;
|
||||
}
|
||||
|
||||
public void setReservedThree(String reservedThree) {
|
||||
this.reservedThree = reservedThree == null ? null : reservedThree.trim();
|
||||
}
|
||||
|
||||
public String getReservedFour() {
|
||||
return reservedFour;
|
||||
}
|
||||
|
||||
public void setReservedFour(String reservedFour) {
|
||||
this.reservedFour = reservedFour == null ? null : reservedFour.trim();
|
||||
}
|
||||
|
||||
public String getReservedFive() {
|
||||
return reservedFive;
|
||||
}
|
||||
|
||||
public void setReservedFive(String reservedFive) {
|
||||
this.reservedFive = reservedFive == null ? null : reservedFive.trim();
|
||||
}
|
||||
}
|
@ -0,0 +1,810 @@
|
||||
package com.sztzjy.trade.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class StuTradeAccountInfoExample {
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public StuTradeAccountInfoExample() {
|
||||
oredCriteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(Integer value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(Integer value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(Integer value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(Integer value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameIsNull() {
|
||||
addCriterion("account_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameIsNotNull() {
|
||||
addCriterion("account_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameEqualTo(String value) {
|
||||
addCriterion("account_name =", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameNotEqualTo(String value) {
|
||||
addCriterion("account_name <>", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameGreaterThan(String value) {
|
||||
addCriterion("account_name >", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("account_name >=", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameLessThan(String value) {
|
||||
addCriterion("account_name <", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("account_name <=", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameLike(String value) {
|
||||
addCriterion("account_name like", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameNotLike(String value) {
|
||||
addCriterion("account_name not like", value, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameIn(List<String> values) {
|
||||
addCriterion("account_name in", values, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameNotIn(List<String> values) {
|
||||
addCriterion("account_name not in", values, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameBetween(String value1, String value2) {
|
||||
addCriterion("account_name between", value1, value2, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountNameNotBetween(String value1, String value2) {
|
||||
addCriterion("account_name not between", value1, value2, "accountName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceIsNull() {
|
||||
addCriterion("account_balance is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceIsNotNull() {
|
||||
addCriterion("account_balance is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceEqualTo(BigDecimal value) {
|
||||
addCriterion("account_balance =", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceNotEqualTo(BigDecimal value) {
|
||||
addCriterion("account_balance <>", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceGreaterThan(BigDecimal value) {
|
||||
addCriterion("account_balance >", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceGreaterThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("account_balance >=", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceLessThan(BigDecimal value) {
|
||||
addCriterion("account_balance <", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceLessThanOrEqualTo(BigDecimal value) {
|
||||
addCriterion("account_balance <=", value, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceIn(List<BigDecimal> values) {
|
||||
addCriterion("account_balance in", values, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceNotIn(List<BigDecimal> values) {
|
||||
addCriterion("account_balance not in", values, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("account_balance between", value1, value2, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAccountBalanceNotBetween(BigDecimal value1, BigDecimal value2) {
|
||||
addCriterion("account_balance not between", value1, value2, "accountBalance");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNull() {
|
||||
addCriterion("user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIsNotNull() {
|
||||
addCriterion("user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdEqualTo(String value) {
|
||||
addCriterion("user_id =", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotEqualTo(String value) {
|
||||
addCriterion("user_id <>", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThan(String value) {
|
||||
addCriterion("user_id >", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("user_id >=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThan(String value) {
|
||||
addCriterion("user_id <", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("user_id <=", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdLike(String value) {
|
||||
addCriterion("user_id like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotLike(String value) {
|
||||
addCriterion("user_id not like", value, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdIn(List<String> values) {
|
||||
addCriterion("user_id in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotIn(List<String> values) {
|
||||
addCriterion("user_id not in", values, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdBetween(String value1, String value2) {
|
||||
addCriterion("user_id between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("user_id not between", value1, value2, "userId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneIsNull() {
|
||||
addCriterion("reserved_one is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneIsNotNull() {
|
||||
addCriterion("reserved_one is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneEqualTo(String value) {
|
||||
addCriterion("reserved_one =", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneNotEqualTo(String value) {
|
||||
addCriterion("reserved_one <>", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneGreaterThan(String value) {
|
||||
addCriterion("reserved_one >", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_one >=", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneLessThan(String value) {
|
||||
addCriterion("reserved_one <", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneLessThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_one <=", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneLike(String value) {
|
||||
addCriterion("reserved_one like", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneNotLike(String value) {
|
||||
addCriterion("reserved_one not like", value, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneIn(List<String> values) {
|
||||
addCriterion("reserved_one in", values, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneNotIn(List<String> values) {
|
||||
addCriterion("reserved_one not in", values, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneBetween(String value1, String value2) {
|
||||
addCriterion("reserved_one between", value1, value2, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedOneNotBetween(String value1, String value2) {
|
||||
addCriterion("reserved_one not between", value1, value2, "reservedOne");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoIsNull() {
|
||||
addCriterion("reserved_two is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoIsNotNull() {
|
||||
addCriterion("reserved_two is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoEqualTo(String value) {
|
||||
addCriterion("reserved_two =", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoNotEqualTo(String value) {
|
||||
addCriterion("reserved_two <>", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoGreaterThan(String value) {
|
||||
addCriterion("reserved_two >", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_two >=", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoLessThan(String value) {
|
||||
addCriterion("reserved_two <", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoLessThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_two <=", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoLike(String value) {
|
||||
addCriterion("reserved_two like", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoNotLike(String value) {
|
||||
addCriterion("reserved_two not like", value, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoIn(List<String> values) {
|
||||
addCriterion("reserved_two in", values, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoNotIn(List<String> values) {
|
||||
addCriterion("reserved_two not in", values, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoBetween(String value1, String value2) {
|
||||
addCriterion("reserved_two between", value1, value2, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedTwoNotBetween(String value1, String value2) {
|
||||
addCriterion("reserved_two not between", value1, value2, "reservedTwo");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeIsNull() {
|
||||
addCriterion("reserved_three is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeIsNotNull() {
|
||||
addCriterion("reserved_three is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeEqualTo(String value) {
|
||||
addCriterion("reserved_three =", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeNotEqualTo(String value) {
|
||||
addCriterion("reserved_three <>", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeGreaterThan(String value) {
|
||||
addCriterion("reserved_three >", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_three >=", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeLessThan(String value) {
|
||||
addCriterion("reserved_three <", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeLessThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_three <=", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeLike(String value) {
|
||||
addCriterion("reserved_three like", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeNotLike(String value) {
|
||||
addCriterion("reserved_three not like", value, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeIn(List<String> values) {
|
||||
addCriterion("reserved_three in", values, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeNotIn(List<String> values) {
|
||||
addCriterion("reserved_three not in", values, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeBetween(String value1, String value2) {
|
||||
addCriterion("reserved_three between", value1, value2, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedThreeNotBetween(String value1, String value2) {
|
||||
addCriterion("reserved_three not between", value1, value2, "reservedThree");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourIsNull() {
|
||||
addCriterion("reserved_four is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourIsNotNull() {
|
||||
addCriterion("reserved_four is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourEqualTo(String value) {
|
||||
addCriterion("reserved_four =", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourNotEqualTo(String value) {
|
||||
addCriterion("reserved_four <>", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourGreaterThan(String value) {
|
||||
addCriterion("reserved_four >", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_four >=", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourLessThan(String value) {
|
||||
addCriterion("reserved_four <", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourLessThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_four <=", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourLike(String value) {
|
||||
addCriterion("reserved_four like", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourNotLike(String value) {
|
||||
addCriterion("reserved_four not like", value, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourIn(List<String> values) {
|
||||
addCriterion("reserved_four in", values, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourNotIn(List<String> values) {
|
||||
addCriterion("reserved_four not in", values, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourBetween(String value1, String value2) {
|
||||
addCriterion("reserved_four between", value1, value2, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFourNotBetween(String value1, String value2) {
|
||||
addCriterion("reserved_four not between", value1, value2, "reservedFour");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveIsNull() {
|
||||
addCriterion("reserved_five is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveIsNotNull() {
|
||||
addCriterion("reserved_five is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveEqualTo(String value) {
|
||||
addCriterion("reserved_five =", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveNotEqualTo(String value) {
|
||||
addCriterion("reserved_five <>", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveGreaterThan(String value) {
|
||||
addCriterion("reserved_five >", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_five >=", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveLessThan(String value) {
|
||||
addCriterion("reserved_five <", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveLessThanOrEqualTo(String value) {
|
||||
addCriterion("reserved_five <=", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveLike(String value) {
|
||||
addCriterion("reserved_five like", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveNotLike(String value) {
|
||||
addCriterion("reserved_five not like", value, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveIn(List<String> values) {
|
||||
addCriterion("reserved_five in", values, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveNotIn(List<String> values) {
|
||||
addCriterion("reserved_five not in", values, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveBetween(String value1, String value2) {
|
||||
addCriterion("reserved_five between", value1, value2, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andReservedFiveNotBetween(String value1, String value2) {
|
||||
addCriterion("reserved_five not between", value1, value2, "reservedFive");
|
||||
return (Criteria) this;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.sztzjy.trade.entity.dto;
|
||||
|
||||
import com.sztzjy.trade.entity.StuShoppingCartInfo;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/10/28 16:30
|
||||
*/
|
||||
@Data
|
||||
public class StuSettlementDTO {
|
||||
private List<StuShoppingCartInfo> shoppingCartInfos;
|
||||
private BigDecimal amount;
|
||||
private String userId;
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* @author tz
|
||||
* @date 2024/8/16 15:46
|
||||
*/
|
||||
@Mapper
|
||||
public class StuMapper {
|
||||
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.sztzjy.trade.mapper;
|
||||
|
||||
import com.sztzjy.trade.entity.StuTradeAccountInfo;
|
||||
import com.sztzjy.trade.entity.StuTradeAccountInfoExample;
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
@Mapper
|
||||
public interface StuTradeAccountInfoMapper {
|
||||
long countByExample(StuTradeAccountInfoExample example);
|
||||
|
||||
int deleteByExample(StuTradeAccountInfoExample example);
|
||||
|
||||
int deleteByPrimaryKey(Integer id);
|
||||
|
||||
int insert(StuTradeAccountInfo record);
|
||||
|
||||
int insertSelective(StuTradeAccountInfo record);
|
||||
|
||||
List<StuTradeAccountInfo> selectByExample(StuTradeAccountInfoExample example);
|
||||
|
||||
StuTradeAccountInfo selectByPrimaryKey(Integer id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") StuTradeAccountInfo record, @Param("example") StuTradeAccountInfoExample example);
|
||||
|
||||
int updateByExample(@Param("record") StuTradeAccountInfo record, @Param("example") StuTradeAccountInfoExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(StuTradeAccountInfo record);
|
||||
|
||||
int updateByPrimaryKey(StuTradeAccountInfo record);
|
||||
}
|
@ -0,0 +1,276 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.trade.mapper.StuTradeAccountInfoMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.trade.entity.StuTradeAccountInfo">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="account_name" jdbcType="VARCHAR" property="accountName" />
|
||||
<result column="account_balance" jdbcType="DECIMAL" property="accountBalance" />
|
||||
<result column="user_id" jdbcType="VARCHAR" property="userId" />
|
||||
<result column="reserved_one" jdbcType="VARCHAR" property="reservedOne" />
|
||||
<result column="reserved_two" jdbcType="VARCHAR" property="reservedTwo" />
|
||||
<result column="reserved_three" jdbcType="VARCHAR" property="reservedThree" />
|
||||
<result column="reserved_four" jdbcType="VARCHAR" property="reservedFour" />
|
||||
<result column="reserved_five" jdbcType="VARCHAR" property="reservedFive" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, account_name, account_balance, user_id, reserved_one, reserved_two, reserved_three,
|
||||
reserved_four, reserved_five
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfoExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_trade_account_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from stu_trade_account_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from stu_trade_account_info
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfoExample">
|
||||
delete from stu_trade_account_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfo">
|
||||
insert into stu_trade_account_info (id, account_name, account_balance,
|
||||
user_id, reserved_one, reserved_two,
|
||||
reserved_three, reserved_four, reserved_five
|
||||
)
|
||||
values (#{id,jdbcType=INTEGER}, #{accountName,jdbcType=VARCHAR}, #{accountBalance,jdbcType=DECIMAL},
|
||||
#{userId,jdbcType=VARCHAR}, #{reservedOne,jdbcType=VARCHAR}, #{reservedTwo,jdbcType=VARCHAR},
|
||||
#{reservedThree,jdbcType=VARCHAR}, #{reservedFour,jdbcType=VARCHAR}, #{reservedFive,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfo">
|
||||
insert into stu_trade_account_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="accountName != null">
|
||||
account_name,
|
||||
</if>
|
||||
<if test="accountBalance != null">
|
||||
account_balance,
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id,
|
||||
</if>
|
||||
<if test="reservedOne != null">
|
||||
reserved_one,
|
||||
</if>
|
||||
<if test="reservedTwo != null">
|
||||
reserved_two,
|
||||
</if>
|
||||
<if test="reservedThree != null">
|
||||
reserved_three,
|
||||
</if>
|
||||
<if test="reservedFour != null">
|
||||
reserved_four,
|
||||
</if>
|
||||
<if test="reservedFive != null">
|
||||
reserved_five,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="accountName != null">
|
||||
#{accountName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountBalance != null">
|
||||
#{accountBalance,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
#{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedOne != null">
|
||||
#{reservedOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedTwo != null">
|
||||
#{reservedTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedThree != null">
|
||||
#{reservedThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedFour != null">
|
||||
#{reservedFour,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedFive != null">
|
||||
#{reservedFive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfoExample" resultType="java.lang.Long">
|
||||
select count(*) from stu_trade_account_info
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update stu_trade_account_info
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.accountName != null">
|
||||
account_name = #{record.accountName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.accountBalance != null">
|
||||
account_balance = #{record.accountBalance,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="record.userId != null">
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reservedOne != null">
|
||||
reserved_one = #{record.reservedOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reservedTwo != null">
|
||||
reserved_two = #{record.reservedTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reservedThree != null">
|
||||
reserved_three = #{record.reservedThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reservedFour != null">
|
||||
reserved_four = #{record.reservedFour,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.reservedFive != null">
|
||||
reserved_five = #{record.reservedFive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update stu_trade_account_info
|
||||
set id = #{record.id,jdbcType=INTEGER},
|
||||
account_name = #{record.accountName,jdbcType=VARCHAR},
|
||||
account_balance = #{record.accountBalance,jdbcType=DECIMAL},
|
||||
user_id = #{record.userId,jdbcType=VARCHAR},
|
||||
reserved_one = #{record.reservedOne,jdbcType=VARCHAR},
|
||||
reserved_two = #{record.reservedTwo,jdbcType=VARCHAR},
|
||||
reserved_three = #{record.reservedThree,jdbcType=VARCHAR},
|
||||
reserved_four = #{record.reservedFour,jdbcType=VARCHAR},
|
||||
reserved_five = #{record.reservedFive,jdbcType=VARCHAR}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfo">
|
||||
update stu_trade_account_info
|
||||
<set>
|
||||
<if test="accountName != null">
|
||||
account_name = #{accountName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="accountBalance != null">
|
||||
account_balance = #{accountBalance,jdbcType=DECIMAL},
|
||||
</if>
|
||||
<if test="userId != null">
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedOne != null">
|
||||
reserved_one = #{reservedOne,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedTwo != null">
|
||||
reserved_two = #{reservedTwo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedThree != null">
|
||||
reserved_three = #{reservedThree,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedFour != null">
|
||||
reserved_four = #{reservedFour,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="reservedFive != null">
|
||||
reserved_five = #{reservedFive,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.trade.entity.StuTradeAccountInfo">
|
||||
update stu_trade_account_info
|
||||
set account_name = #{accountName,jdbcType=VARCHAR},
|
||||
account_balance = #{accountBalance,jdbcType=DECIMAL},
|
||||
user_id = #{userId,jdbcType=VARCHAR},
|
||||
reserved_one = #{reservedOne,jdbcType=VARCHAR},
|
||||
reserved_two = #{reservedTwo,jdbcType=VARCHAR},
|
||||
reserved_three = #{reservedThree,jdbcType=VARCHAR},
|
||||
reserved_four = #{reservedFour,jdbcType=VARCHAR},
|
||||
reserved_five = #{reservedFive,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue