From 6895a3b0de0ed22e80fee73088842d627583ea33 Mon Sep 17 00:00:00 2001 From: yz <3614508250@qq.com> Date: Fri, 30 Jun 2023 11:25:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=20=E5=AD=97=E6=AE=B5=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trading_trading/entity/TakeStash.java | 401 ++++++ .../entity/TakeStashExample.java | 1082 +++++++++++++++++ .../trading_trading/mappers/MemberMapper.java | 100 ++ .../mappers/TakeStashMapper.java | 99 ++ .../service/TakeStashService.java | 17 + src/main/resources/mappers/MemberMapper.xml | 541 +++++++++ .../resources/mappers/TakeStashMapper.xml | 398 ++++++ 7 files changed, 2638 insertions(+) create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStash.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStashExample.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/mappers/MemberMapper.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/mappers/TakeStashMapper.java create mode 100644 src/main/java/com/sztzjy/forex/trading_trading/service/TakeStashService.java create mode 100644 src/main/resources/mappers/MemberMapper.xml create mode 100644 src/main/resources/mappers/TakeStashMapper.xml diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStash.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStash.java new file mode 100644 index 0000000..15c259f --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStash.java @@ -0,0 +1,401 @@ +package com.sztzjy.forex.trading_trading.entity; + +import java.util.Date; + +public class TakeStash { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.stash_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String stashId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.member_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String memberId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.training_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String trainingId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.trading_code + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String tradingCode; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.order_number + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String orderNumber; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.buy_sell_type + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private String buySellType; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.volume_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Double volumeTransaction; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.price_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Double priceTransaction; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.stop_loss + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Double stopLoss; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.stop_win + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Double stopWin; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.time_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Date timeTransaction; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_take_stash.status + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + private Integer status; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.stash_id + * + * @return the value of sys_take_stash.stash_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getStashId() { + return stashId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.stash_id + * + * @param stashId the value for sys_take_stash.stash_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setStashId(String stashId) { + this.stashId = stashId == null ? null : stashId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.member_id + * + * @return the value of sys_take_stash.member_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getMemberId() { + return memberId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.member_id + * + * @param memberId the value for sys_take_stash.member_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setMemberId(String memberId) { + this.memberId = memberId == null ? null : memberId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.training_id + * + * @return the value of sys_take_stash.training_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getTrainingId() { + return trainingId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.training_id + * + * @param trainingId the value for sys_take_stash.training_id + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setTrainingId(String trainingId) { + this.trainingId = trainingId == null ? null : trainingId.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.trading_code + * + * @return the value of sys_take_stash.trading_code + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getTradingCode() { + return tradingCode; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.trading_code + * + * @param tradingCode the value for sys_take_stash.trading_code + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setTradingCode(String tradingCode) { + this.tradingCode = tradingCode == null ? null : tradingCode.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.order_number + * + * @return the value of sys_take_stash.order_number + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getOrderNumber() { + return orderNumber; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.order_number + * + * @param orderNumber the value for sys_take_stash.order_number + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setOrderNumber(String orderNumber) { + this.orderNumber = orderNumber == null ? null : orderNumber.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.buy_sell_type + * + * @return the value of sys_take_stash.buy_sell_type + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getBuySellType() { + return buySellType; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.buy_sell_type + * + * @param buySellType the value for sys_take_stash.buy_sell_type + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setBuySellType(String buySellType) { + this.buySellType = buySellType == null ? null : buySellType.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.volume_transaction + * + * @return the value of sys_take_stash.volume_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Double getVolumeTransaction() { + return volumeTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.volume_transaction + * + * @param volumeTransaction the value for sys_take_stash.volume_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setVolumeTransaction(Double volumeTransaction) { + this.volumeTransaction = volumeTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.price_transaction + * + * @return the value of sys_take_stash.price_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Double getPriceTransaction() { + return priceTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.price_transaction + * + * @param priceTransaction the value for sys_take_stash.price_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setPriceTransaction(Double priceTransaction) { + this.priceTransaction = priceTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.stop_loss + * + * @return the value of sys_take_stash.stop_loss + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Double getStopLoss() { + return stopLoss; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.stop_loss + * + * @param stopLoss the value for sys_take_stash.stop_loss + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setStopLoss(Double stopLoss) { + this.stopLoss = stopLoss; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.stop_win + * + * @return the value of sys_take_stash.stop_win + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Double getStopWin() { + return stopWin; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.stop_win + * + * @param stopWin the value for sys_take_stash.stop_win + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setStopWin(Double stopWin) { + this.stopWin = stopWin; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.time_transaction + * + * @return the value of sys_take_stash.time_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Date getTimeTransaction() { + return timeTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.time_transaction + * + * @param timeTransaction the value for sys_take_stash.time_transaction + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setTimeTransaction(Date timeTransaction) { + this.timeTransaction = timeTransaction; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_take_stash.status + * + * @return the value of sys_take_stash.status + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Integer getStatus() { + return status; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_take_stash.status + * + * @param status the value for sys_take_stash.status + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setStatus(Integer status) { + this.status = status; + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStashExample.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStashExample.java new file mode 100644 index 0000000..4107970 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/TakeStashExample.java @@ -0,0 +1,1082 @@ +package com.sztzjy.forex.trading_trading.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class TakeStashExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public TakeStashExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 andStashIdIsNull() { + addCriterion("stash_id is null"); + return (Criteria) this; + } + + public Criteria andStashIdIsNotNull() { + addCriterion("stash_id is not null"); + return (Criteria) this; + } + + public Criteria andStashIdEqualTo(String value) { + addCriterion("stash_id =", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdNotEqualTo(String value) { + addCriterion("stash_id <>", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdGreaterThan(String value) { + addCriterion("stash_id >", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdGreaterThanOrEqualTo(String value) { + addCriterion("stash_id >=", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdLessThan(String value) { + addCriterion("stash_id <", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdLessThanOrEqualTo(String value) { + addCriterion("stash_id <=", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdLike(String value) { + addCriterion("stash_id like", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdNotLike(String value) { + addCriterion("stash_id not like", value, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdIn(List values) { + addCriterion("stash_id in", values, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdNotIn(List values) { + addCriterion("stash_id not in", values, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdBetween(String value1, String value2) { + addCriterion("stash_id between", value1, value2, "stashId"); + return (Criteria) this; + } + + public Criteria andStashIdNotBetween(String value1, String value2) { + addCriterion("stash_id not between", value1, value2, "stashId"); + return (Criteria) this; + } + + public Criteria andMemberIdIsNull() { + addCriterion("member_id is null"); + return (Criteria) this; + } + + public Criteria andMemberIdIsNotNull() { + addCriterion("member_id is not null"); + return (Criteria) this; + } + + public Criteria andMemberIdEqualTo(String value) { + addCriterion("member_id =", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotEqualTo(String value) { + addCriterion("member_id <>", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdGreaterThan(String value) { + addCriterion("member_id >", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdGreaterThanOrEqualTo(String value) { + addCriterion("member_id >=", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdLessThan(String value) { + addCriterion("member_id <", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdLessThanOrEqualTo(String value) { + addCriterion("member_id <=", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdLike(String value) { + addCriterion("member_id like", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotLike(String value) { + addCriterion("member_id not like", value, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdIn(List values) { + addCriterion("member_id in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotIn(List values) { + addCriterion("member_id not in", values, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdBetween(String value1, String value2) { + addCriterion("member_id between", value1, value2, "memberId"); + return (Criteria) this; + } + + public Criteria andMemberIdNotBetween(String value1, String value2) { + addCriterion("member_id not between", value1, value2, "memberId"); + return (Criteria) this; + } + + public Criteria andTrainingIdIsNull() { + addCriterion("training_id is null"); + return (Criteria) this; + } + + public Criteria andTrainingIdIsNotNull() { + addCriterion("training_id is not null"); + return (Criteria) this; + } + + public Criteria andTrainingIdEqualTo(String value) { + addCriterion("training_id =", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdNotEqualTo(String value) { + addCriterion("training_id <>", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdGreaterThan(String value) { + addCriterion("training_id >", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdGreaterThanOrEqualTo(String value) { + addCriterion("training_id >=", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdLessThan(String value) { + addCriterion("training_id <", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdLessThanOrEqualTo(String value) { + addCriterion("training_id <=", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdLike(String value) { + addCriterion("training_id like", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdNotLike(String value) { + addCriterion("training_id not like", value, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdIn(List values) { + addCriterion("training_id in", values, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdNotIn(List values) { + addCriterion("training_id not in", values, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdBetween(String value1, String value2) { + addCriterion("training_id between", value1, value2, "trainingId"); + return (Criteria) this; + } + + public Criteria andTrainingIdNotBetween(String value1, String value2) { + addCriterion("training_id not between", value1, value2, "trainingId"); + return (Criteria) this; + } + + public Criteria andTradingCodeIsNull() { + addCriterion("trading_code is null"); + return (Criteria) this; + } + + public Criteria andTradingCodeIsNotNull() { + addCriterion("trading_code is not null"); + return (Criteria) this; + } + + public Criteria andTradingCodeEqualTo(String value) { + addCriterion("trading_code =", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeNotEqualTo(String value) { + addCriterion("trading_code <>", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeGreaterThan(String value) { + addCriterion("trading_code >", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeGreaterThanOrEqualTo(String value) { + addCriterion("trading_code >=", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeLessThan(String value) { + addCriterion("trading_code <", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeLessThanOrEqualTo(String value) { + addCriterion("trading_code <=", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeLike(String value) { + addCriterion("trading_code like", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeNotLike(String value) { + addCriterion("trading_code not like", value, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeIn(List values) { + addCriterion("trading_code in", values, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeNotIn(List values) { + addCriterion("trading_code not in", values, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeBetween(String value1, String value2) { + addCriterion("trading_code between", value1, value2, "tradingCode"); + return (Criteria) this; + } + + public Criteria andTradingCodeNotBetween(String value1, String value2) { + addCriterion("trading_code not between", value1, value2, "tradingCode"); + return (Criteria) this; + } + + public Criteria andOrderNumberIsNull() { + addCriterion("order_number is null"); + return (Criteria) this; + } + + public Criteria andOrderNumberIsNotNull() { + addCriterion("order_number is not null"); + return (Criteria) this; + } + + public Criteria andOrderNumberEqualTo(String value) { + addCriterion("order_number =", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberNotEqualTo(String value) { + addCriterion("order_number <>", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberGreaterThan(String value) { + addCriterion("order_number >", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberGreaterThanOrEqualTo(String value) { + addCriterion("order_number >=", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberLessThan(String value) { + addCriterion("order_number <", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberLessThanOrEqualTo(String value) { + addCriterion("order_number <=", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberLike(String value) { + addCriterion("order_number like", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberNotLike(String value) { + addCriterion("order_number not like", value, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberIn(List values) { + addCriterion("order_number in", values, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberNotIn(List values) { + addCriterion("order_number not in", values, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberBetween(String value1, String value2) { + addCriterion("order_number between", value1, value2, "orderNumber"); + return (Criteria) this; + } + + public Criteria andOrderNumberNotBetween(String value1, String value2) { + addCriterion("order_number not between", value1, value2, "orderNumber"); + return (Criteria) this; + } + + public Criteria andBuySellTypeIsNull() { + addCriterion("buy_sell_type is null"); + return (Criteria) this; + } + + public Criteria andBuySellTypeIsNotNull() { + addCriterion("buy_sell_type is not null"); + return (Criteria) this; + } + + public Criteria andBuySellTypeEqualTo(String value) { + addCriterion("buy_sell_type =", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeNotEqualTo(String value) { + addCriterion("buy_sell_type <>", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeGreaterThan(String value) { + addCriterion("buy_sell_type >", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeGreaterThanOrEqualTo(String value) { + addCriterion("buy_sell_type >=", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeLessThan(String value) { + addCriterion("buy_sell_type <", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeLessThanOrEqualTo(String value) { + addCriterion("buy_sell_type <=", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeLike(String value) { + addCriterion("buy_sell_type like", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeNotLike(String value) { + addCriterion("buy_sell_type not like", value, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeIn(List values) { + addCriterion("buy_sell_type in", values, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeNotIn(List values) { + addCriterion("buy_sell_type not in", values, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeBetween(String value1, String value2) { + addCriterion("buy_sell_type between", value1, value2, "buySellType"); + return (Criteria) this; + } + + public Criteria andBuySellTypeNotBetween(String value1, String value2) { + addCriterion("buy_sell_type not between", value1, value2, "buySellType"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionIsNull() { + addCriterion("volume_transaction is null"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionIsNotNull() { + addCriterion("volume_transaction is not null"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionEqualTo(Double value) { + addCriterion("volume_transaction =", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionNotEqualTo(Double value) { + addCriterion("volume_transaction <>", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionGreaterThan(Double value) { + addCriterion("volume_transaction >", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionGreaterThanOrEqualTo(Double value) { + addCriterion("volume_transaction >=", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionLessThan(Double value) { + addCriterion("volume_transaction <", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionLessThanOrEqualTo(Double value) { + addCriterion("volume_transaction <=", value, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionIn(List values) { + addCriterion("volume_transaction in", values, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionNotIn(List values) { + addCriterion("volume_transaction not in", values, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionBetween(Double value1, Double value2) { + addCriterion("volume_transaction between", value1, value2, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andVolumeTransactionNotBetween(Double value1, Double value2) { + addCriterion("volume_transaction not between", value1, value2, "volumeTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionIsNull() { + addCriterion("price_transaction is null"); + return (Criteria) this; + } + + public Criteria andPriceTransactionIsNotNull() { + addCriterion("price_transaction is not null"); + return (Criteria) this; + } + + public Criteria andPriceTransactionEqualTo(Double value) { + addCriterion("price_transaction =", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionNotEqualTo(Double value) { + addCriterion("price_transaction <>", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionGreaterThan(Double value) { + addCriterion("price_transaction >", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionGreaterThanOrEqualTo(Double value) { + addCriterion("price_transaction >=", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionLessThan(Double value) { + addCriterion("price_transaction <", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionLessThanOrEqualTo(Double value) { + addCriterion("price_transaction <=", value, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionIn(List values) { + addCriterion("price_transaction in", values, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionNotIn(List values) { + addCriterion("price_transaction not in", values, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionBetween(Double value1, Double value2) { + addCriterion("price_transaction between", value1, value2, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andPriceTransactionNotBetween(Double value1, Double value2) { + addCriterion("price_transaction not between", value1, value2, "priceTransaction"); + return (Criteria) this; + } + + public Criteria andStopLossIsNull() { + addCriterion("stop_loss is null"); + return (Criteria) this; + } + + public Criteria andStopLossIsNotNull() { + addCriterion("stop_loss is not null"); + return (Criteria) this; + } + + public Criteria andStopLossEqualTo(Double value) { + addCriterion("stop_loss =", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossNotEqualTo(Double value) { + addCriterion("stop_loss <>", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossGreaterThan(Double value) { + addCriterion("stop_loss >", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossGreaterThanOrEqualTo(Double value) { + addCriterion("stop_loss >=", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossLessThan(Double value) { + addCriterion("stop_loss <", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossLessThanOrEqualTo(Double value) { + addCriterion("stop_loss <=", value, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossIn(List values) { + addCriterion("stop_loss in", values, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossNotIn(List values) { + addCriterion("stop_loss not in", values, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossBetween(Double value1, Double value2) { + addCriterion("stop_loss between", value1, value2, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopLossNotBetween(Double value1, Double value2) { + addCriterion("stop_loss not between", value1, value2, "stopLoss"); + return (Criteria) this; + } + + public Criteria andStopWinIsNull() { + addCriterion("stop_win is null"); + return (Criteria) this; + } + + public Criteria andStopWinIsNotNull() { + addCriterion("stop_win is not null"); + return (Criteria) this; + } + + public Criteria andStopWinEqualTo(Double value) { + addCriterion("stop_win =", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinNotEqualTo(Double value) { + addCriterion("stop_win <>", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinGreaterThan(Double value) { + addCriterion("stop_win >", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinGreaterThanOrEqualTo(Double value) { + addCriterion("stop_win >=", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinLessThan(Double value) { + addCriterion("stop_win <", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinLessThanOrEqualTo(Double value) { + addCriterion("stop_win <=", value, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinIn(List values) { + addCriterion("stop_win in", values, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinNotIn(List values) { + addCriterion("stop_win not in", values, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinBetween(Double value1, Double value2) { + addCriterion("stop_win between", value1, value2, "stopWin"); + return (Criteria) this; + } + + public Criteria andStopWinNotBetween(Double value1, Double value2) { + addCriterion("stop_win not between", value1, value2, "stopWin"); + return (Criteria) this; + } + + public Criteria andTimeTransactionIsNull() { + addCriterion("time_transaction is null"); + return (Criteria) this; + } + + public Criteria andTimeTransactionIsNotNull() { + addCriterion("time_transaction is not null"); + return (Criteria) this; + } + + public Criteria andTimeTransactionEqualTo(Date value) { + addCriterion("time_transaction =", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionNotEqualTo(Date value) { + addCriterion("time_transaction <>", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionGreaterThan(Date value) { + addCriterion("time_transaction >", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionGreaterThanOrEqualTo(Date value) { + addCriterion("time_transaction >=", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionLessThan(Date value) { + addCriterion("time_transaction <", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionLessThanOrEqualTo(Date value) { + addCriterion("time_transaction <=", value, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionIn(List values) { + addCriterion("time_transaction in", values, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionNotIn(List values) { + addCriterion("time_transaction not in", values, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionBetween(Date value1, Date value2) { + addCriterion("time_transaction between", value1, value2, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andTimeTransactionNotBetween(Date value1, Date value2) { + addCriterion("time_transaction not between", value1, value2, "timeTransaction"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("status not between", value1, value2, "status"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sys_take_stash + * + * @mbg.generated do_not_delete_during_merge Fri Jun 30 10:35:35 CST 2023 + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/mappers/MemberMapper.java b/src/main/java/com/sztzjy/forex/trading_trading/mappers/MemberMapper.java new file mode 100644 index 0000000..36c1754 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/mappers/MemberMapper.java @@ -0,0 +1,100 @@ +package com.sztzjy.forex.trading_trading.mappers; + +import com.sztzjy.forex.trading_trading.entity.Member; +import com.sztzjy.forex.trading_trading.entity.MemberExample; +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +@Mapper +public interface MemberMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + long countByExample(MemberExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int deleteByExample(MemberExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int deleteByPrimaryKey(String memberId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int insert(Member record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int insertSelective(Member record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + List selectByExample(MemberExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + Member selectByPrimaryKey(String memberId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int updateByExampleSelective(@Param("record") Member record, @Param("example") MemberExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int updateByExample(@Param("record") Member record, @Param("example") MemberExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int updateByPrimaryKeySelective(Member record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_member + * + * @mbg.generated Fri Jun 30 10:29:24 CST 2023 + */ + int updateByPrimaryKey(Member record); + + List selectClassGrade(); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/mappers/TakeStashMapper.java b/src/main/java/com/sztzjy/forex/trading_trading/mappers/TakeStashMapper.java new file mode 100644 index 0000000..fa101cd --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/mappers/TakeStashMapper.java @@ -0,0 +1,99 @@ +package com.sztzjy.forex.trading_trading.mappers; + +import com.sztzjy.forex.trading_trading.entity.TakeStash; +import com.sztzjy.forex.trading_trading.entity.TakeStashExample; +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; + +@Mapper +public interface TakeStashMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + long countByExample(TakeStashExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int deleteByExample(TakeStashExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int deleteByPrimaryKey(String stashId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int insert(TakeStash record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int insertSelective(TakeStash record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + List selectByExample(TakeStashExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + TakeStash selectByPrimaryKey(String stashId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int updateByExampleSelective(@Param("record") TakeStash record, @Param("example") TakeStashExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int updateByExample(@Param("record") TakeStash record, @Param("example") TakeStashExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int updateByPrimaryKeySelective(TakeStash record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_take_stash + * + * @mbg.generated Fri Jun 30 10:35:35 CST 2023 + */ + int updateByPrimaryKey(TakeStash record); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/service/TakeStashService.java b/src/main/java/com/sztzjy/forex/trading_trading/service/TakeStashService.java new file mode 100644 index 0000000..963fe44 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/service/TakeStashService.java @@ -0,0 +1,17 @@ +package com.sztzjy.forex.trading_trading.service; + +import com.sztzjy.forex.trading_trading.entity.MemberExample; +import com.sztzjy.forex.trading_trading.entity.TakeStash; +import com.sztzjy.forex.trading_trading.mappers.TakeStashMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class TakeStashService { + @Autowired + TakeStashMapper takeStashMapper; + + public void insertTakeStash(TakeStash takeStash){ + int insert = takeStashMapper.insert(takeStash); + } +} diff --git a/src/main/resources/mappers/MemberMapper.xml b/src/main/resources/mappers/MemberMapper.xml new file mode 100644 index 0000000..caa7400 --- /dev/null +++ b/src/main/resources/mappers/MemberMapper.xml @@ -0,0 +1,541 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + member_id, training_id, name, student_number, major, class_grade, stu_rank, initial_capital, + total_assets, net_value, margin_used, available_funds, margin_level, position_profit_loss, + cumulative_profit_loss, yield, opening_trades, closing_trades, school_id, create_school, + training_name + + + + + + delete from sys_member + where member_id = #{memberId,jdbcType=VARCHAR} + + + + delete from sys_member + + + + + + + insert into sys_member (member_id, training_id, name, + student_number, major, class_grade, + stu_rank, initial_capital, total_assets, + net_value, margin_used, available_funds, + margin_level, position_profit_loss, cumulative_profit_loss, + yield, opening_trades, closing_trades, + school_id, create_school, training_name + ) + values (#{memberId,jdbcType=VARCHAR}, #{trainingId,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{studentNumber,jdbcType=VARCHAR}, #{major,jdbcType=VARCHAR}, #{classGrade,jdbcType=VARCHAR}, + #{stuRank,jdbcType=INTEGER}, #{initialCapital,jdbcType=DOUBLE}, #{totalAssets,jdbcType=DOUBLE}, + #{netValue,jdbcType=DOUBLE}, #{marginUsed,jdbcType=DOUBLE}, #{availableFunds,jdbcType=DOUBLE}, + #{marginLevel,jdbcType=DOUBLE}, #{positionProfitLoss,jdbcType=DOUBLE}, #{cumulativeProfitLoss,jdbcType=DOUBLE}, + #{yield,jdbcType=DOUBLE}, #{openingTrades,jdbcType=INTEGER}, #{closingTrades,jdbcType=INTEGER}, + #{schoolId,jdbcType=INTEGER}, #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR} + ) + + + + insert into sys_member + + + member_id, + + + training_id, + + + name, + + + student_number, + + + major, + + + class_grade, + + + stu_rank, + + + initial_capital, + + + total_assets, + + + net_value, + + + margin_used, + + + available_funds, + + + margin_level, + + + position_profit_loss, + + + cumulative_profit_loss, + + + yield, + + + opening_trades, + + + closing_trades, + + + school_id, + + + create_school, + + + training_name, + + + + + #{memberId,jdbcType=VARCHAR}, + + + #{trainingId,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{studentNumber,jdbcType=VARCHAR}, + + + #{major,jdbcType=VARCHAR}, + + + #{classGrade,jdbcType=VARCHAR}, + + + #{stuRank,jdbcType=INTEGER}, + + + #{initialCapital,jdbcType=DOUBLE}, + + + #{totalAssets,jdbcType=DOUBLE}, + + + #{netValue,jdbcType=DOUBLE}, + + + #{marginUsed,jdbcType=DOUBLE}, + + + #{availableFunds,jdbcType=DOUBLE}, + + + #{marginLevel,jdbcType=DOUBLE}, + + + #{positionProfitLoss,jdbcType=DOUBLE}, + + + #{cumulativeProfitLoss,jdbcType=DOUBLE}, + + + #{yield,jdbcType=DOUBLE}, + + + #{openingTrades,jdbcType=INTEGER}, + + + #{closingTrades,jdbcType=INTEGER}, + + + #{schoolId,jdbcType=INTEGER}, + + + #{createSchool,jdbcType=VARCHAR}, + + + #{trainingName,jdbcType=VARCHAR}, + + + + + + + update sys_member + + + member_id = #{record.memberId,jdbcType=VARCHAR}, + + + training_id = #{record.trainingId,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + student_number = #{record.studentNumber,jdbcType=VARCHAR}, + + + major = #{record.major,jdbcType=VARCHAR}, + + + class_grade = #{record.classGrade,jdbcType=VARCHAR}, + + + stu_rank = #{record.stuRank,jdbcType=INTEGER}, + + + initial_capital = #{record.initialCapital,jdbcType=DOUBLE}, + + + total_assets = #{record.totalAssets,jdbcType=DOUBLE}, + + + net_value = #{record.netValue,jdbcType=DOUBLE}, + + + margin_used = #{record.marginUsed,jdbcType=DOUBLE}, + + + available_funds = #{record.availableFunds,jdbcType=DOUBLE}, + + + margin_level = #{record.marginLevel,jdbcType=DOUBLE}, + + + position_profit_loss = #{record.positionProfitLoss,jdbcType=DOUBLE}, + + + cumulative_profit_loss = #{record.cumulativeProfitLoss,jdbcType=DOUBLE}, + + + yield = #{record.yield,jdbcType=DOUBLE}, + + + opening_trades = #{record.openingTrades,jdbcType=INTEGER}, + + + closing_trades = #{record.closingTrades,jdbcType=INTEGER}, + + + school_id = #{record.schoolId,jdbcType=INTEGER}, + + + create_school = #{record.createSchool,jdbcType=VARCHAR}, + + + training_name = #{record.trainingName,jdbcType=VARCHAR}, + + + + + + + + + update sys_member + set member_id = #{record.memberId,jdbcType=VARCHAR}, + training_id = #{record.trainingId,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + student_number = #{record.studentNumber,jdbcType=VARCHAR}, + major = #{record.major,jdbcType=VARCHAR}, + class_grade = #{record.classGrade,jdbcType=VARCHAR}, + stu_rank = #{record.stuRank,jdbcType=INTEGER}, + initial_capital = #{record.initialCapital,jdbcType=DOUBLE}, + total_assets = #{record.totalAssets,jdbcType=DOUBLE}, + net_value = #{record.netValue,jdbcType=DOUBLE}, + margin_used = #{record.marginUsed,jdbcType=DOUBLE}, + available_funds = #{record.availableFunds,jdbcType=DOUBLE}, + margin_level = #{record.marginLevel,jdbcType=DOUBLE}, + position_profit_loss = #{record.positionProfitLoss,jdbcType=DOUBLE}, + cumulative_profit_loss = #{record.cumulativeProfitLoss,jdbcType=DOUBLE}, + yield = #{record.yield,jdbcType=DOUBLE}, + opening_trades = #{record.openingTrades,jdbcType=INTEGER}, + closing_trades = #{record.closingTrades,jdbcType=INTEGER}, + school_id = #{record.schoolId,jdbcType=INTEGER}, + create_school = #{record.createSchool,jdbcType=VARCHAR}, + training_name = #{record.trainingName,jdbcType=VARCHAR} + + + + + + + update sys_member + + + training_id = #{trainingId,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + student_number = #{studentNumber,jdbcType=VARCHAR}, + + + major = #{major,jdbcType=VARCHAR}, + + + class_grade = #{classGrade,jdbcType=VARCHAR}, + + + stu_rank = #{stuRank,jdbcType=INTEGER}, + + + initial_capital = #{initialCapital,jdbcType=DOUBLE}, + + + total_assets = #{totalAssets,jdbcType=DOUBLE}, + + + net_value = #{netValue,jdbcType=DOUBLE}, + + + margin_used = #{marginUsed,jdbcType=DOUBLE}, + + + available_funds = #{availableFunds,jdbcType=DOUBLE}, + + + margin_level = #{marginLevel,jdbcType=DOUBLE}, + + + position_profit_loss = #{positionProfitLoss,jdbcType=DOUBLE}, + + + cumulative_profit_loss = #{cumulativeProfitLoss,jdbcType=DOUBLE}, + + + yield = #{yield,jdbcType=DOUBLE}, + + + opening_trades = #{openingTrades,jdbcType=INTEGER}, + + + closing_trades = #{closingTrades,jdbcType=INTEGER}, + + + school_id = #{schoolId,jdbcType=INTEGER}, + + + create_school = #{createSchool,jdbcType=VARCHAR}, + + + training_name = #{trainingName,jdbcType=VARCHAR}, + + + where member_id = #{memberId,jdbcType=VARCHAR} + + + + update sys_member + set training_id = #{trainingId,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + student_number = #{studentNumber,jdbcType=VARCHAR}, + major = #{major,jdbcType=VARCHAR}, + class_grade = #{classGrade,jdbcType=VARCHAR}, + stu_rank = #{stuRank,jdbcType=INTEGER}, + initial_capital = #{initialCapital,jdbcType=DOUBLE}, + total_assets = #{totalAssets,jdbcType=DOUBLE}, + net_value = #{netValue,jdbcType=DOUBLE}, + margin_used = #{marginUsed,jdbcType=DOUBLE}, + available_funds = #{availableFunds,jdbcType=DOUBLE}, + margin_level = #{marginLevel,jdbcType=DOUBLE}, + position_profit_loss = #{positionProfitLoss,jdbcType=DOUBLE}, + cumulative_profit_loss = #{cumulativeProfitLoss,jdbcType=DOUBLE}, + yield = #{yield,jdbcType=DOUBLE}, + opening_trades = #{openingTrades,jdbcType=INTEGER}, + closing_trades = #{closingTrades,jdbcType=INTEGER}, + school_id = #{schoolId,jdbcType=INTEGER}, + create_school = #{createSchool,jdbcType=VARCHAR}, + training_name = #{trainingName,jdbcType=VARCHAR} + where member_id = #{memberId,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TakeStashMapper.xml b/src/main/resources/mappers/TakeStashMapper.xml new file mode 100644 index 0000000..e381a0d --- /dev/null +++ b/src/main/resources/mappers/TakeStashMapper.xml @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + stash_id, member_id, training_id, trading_code, order_number, buy_sell_type, volume_transaction, + price_transaction, stop_loss, stop_win, time_transaction, status + + + + + + delete from sys_take_stash + where stash_id = #{stashId,jdbcType=VARCHAR} + + + + delete from sys_take_stash + + + + + + + insert into sys_take_stash (stash_id, member_id, training_id, + trading_code, order_number, buy_sell_type, + volume_transaction, price_transaction, stop_loss, + stop_win, time_transaction, status + ) + values (#{stashId,jdbcType=VARCHAR}, #{memberId,jdbcType=VARCHAR}, #{trainingId,jdbcType=VARCHAR}, + #{tradingCode,jdbcType=VARCHAR}, #{orderNumber,jdbcType=VARCHAR}, #{buySellType,jdbcType=VARCHAR}, + #{volumeTransaction,jdbcType=DOUBLE}, #{priceTransaction,jdbcType=DOUBLE}, #{stopLoss,jdbcType=DOUBLE}, + #{stopWin,jdbcType=DOUBLE}, #{timeTransaction,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER} + ) + + + + insert into sys_take_stash + + + stash_id, + + + member_id, + + + training_id, + + + trading_code, + + + order_number, + + + buy_sell_type, + + + volume_transaction, + + + price_transaction, + + + stop_loss, + + + stop_win, + + + time_transaction, + + + status, + + + + + #{stashId,jdbcType=VARCHAR}, + + + #{memberId,jdbcType=VARCHAR}, + + + #{trainingId,jdbcType=VARCHAR}, + + + #{tradingCode,jdbcType=VARCHAR}, + + + #{orderNumber,jdbcType=VARCHAR}, + + + #{buySellType,jdbcType=VARCHAR}, + + + #{volumeTransaction,jdbcType=DOUBLE}, + + + #{priceTransaction,jdbcType=DOUBLE}, + + + #{stopLoss,jdbcType=DOUBLE}, + + + #{stopWin,jdbcType=DOUBLE}, + + + #{timeTransaction,jdbcType=TIMESTAMP}, + + + #{status,jdbcType=INTEGER}, + + + + + + + update sys_take_stash + + + stash_id = #{record.stashId,jdbcType=VARCHAR}, + + + member_id = #{record.memberId,jdbcType=VARCHAR}, + + + training_id = #{record.trainingId,jdbcType=VARCHAR}, + + + trading_code = #{record.tradingCode,jdbcType=VARCHAR}, + + + order_number = #{record.orderNumber,jdbcType=VARCHAR}, + + + buy_sell_type = #{record.buySellType,jdbcType=VARCHAR}, + + + volume_transaction = #{record.volumeTransaction,jdbcType=DOUBLE}, + + + price_transaction = #{record.priceTransaction,jdbcType=DOUBLE}, + + + stop_loss = #{record.stopLoss,jdbcType=DOUBLE}, + + + stop_win = #{record.stopWin,jdbcType=DOUBLE}, + + + time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP}, + + + status = #{record.status,jdbcType=INTEGER}, + + + + + + + + + update sys_take_stash + set stash_id = #{record.stashId,jdbcType=VARCHAR}, + member_id = #{record.memberId,jdbcType=VARCHAR}, + training_id = #{record.trainingId,jdbcType=VARCHAR}, + trading_code = #{record.tradingCode,jdbcType=VARCHAR}, + order_number = #{record.orderNumber,jdbcType=VARCHAR}, + buy_sell_type = #{record.buySellType,jdbcType=VARCHAR}, + volume_transaction = #{record.volumeTransaction,jdbcType=DOUBLE}, + price_transaction = #{record.priceTransaction,jdbcType=DOUBLE}, + stop_loss = #{record.stopLoss,jdbcType=DOUBLE}, + stop_win = #{record.stopWin,jdbcType=DOUBLE}, + time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP}, + status = #{record.status,jdbcType=INTEGER} + + + + + + + update sys_take_stash + + + member_id = #{memberId,jdbcType=VARCHAR}, + + + training_id = #{trainingId,jdbcType=VARCHAR}, + + + trading_code = #{tradingCode,jdbcType=VARCHAR}, + + + order_number = #{orderNumber,jdbcType=VARCHAR}, + + + buy_sell_type = #{buySellType,jdbcType=VARCHAR}, + + + volume_transaction = #{volumeTransaction,jdbcType=DOUBLE}, + + + price_transaction = #{priceTransaction,jdbcType=DOUBLE}, + + + stop_loss = #{stopLoss,jdbcType=DOUBLE}, + + + stop_win = #{stopWin,jdbcType=DOUBLE}, + + + time_transaction = #{timeTransaction,jdbcType=TIMESTAMP}, + + + status = #{status,jdbcType=INTEGER}, + + + where stash_id = #{stashId,jdbcType=VARCHAR} + + + + update sys_take_stash + set member_id = #{memberId,jdbcType=VARCHAR}, + training_id = #{trainingId,jdbcType=VARCHAR}, + trading_code = #{tradingCode,jdbcType=VARCHAR}, + order_number = #{orderNumber,jdbcType=VARCHAR}, + buy_sell_type = #{buySellType,jdbcType=VARCHAR}, + volume_transaction = #{volumeTransaction,jdbcType=DOUBLE}, + price_transaction = #{priceTransaction,jdbcType=DOUBLE}, + stop_loss = #{stopLoss,jdbcType=DOUBLE}, + stop_win = #{stopWin,jdbcType=DOUBLE}, + time_transaction = #{timeTransaction,jdbcType=TIMESTAMP}, + status = #{status,jdbcType=INTEGER} + where stash_id = #{stashId,jdbcType=VARCHAR} + + \ No newline at end of file