diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketData.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketData.java new file mode 100644 index 0000000..501e8a8 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketData.java @@ -0,0 +1,607 @@ +package com.sztzjy.forex.trading_trading.entity; + +import cn.hutool.core.util.IdUtil; +import com.sztzjy.forex.trading_trading.entity.mql5Entity.ForexData; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ForexMarketData { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.id + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String id = IdUtil.simpleUUID(); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.buy_pic + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private Double buyPic; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.close_pri + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private Double closePri; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.code + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String code; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.color + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String color; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.currency + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String currency; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.data_time + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private Date dataTime; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.date + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String date; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.high_pic + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String highPic; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.low_pic + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String lowPic; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.open_pri + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String openPri; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.range + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String range; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.sell_pic + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String sellPic; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.yes_pic + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private String yesPic; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.diff_amo + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private Double diffAmo; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.diff_per + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + private Double diffPer; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database column sys_forex_market_data.is_real + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + + @ApiModelProperty("该字段用于标识数据是否是真实的外汇数据") + private Boolean isReal; + + private String batchId; + + + public String getBatchId() { + return batchId; + } + + public void setBatchId(String batchId) { + this.batchId = batchId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.id + * + * @return the value of sys_forex_market_data.id + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.id + * + * @param id the value for sys_forex_market_data.id + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setId(String id) { + this.id = id == null ? null : id.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.buy_pic + * + * @return the value of sys_forex_market_data.buy_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Double getBuyPic() { + return buyPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.buy_pic + * + * @param buyPic the value for sys_forex_market_data.buy_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setBuyPic(Double buyPic) { + this.buyPic = buyPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.close_pri + * + * @return the value of sys_forex_market_data.close_pri + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Double getClosePri() { + return closePri; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.close_pri + * + * @param closePri the value for sys_forex_market_data.close_pri + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setClosePri(Double closePri) { + this.closePri = closePri; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.code + * + * @return the value of sys_forex_market_data.code + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getCode() { + return code; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.code + * + * @param code the value for sys_forex_market_data.code + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.color + * + * @return the value of sys_forex_market_data.color + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getColor() { + return color; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.color + * + * @param color the value for sys_forex_market_data.color + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setColor(String color) { + this.color = color == null ? null : color.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.currency + * + * @return the value of sys_forex_market_data.currency + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getCurrency() { + return currency; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.currency + * + * @param currency the value for sys_forex_market_data.currency + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setCurrency(String currency) { + this.currency = currency == null ? null : currency.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.data_time + * + * @return the value of sys_forex_market_data.data_time + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Date getDataTime() { + return dataTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.data_time + * + * @param dataTime the value for sys_forex_market_data.data_time + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setDataTime(Date dataTime) { + this.dataTime = dataTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.date + * + * @return the value of sys_forex_market_data.date + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getDate() { + return date; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.date + * + * @param date the value for sys_forex_market_data.date + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setDate(String date) { + this.date = date == null ? null : date.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.high_pic + * + * @return the value of sys_forex_market_data.high_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getHighPic() { + return highPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.high_pic + * + * @param highPic the value for sys_forex_market_data.high_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setHighPic(String highPic) { + this.highPic = highPic == null ? null : highPic.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.low_pic + * + * @return the value of sys_forex_market_data.low_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getLowPic() { + return lowPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.low_pic + * + * @param lowPic the value for sys_forex_market_data.low_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setLowPic(String lowPic) { + this.lowPic = lowPic == null ? null : lowPic.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.open_pri + * + * @return the value of sys_forex_market_data.open_pri + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getOpenPri() { + return openPri; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.open_pri + * + * @param openPri the value for sys_forex_market_data.open_pri + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setOpenPri(String openPri) { + this.openPri = openPri == null ? null : openPri.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.range + * + * @return the value of sys_forex_market_data.range + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getRange() { + return range; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.range + * + * @param range the value for sys_forex_market_data.range + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setRange(String range) { + this.range = range == null ? null : range.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.sell_pic + * + * @return the value of sys_forex_market_data.sell_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getSellPic() { + return sellPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.sell_pic + * + * @param sellPic the value for sys_forex_market_data.sell_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setSellPic(String sellPic) { + this.sellPic = sellPic == null ? null : sellPic.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.yes_pic + * + * @return the value of sys_forex_market_data.yes_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public String getYesPic() { + return yesPic; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.yes_pic + * + * @param yesPic the value for sys_forex_market_data.yes_pic + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setYesPic(String yesPic) { + this.yesPic = yesPic == null ? null : yesPic.trim(); + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.diff_amo + * + * @return the value of sys_forex_market_data.diff_amo + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Double getDiffAmo() { + return diffAmo; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.diff_amo + * + * @param diffAmo the value for sys_forex_market_data.diff_amo + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setDiffAmo(Double diffAmo) { + this.diffAmo = diffAmo; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.diff_per + * + * @return the value of sys_forex_market_data.diff_per + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Double getDiffPer() { + return diffPer; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.diff_per + * + * @param diffPer the value for sys_forex_market_data.diff_per + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setDiffPer(Double diffPer) { + this.diffPer = diffPer; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column sys_forex_market_data.is_real + * + * @return the value of sys_forex_market_data.is_real + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public Boolean getIsReal() { + return isReal; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column sys_forex_market_data.is_real + * + * @param isReal the value for sys_forex_market_data.is_real + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + public void setIsReal(Boolean isReal) { + this.isReal = isReal; + } + + + public static ForexMarketData copyToForexData(ForexData data,String batchId) { + ForexMarketData marketData = new ForexMarketData(); + marketData.setBuyPic(Double.valueOf(data.getBuyPic())); + marketData.setClosePri(Double.valueOf(data.getClosePri())); + marketData.setCode(data.getCode()); + marketData.setColor(data.getColor()); + marketData.setCurrency(data.getCurrency()); + marketData.setDataTime(new Date()); + marketData.setDate(data.getDate()); + marketData.setHighPic(data.getHighPic()); + marketData.setLowPic(data.getLowPic()); + marketData.setOpenPri(data.getOpenPri()); + marketData.setRange(data.getRange()); + marketData.setSellPic(data.getSellPic()); + marketData.setYesPic(data.getYesPic()); + marketData.setDiffAmo(Double.valueOf(data.getDiffAmo())); + marketData.setDiffPer(Double.valueOf(data.getDiffPer())); + marketData.setIsReal(true); + marketData.setBatchId(batchId); + return marketData; + } + + + + public static List copyToForexData(List forexDataList){ + List forexMarketData =new ArrayList<>(); + String batchId = IdUtil.simpleUUID(); + forexDataList.forEach(data->{ + forexMarketData.add(copyToForexData(data,batchId)); + }); + return forexMarketData; + } + + public ForexMarketData(Double buyPic, + Double closePri, + String code, + String color, + String currency, + Date dataTime, + String date, + String highPic, + String lowPic, + String openPri, + String range, + String sellPic, + String yesPic, + Double diffAmo, + Double diffPer, + String batchId) { + this.id = IdUtil.simpleUUID(); + this.isReal=false; + this.buyPic = buyPic; + this.closePri = closePri; + this.code = code; + this.color = color; + this.currency = currency; + this.dataTime = dataTime; + this.date = date; + this.highPic = highPic; + this.lowPic = lowPic; + this.openPri = openPri; + this.range = range; + this.sellPic = sellPic; + this.yesPic = yesPic; + this.diffAmo = diffAmo; + this.diffPer = diffPer; + this.batchId = batchId; + } + + public ForexMarketData() { + } +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketDataExample.java b/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketDataExample.java new file mode 100644 index 0000000..cf9c17a --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/entity/ForexMarketDataExample.java @@ -0,0 +1,1502 @@ +package com.sztzjy.forex.trading_trading.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ForexMarketDataExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + public ForexMarketDataExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 CST 2023 + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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 andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andBuyPicIsNull() { + addCriterion("buy_pic is null"); + return (Criteria) this; + } + + public Criteria andBuyPicIsNotNull() { + addCriterion("buy_pic is not null"); + return (Criteria) this; + } + + public Criteria andBuyPicEqualTo(Double value) { + addCriterion("buy_pic =", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicNotEqualTo(Double value) { + addCriterion("buy_pic <>", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicGreaterThan(Double value) { + addCriterion("buy_pic >", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicGreaterThanOrEqualTo(Double value) { + addCriterion("buy_pic >=", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicLessThan(Double value) { + addCriterion("buy_pic <", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicLessThanOrEqualTo(Double value) { + addCriterion("buy_pic <=", value, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicIn(List values) { + addCriterion("buy_pic in", values, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicNotIn(List values) { + addCriterion("buy_pic not in", values, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicBetween(Double value1, Double value2) { + addCriterion("buy_pic between", value1, value2, "buyPic"); + return (Criteria) this; + } + + public Criteria andBuyPicNotBetween(Double value1, Double value2) { + addCriterion("buy_pic not between", value1, value2, "buyPic"); + return (Criteria) this; + } + + public Criteria andClosePriIsNull() { + addCriterion("close_pri is null"); + return (Criteria) this; + } + + public Criteria andClosePriIsNotNull() { + addCriterion("close_pri is not null"); + return (Criteria) this; + } + + public Criteria andClosePriEqualTo(Double value) { + addCriterion("close_pri =", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriNotEqualTo(Double value) { + addCriterion("close_pri <>", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriGreaterThan(Double value) { + addCriterion("close_pri >", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriGreaterThanOrEqualTo(Double value) { + addCriterion("close_pri >=", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriLessThan(Double value) { + addCriterion("close_pri <", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriLessThanOrEqualTo(Double value) { + addCriterion("close_pri <=", value, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriIn(List values) { + addCriterion("close_pri in", values, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriNotIn(List values) { + addCriterion("close_pri not in", values, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriBetween(Double value1, Double value2) { + addCriterion("close_pri between", value1, value2, "closePri"); + return (Criteria) this; + } + + public Criteria andClosePriNotBetween(Double value1, Double value2) { + addCriterion("close_pri not between", value1, value2, "closePri"); + return (Criteria) this; + } + + public Criteria andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andColorIsNull() { + addCriterion("color is null"); + return (Criteria) this; + } + + public Criteria andColorIsNotNull() { + addCriterion("color is not null"); + return (Criteria) this; + } + + public Criteria andColorEqualTo(String value) { + addCriterion("color =", value, "color"); + return (Criteria) this; + } + + public Criteria andColorNotEqualTo(String value) { + addCriterion("color <>", value, "color"); + return (Criteria) this; + } + + public Criteria andColorGreaterThan(String value) { + addCriterion("color >", value, "color"); + return (Criteria) this; + } + + public Criteria andColorGreaterThanOrEqualTo(String value) { + addCriterion("color >=", value, "color"); + return (Criteria) this; + } + + public Criteria andColorLessThan(String value) { + addCriterion("color <", value, "color"); + return (Criteria) this; + } + + public Criteria andColorLessThanOrEqualTo(String value) { + addCriterion("color <=", value, "color"); + return (Criteria) this; + } + + public Criteria andColorLike(String value) { + addCriterion("color like", value, "color"); + return (Criteria) this; + } + + public Criteria andColorNotLike(String value) { + addCriterion("color not like", value, "color"); + return (Criteria) this; + } + + public Criteria andColorIn(List values) { + addCriterion("color in", values, "color"); + return (Criteria) this; + } + + public Criteria andColorNotIn(List values) { + addCriterion("color not in", values, "color"); + return (Criteria) this; + } + + public Criteria andColorBetween(String value1, String value2) { + addCriterion("color between", value1, value2, "color"); + return (Criteria) this; + } + + public Criteria andColorNotBetween(String value1, String value2) { + addCriterion("color not between", value1, value2, "color"); + return (Criteria) this; + } + + public Criteria andCurrencyIsNull() { + addCriterion("currency is null"); + return (Criteria) this; + } + + public Criteria andCurrencyIsNotNull() { + addCriterion("currency is not null"); + return (Criteria) this; + } + + public Criteria andCurrencyEqualTo(String value) { + addCriterion("currency =", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotEqualTo(String value) { + addCriterion("currency <>", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyGreaterThan(String value) { + addCriterion("currency >", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyGreaterThanOrEqualTo(String value) { + addCriterion("currency >=", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLessThan(String value) { + addCriterion("currency <", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLessThanOrEqualTo(String value) { + addCriterion("currency <=", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyLike(String value) { + addCriterion("currency like", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotLike(String value) { + addCriterion("currency not like", value, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyIn(List values) { + addCriterion("currency in", values, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotIn(List values) { + addCriterion("currency not in", values, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyBetween(String value1, String value2) { + addCriterion("currency between", value1, value2, "currency"); + return (Criteria) this; + } + + public Criteria andCurrencyNotBetween(String value1, String value2) { + addCriterion("currency not between", value1, value2, "currency"); + return (Criteria) this; + } + + public Criteria andDataTimeIsNull() { + addCriterion("data_time is null"); + return (Criteria) this; + } + + public Criteria andDataTimeIsNotNull() { + addCriterion("data_time is not null"); + return (Criteria) this; + } + + public Criteria andDataTimeEqualTo(Date value) { + addCriterion("data_time =", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeNotEqualTo(Date value) { + addCriterion("data_time <>", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeGreaterThan(Date value) { + addCriterion("data_time >", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeGreaterThanOrEqualTo(Date value) { + addCriterion("data_time >=", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeLessThan(Date value) { + addCriterion("data_time <", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeLessThanOrEqualTo(Date value) { + addCriterion("data_time <=", value, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeIn(List values) { + addCriterion("data_time in", values, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeNotIn(List values) { + addCriterion("data_time not in", values, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeBetween(Date value1, Date value2) { + addCriterion("data_time between", value1, value2, "dataTime"); + return (Criteria) this; + } + + public Criteria andDataTimeNotBetween(Date value1, Date value2) { + addCriterion("data_time not between", value1, value2, "dataTime"); + return (Criteria) this; + } + + public Criteria andDateIsNull() { + addCriterion("date is null"); + return (Criteria) this; + } + + public Criteria andDateIsNotNull() { + addCriterion("date is not null"); + return (Criteria) this; + } + + public Criteria andDateEqualTo(String value) { + addCriterion("date =", value, "date"); + return (Criteria) this; + } + + public Criteria andDateNotEqualTo(String value) { + addCriterion("date <>", value, "date"); + return (Criteria) this; + } + + public Criteria andDateGreaterThan(String value) { + addCriterion("date >", value, "date"); + return (Criteria) this; + } + + public Criteria andDateGreaterThanOrEqualTo(String value) { + addCriterion("date >=", value, "date"); + return (Criteria) this; + } + + public Criteria andDateLessThan(String value) { + addCriterion("date <", value, "date"); + return (Criteria) this; + } + + public Criteria andDateLessThanOrEqualTo(String value) { + addCriterion("date <=", value, "date"); + return (Criteria) this; + } + + public Criteria andDateLike(String value) { + addCriterion("date like", value, "date"); + return (Criteria) this; + } + + public Criteria andDateNotLike(String value) { + addCriterion("date not like", value, "date"); + return (Criteria) this; + } + + public Criteria andDateIn(List values) { + addCriterion("date in", values, "date"); + return (Criteria) this; + } + + public Criteria andDateNotIn(List values) { + addCriterion("date not in", values, "date"); + return (Criteria) this; + } + + public Criteria andDateBetween(String value1, String value2) { + addCriterion("date between", value1, value2, "date"); + return (Criteria) this; + } + + public Criteria andDateNotBetween(String value1, String value2) { + addCriterion("date not between", value1, value2, "date"); + return (Criteria) this; + } + + public Criteria andHighPicIsNull() { + addCriterion("high_pic is null"); + return (Criteria) this; + } + + public Criteria andHighPicIsNotNull() { + addCriterion("high_pic is not null"); + return (Criteria) this; + } + + public Criteria andHighPicEqualTo(String value) { + addCriterion("high_pic =", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicNotEqualTo(String value) { + addCriterion("high_pic <>", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicGreaterThan(String value) { + addCriterion("high_pic >", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicGreaterThanOrEqualTo(String value) { + addCriterion("high_pic >=", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicLessThan(String value) { + addCriterion("high_pic <", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicLessThanOrEqualTo(String value) { + addCriterion("high_pic <=", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicLike(String value) { + addCriterion("high_pic like", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicNotLike(String value) { + addCriterion("high_pic not like", value, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicIn(List values) { + addCriterion("high_pic in", values, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicNotIn(List values) { + addCriterion("high_pic not in", values, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicBetween(String value1, String value2) { + addCriterion("high_pic between", value1, value2, "highPic"); + return (Criteria) this; + } + + public Criteria andHighPicNotBetween(String value1, String value2) { + addCriterion("high_pic not between", value1, value2, "highPic"); + return (Criteria) this; + } + + public Criteria andLowPicIsNull() { + addCriterion("low_pic is null"); + return (Criteria) this; + } + + public Criteria andLowPicIsNotNull() { + addCriterion("low_pic is not null"); + return (Criteria) this; + } + + public Criteria andLowPicEqualTo(String value) { + addCriterion("low_pic =", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicNotEqualTo(String value) { + addCriterion("low_pic <>", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicGreaterThan(String value) { + addCriterion("low_pic >", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicGreaterThanOrEqualTo(String value) { + addCriterion("low_pic >=", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicLessThan(String value) { + addCriterion("low_pic <", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicLessThanOrEqualTo(String value) { + addCriterion("low_pic <=", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicLike(String value) { + addCriterion("low_pic like", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicNotLike(String value) { + addCriterion("low_pic not like", value, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicIn(List values) { + addCriterion("low_pic in", values, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicNotIn(List values) { + addCriterion("low_pic not in", values, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicBetween(String value1, String value2) { + addCriterion("low_pic between", value1, value2, "lowPic"); + return (Criteria) this; + } + + public Criteria andLowPicNotBetween(String value1, String value2) { + addCriterion("low_pic not between", value1, value2, "lowPic"); + return (Criteria) this; + } + + public Criteria andOpenPriIsNull() { + addCriterion("open_pri is null"); + return (Criteria) this; + } + + public Criteria andOpenPriIsNotNull() { + addCriterion("open_pri is not null"); + return (Criteria) this; + } + + public Criteria andOpenPriEqualTo(String value) { + addCriterion("open_pri =", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriNotEqualTo(String value) { + addCriterion("open_pri <>", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriGreaterThan(String value) { + addCriterion("open_pri >", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriGreaterThanOrEqualTo(String value) { + addCriterion("open_pri >=", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriLessThan(String value) { + addCriterion("open_pri <", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriLessThanOrEqualTo(String value) { + addCriterion("open_pri <=", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriLike(String value) { + addCriterion("open_pri like", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriNotLike(String value) { + addCriterion("open_pri not like", value, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriIn(List values) { + addCriterion("open_pri in", values, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriNotIn(List values) { + addCriterion("open_pri not in", values, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriBetween(String value1, String value2) { + addCriterion("open_pri between", value1, value2, "openPri"); + return (Criteria) this; + } + + public Criteria andOpenPriNotBetween(String value1, String value2) { + addCriterion("open_pri not between", value1, value2, "openPri"); + return (Criteria) this; + } + + public Criteria andRangeIsNull() { + addCriterion("range is null"); + return (Criteria) this; + } + + public Criteria andRangeIsNotNull() { + addCriterion("range is not null"); + return (Criteria) this; + } + + public Criteria andRangeEqualTo(String value) { + addCriterion("range =", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeNotEqualTo(String value) { + addCriterion("range <>", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeGreaterThan(String value) { + addCriterion("range >", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeGreaterThanOrEqualTo(String value) { + addCriterion("range >=", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeLessThan(String value) { + addCriterion("range <", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeLessThanOrEqualTo(String value) { + addCriterion("range <=", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeLike(String value) { + addCriterion("range like", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeNotLike(String value) { + addCriterion("range not like", value, "range"); + return (Criteria) this; + } + + public Criteria andRangeIn(List values) { + addCriterion("range in", values, "range"); + return (Criteria) this; + } + + public Criteria andRangeNotIn(List values) { + addCriterion("range not in", values, "range"); + return (Criteria) this; + } + + public Criteria andRangeBetween(String value1, String value2) { + addCriterion("range between", value1, value2, "range"); + return (Criteria) this; + } + + public Criteria andRangeNotBetween(String value1, String value2) { + addCriterion("range not between", value1, value2, "range"); + return (Criteria) this; + } + + public Criteria andSellPicIsNull() { + addCriterion("sell_pic is null"); + return (Criteria) this; + } + + public Criteria andSellPicIsNotNull() { + addCriterion("sell_pic is not null"); + return (Criteria) this; + } + + public Criteria andSellPicEqualTo(String value) { + addCriterion("sell_pic =", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicNotEqualTo(String value) { + addCriterion("sell_pic <>", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicGreaterThan(String value) { + addCriterion("sell_pic >", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicGreaterThanOrEqualTo(String value) { + addCriterion("sell_pic >=", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicLessThan(String value) { + addCriterion("sell_pic <", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicLessThanOrEqualTo(String value) { + addCriterion("sell_pic <=", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicLike(String value) { + addCriterion("sell_pic like", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicNotLike(String value) { + addCriterion("sell_pic not like", value, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicIn(List values) { + addCriterion("sell_pic in", values, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicNotIn(List values) { + addCriterion("sell_pic not in", values, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicBetween(String value1, String value2) { + addCriterion("sell_pic between", value1, value2, "sellPic"); + return (Criteria) this; + } + + public Criteria andSellPicNotBetween(String value1, String value2) { + addCriterion("sell_pic not between", value1, value2, "sellPic"); + return (Criteria) this; + } + + public Criteria andYesPicIsNull() { + addCriterion("yes_pic is null"); + return (Criteria) this; + } + + public Criteria andYesPicIsNotNull() { + addCriterion("yes_pic is not null"); + return (Criteria) this; + } + + public Criteria andYesPicEqualTo(String value) { + addCriterion("yes_pic =", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicNotEqualTo(String value) { + addCriterion("yes_pic <>", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicGreaterThan(String value) { + addCriterion("yes_pic >", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicGreaterThanOrEqualTo(String value) { + addCriterion("yes_pic >=", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicLessThan(String value) { + addCriterion("yes_pic <", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicLessThanOrEqualTo(String value) { + addCriterion("yes_pic <=", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicLike(String value) { + addCriterion("yes_pic like", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicNotLike(String value) { + addCriterion("yes_pic not like", value, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicIn(List values) { + addCriterion("yes_pic in", values, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicNotIn(List values) { + addCriterion("yes_pic not in", values, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicBetween(String value1, String value2) { + addCriterion("yes_pic between", value1, value2, "yesPic"); + return (Criteria) this; + } + + public Criteria andYesPicNotBetween(String value1, String value2) { + addCriterion("yes_pic not between", value1, value2, "yesPic"); + return (Criteria) this; + } + + public Criteria andDiffAmoIsNull() { + addCriterion("diff_amo is null"); + return (Criteria) this; + } + + public Criteria andDiffAmoIsNotNull() { + addCriterion("diff_amo is not null"); + return (Criteria) this; + } + + public Criteria andDiffAmoEqualTo(Double value) { + addCriterion("diff_amo =", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoNotEqualTo(Double value) { + addCriterion("diff_amo <>", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoGreaterThan(Double value) { + addCriterion("diff_amo >", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoGreaterThanOrEqualTo(Double value) { + addCriterion("diff_amo >=", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoLessThan(Double value) { + addCriterion("diff_amo <", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoLessThanOrEqualTo(Double value) { + addCriterion("diff_amo <=", value, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoIn(List values) { + addCriterion("diff_amo in", values, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoNotIn(List values) { + addCriterion("diff_amo not in", values, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoBetween(Double value1, Double value2) { + addCriterion("diff_amo between", value1, value2, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffAmoNotBetween(Double value1, Double value2) { + addCriterion("diff_amo not between", value1, value2, "diffAmo"); + return (Criteria) this; + } + + public Criteria andDiffPerIsNull() { + addCriterion("diff_per is null"); + return (Criteria) this; + } + + public Criteria andDiffPerIsNotNull() { + addCriterion("diff_per is not null"); + return (Criteria) this; + } + + public Criteria andDiffPerEqualTo(Double value) { + addCriterion("diff_per =", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerNotEqualTo(Double value) { + addCriterion("diff_per <>", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerGreaterThan(Double value) { + addCriterion("diff_per >", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerGreaterThanOrEqualTo(Double value) { + addCriterion("diff_per >=", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerLessThan(Double value) { + addCriterion("diff_per <", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerLessThanOrEqualTo(Double value) { + addCriterion("diff_per <=", value, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerIn(List values) { + addCriterion("diff_per in", values, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerNotIn(List values) { + addCriterion("diff_per not in", values, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerBetween(Double value1, Double value2) { + addCriterion("diff_per between", value1, value2, "diffPer"); + return (Criteria) this; + } + + public Criteria andDiffPerNotBetween(Double value1, Double value2) { + addCriterion("diff_per not between", value1, value2, "diffPer"); + return (Criteria) this; + } + + public Criteria andIsRealIsNull() { + addCriterion("is_real is null"); + return (Criteria) this; + } + + public Criteria andIsRealIsNotNull() { + addCriterion("is_real is not null"); + return (Criteria) this; + } + + public Criteria andIsRealEqualTo(Boolean value) { + addCriterion("is_real =", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealNotEqualTo(Boolean value) { + addCriterion("is_real <>", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealGreaterThan(Boolean value) { + addCriterion("is_real >", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealGreaterThanOrEqualTo(Boolean value) { + addCriterion("is_real >=", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealLessThan(Boolean value) { + addCriterion("is_real <", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealLessThanOrEqualTo(Boolean value) { + addCriterion("is_real <=", value, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealIn(List values) { + addCriterion("is_real in", values, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealNotIn(List values) { + addCriterion("is_real not in", values, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealBetween(Boolean value1, Boolean value2) { + addCriterion("is_real between", value1, value2, "isReal"); + return (Criteria) this; + } + + public Criteria andIsRealNotBetween(Boolean value1, Boolean value2) { + addCriterion("is_real not between", value1, value2, "isReal"); + return (Criteria) this; + } + + public Criteria andBatchIdIsNull() { + addCriterion("batch_id is null"); + return (Criteria) this; + } + + public Criteria andBatchIdIsNotNull() { + addCriterion("batch_id is not null"); + return (Criteria) this; + } + + public Criteria andBatchIdEqualTo(String value) { + addCriterion("batch_id =", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdNotEqualTo(String value) { + addCriterion("batch_id <>", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdGreaterThan(String value) { + addCriterion("batch_id >", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdGreaterThanOrEqualTo(String value) { + addCriterion("batch_id >=", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdLessThan(String value) { + addCriterion("batch_id <", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdLessThanOrEqualTo(String value) { + addCriterion("batch_id <=", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdLike(String value) { + addCriterion("batch_id like", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdNotLike(String value) { + addCriterion("batch_id not like", value, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdIn(List values) { + addCriterion("batch_id in", values, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdNotIn(List values) { + addCriterion("batch_id not in", values, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdBetween(String value1, String value2) { + addCriterion("batch_id between", value1, value2, "batchId"); + return (Criteria) this; + } + + public Criteria andBatchIdNotBetween(String value1, String value2) { + addCriterion("batch_id not between", value1, value2, "batchId"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table sys_forex_market_data + * + * @mbg.generated do_not_delete_during_merge Mon Jul 17 00:48:00 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_forex_market_data + * + * @mbg.generated Mon Jul 17 00:48:00 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/ForexMarketDataMapper.java b/src/main/java/com/sztzjy/forex/trading_trading/mappers/ForexMarketDataMapper.java new file mode 100644 index 0000000..fbe9593 --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/mappers/ForexMarketDataMapper.java @@ -0,0 +1,115 @@ +package com.sztzjy.forex.trading_trading.mappers; + +import com.sztzjy.forex.trading_trading.entity.ForexMarketData; +import com.sztzjy.forex.trading_trading.entity.ForexMarketDataExample; + +import java.util.List; + +import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; + +@Mapper +public interface ForexMarketDataMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + long countByExample(ForexMarketDataExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int deleteByExample(ForexMarketDataExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int deleteByPrimaryKey(String id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int insert(ForexMarketData record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int insertSelective(ForexMarketData record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + List selectByExample(ForexMarketDataExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + ForexMarketData selectByPrimaryKey(String id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int updateByExampleSelective(@Param("record") ForexMarketData record, @Param("example") ForexMarketDataExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int updateByExample(@Param("record") ForexMarketData record, @Param("example") ForexMarketDataExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int updateByPrimaryKeySelective(ForexMarketData record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table sys_forex_market_data + * + * @mbg.generated Sun Jul 16 23:42:14 CST 2023 + */ + int updateByPrimaryKey(ForexMarketData record); + + + void insertAll(List forexMarketData); + + + @Select("SELECT * " + + "FROM sys_forex_market_data " + + "WHERE batch_Id = ( " + + " SELECT batch_Id " + + " FROM sys_forex_market_data " + + " ORDER BY data_time DESC " + + " LIMIT 1 " + + ")") + List selectLastForexMarketData(); +} \ No newline at end of file diff --git a/src/main/java/com/sztzjy/forex/trading_trading/service/ForexMarketDataService.java b/src/main/java/com/sztzjy/forex/trading_trading/service/ForexMarketDataService.java new file mode 100644 index 0000000..6db5fde --- /dev/null +++ b/src/main/java/com/sztzjy/forex/trading_trading/service/ForexMarketDataService.java @@ -0,0 +1,31 @@ +package com.sztzjy.forex.trading_trading.service; + +import com.sztzjy.forex.trading_trading.entity.ForexMarketData; +import com.sztzjy.forex.trading_trading.entity.mql5Entity.ForexData; +import com.sztzjy.forex.trading_trading.mappers.ForexMarketDataMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service +public class ForexMarketDataService { + + @Autowired + ForexMarketDataMapper forexMarketDataMapper; + + + public void insertAll(List forexDataList) { + List forexMarketDataList = ForexMarketData.copyToForexData(forexDataList); + forexMarketDataMapper.insertAll(forexMarketDataList); + } + + public void insertAllByMarketData(List forexMarketData) { + forexMarketDataMapper.insertAll(forexMarketData); + } + + public List selectLastForexMarketData() { + return forexMarketDataMapper.selectLastForexMarketData(); + } + +} diff --git a/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java b/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java index 92fcf95..a54b811 100644 --- a/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java +++ b/src/main/java/com/sztzjy/forex/trading_trading/service/ScheduledTask.java @@ -1,24 +1,115 @@ package com.sztzjy.forex.trading_trading.service; +import cn.hutool.core.util.IdUtil; +import com.sztzjy.forex.trading_trading.common.mql5API.Mql5API; +import com.sztzjy.forex.trading_trading.entity.ForexMarketData; +import com.sztzjy.forex.trading_trading.entity.mql5Entity.ForexData; import com.sztzjy.forex.trading_trading.mappers.TrainingMapper; +import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Service; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Random; + /** * 定时任务 */ @Service +@Slf4j public class ScheduledTask { @Autowired TrainingMapper trainingMapper; - + @Autowired + ForexMarketDataService forexMarketDataService; @Scheduled(cron = "0 * * * * *") // 修改实训状态 每分钟执行一次 public void updateTrainingStatus() { trainingMapper.updateTrainingStatusToInProgress(); trainingMapper.updateTrainingStatusToEnd(); } + + //每两分钟执行一次 真实的数据插入 + @Scheduled(cron = "0 */2 * * * ?") + public void insertForexMarketData() { + //TODO getMarketQuotation方法获取的数据有空指针,待解决 + Mql5API api = new Mql5API(); + List forexData = api.getMarketQuotation(); + forexMarketDataService.insertAll(forexData); + } + + //每16秒执行一次 根据真实汇率数据生成模拟汇率数据 + @Scheduled(cron = "0/16 * * * * ?") + public void insertSimulatedForexMarketData() { + //获取batchId相同的最后入库的数据 + List forexMarketDataList = forexMarketDataService.selectLastForexMarketData(); + if(forexMarketDataList==null|| forexMarketDataList.size()==0){ + return; + } + try { + Random random = new Random(); + List forexMarketData = new ArrayList<>(); + String batchId = IdUtil.simpleUUID(); + for (ForexMarketData data : forexMarketDataList) { + ForexMarketData resultData = new ForexMarketData( + modifyDecimal(data.getBuyPic(), random), + modifyDecimal(data.getClosePri(), random), + data.getCode(), + data.getColor(), + data.getCurrency(), + new Date(), + data.getDate(), + data.getHighPic(), + data.getLowPic(), + data.getOpenPri(), + data.getRange(), + data.getSellPic(), + data.getYesPic(), + modifyDecimal(data.getDiffAmo(), random), + modifyDecimal(data.getDiffPer(), random), + batchId); + forexMarketData.add(resultData); + } + forexMarketDataService.insertAllByMarketData(forexMarketData); + log.info("--------插入模拟汇率数据成功------"); + }catch (Exception e) { + log.error("----------插入模拟汇率数据失败:", e); + } + + } + + + /** + * 将小数点后1位之后的数字修改为随机数 + * + * @param value 原始值 + * @param random 随机数的random 避免多次创建而出现重复值 所以引用实际方法中的random + * @return 修改后的值 + */ + private static double modifyDecimal(double value, Random random) { + String stringValue = Double.toString(value); + int indexOfDecimal = stringValue.indexOf("."); + + if (indexOfDecimal >= 0 && indexOfDecimal + 2 < stringValue.length()) { + StringBuilder modifiedValue = new StringBuilder(stringValue.substring(0, indexOfDecimal + 2)); + int randomDigit; + + for (int i = indexOfDecimal + 2; i < stringValue.length(); i++) { + if (i == indexOfDecimal + 2) { + modifiedValue.append(stringValue.charAt(i)); + } else { + randomDigit = random.nextInt(10); + modifiedValue.append(randomDigit); + } + } + value = Double.parseDouble(modifiedValue.toString()); + } + return value; + } + } diff --git a/src/main/resources/mappers/ForexMarketDataMapper.xml b/src/main/resources/mappers/ForexMarketDataMapper.xml new file mode 100644 index 0000000..347442b --- /dev/null +++ b/src/main/resources/mappers/ForexMarketDataMapper.xml @@ -0,0 +1,496 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + + id, buy_pic, close_pri, code, color, currency, data_time, date, high_pic, low_pic, + open_pri, range, sell_pic, yes_pic, diff_amo, diff_per, is_real + + + + + + delete from sys_forex_market_data + where id = #{id,jdbcType=VARCHAR} + + + + delete from sys_forex_market_data + + + + + + + insert into sys_forex_market_data (id, buy_pic, close_pri, + code, color, currency, + data_time, date, high_pic, + low_pic, open_pri, range, + sell_pic, yes_pic, diff_amo, + diff_per, is_real) + values (#{id,jdbcType=VARCHAR}, #{buyPic,jdbcType=DOUBLE}, #{closePri,jdbcType=DOUBLE}, + #{code,jdbcType=VARCHAR}, #{color,jdbcType=VARCHAR}, #{currency,jdbcType=VARCHAR}, + #{dataTime,jdbcType=TIMESTAMP}, #{date,jdbcType=VARCHAR}, #{highPic,jdbcType=VARCHAR}, + #{lowPic,jdbcType=VARCHAR}, #{openPri,jdbcType=VARCHAR}, #{range,jdbcType=VARCHAR}, + #{sellPic,jdbcType=VARCHAR}, #{yesPic,jdbcType=VARCHAR}, #{diffAmo,jdbcType=DOUBLE}, + #{diffPer,jdbcType=DOUBLE}, #{isReal,jdbcType=BIT}) + + + + insert into sys_forex_market_data (id, buy_pic, close_pri, + code, color, currency, + data_time, date, high_pic, + low_pic, open_pri, range, + sell_pic, yes_pic, diff_amo, + diff_per, is_real) + values + + (#{item.id,jdbcType=VARCHAR}, #{item.buyPic,jdbcType=DOUBLE}, #{item.closePri,jdbcType=DOUBLE}, + #{item.code,jdbcType=VARCHAR}, #{item.color,jdbcType=VARCHAR}, #{item.currency,jdbcType=VARCHAR}, + #{item.dataTime,jdbcType=TIMESTAMP}, #{item.date,jdbcType=VARCHAR}, #{item.highPic,jdbcType=VARCHAR}, + #{item.lowPic,jdbcType=VARCHAR}, #{item.openPri,jdbcType=VARCHAR}, #{item.range,jdbcType=VARCHAR}, + #{item.sellPic,jdbcType=VARCHAR}, #{item.yesPic,jdbcType=VARCHAR}, #{item.diffAmo,jdbcType=DOUBLE}, + #{item.diffPer,jdbcType=DOUBLE}, #{item.isReal,jdbcType=BIT}) + + + + + + + + insert into sys_forex_market_data + + + id, + + + buy_pic, + + + close_pri, + + + code, + + + color, + + + currency, + + + data_time, + + + date, + + + high_pic, + + + low_pic, + + + open_pri, + + + range, + + + sell_pic, + + + yes_pic, + + + diff_amo, + + + diff_per, + + + is_real, + + + + + #{id,jdbcType=VARCHAR}, + + + #{buyPic,jdbcType=DOUBLE}, + + + #{closePri,jdbcType=DOUBLE}, + + + #{code,jdbcType=VARCHAR}, + + + #{color,jdbcType=VARCHAR}, + + + #{currency,jdbcType=VARCHAR}, + + + #{dataTime,jdbcType=TIMESTAMP}, + + + #{date,jdbcType=VARCHAR}, + + + #{highPic,jdbcType=VARCHAR}, + + + #{lowPic,jdbcType=VARCHAR}, + + + #{openPri,jdbcType=VARCHAR}, + + + #{range,jdbcType=VARCHAR}, + + + #{sellPic,jdbcType=VARCHAR}, + + + #{yesPic,jdbcType=VARCHAR}, + + + #{diffAmo,jdbcType=DOUBLE}, + + + #{diffPer,jdbcType=DOUBLE}, + + + #{isReal,jdbcType=BIT}, + + + + + + + update sys_forex_market_data + + + id = #{record.id,jdbcType=VARCHAR}, + + + buy_pic = #{record.buyPic,jdbcType=DOUBLE}, + + + close_pri = #{record.closePri,jdbcType=DOUBLE}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + color = #{record.color,jdbcType=VARCHAR}, + + + currency = #{record.currency,jdbcType=VARCHAR}, + + + data_time = #{record.dataTime,jdbcType=TIMESTAMP}, + + + date = #{record.date,jdbcType=VARCHAR}, + + + high_pic = #{record.highPic,jdbcType=VARCHAR}, + + + low_pic = #{record.lowPic,jdbcType=VARCHAR}, + + + open_pri = #{record.openPri,jdbcType=VARCHAR}, + + + range = #{record.range,jdbcType=VARCHAR}, + + + sell_pic = #{record.sellPic,jdbcType=VARCHAR}, + + + yes_pic = #{record.yesPic,jdbcType=VARCHAR}, + + + diff_amo = #{record.diffAmo,jdbcType=DOUBLE}, + + + diff_per = #{record.diffPer,jdbcType=DOUBLE}, + + + is_real = #{record.isReal,jdbcType=BIT}, + + + + + + + + + update sys_forex_market_data + set id = #{record.id,jdbcType=VARCHAR}, + buy_pic = #{record.buyPic,jdbcType=DOUBLE}, + close_pri = #{record.closePri,jdbcType=DOUBLE}, + code = #{record.code,jdbcType=VARCHAR}, + color = #{record.color,jdbcType=VARCHAR}, + currency = #{record.currency,jdbcType=VARCHAR}, + data_time = #{record.dataTime,jdbcType=TIMESTAMP}, + date = #{record.date,jdbcType=VARCHAR}, + high_pic = #{record.highPic,jdbcType=VARCHAR}, + low_pic = #{record.lowPic,jdbcType=VARCHAR}, + open_pri = #{record.openPri,jdbcType=VARCHAR}, + range = #{record.range,jdbcType=VARCHAR}, + sell_pic = #{record.sellPic,jdbcType=VARCHAR}, + yes_pic = #{record.yesPic,jdbcType=VARCHAR}, + diff_amo = #{record.diffAmo,jdbcType=DOUBLE}, + diff_per = #{record.diffPer,jdbcType=DOUBLE}, + is_real = #{record.isReal,jdbcType=BIT} + + + + + + + update sys_forex_market_data + + + buy_pic = #{buyPic,jdbcType=DOUBLE}, + + + close_pri = #{closePri,jdbcType=DOUBLE}, + + + code = #{code,jdbcType=VARCHAR}, + + + color = #{color,jdbcType=VARCHAR}, + + + currency = #{currency,jdbcType=VARCHAR}, + + + data_time = #{dataTime,jdbcType=TIMESTAMP}, + + + date = #{date,jdbcType=VARCHAR}, + + + high_pic = #{highPic,jdbcType=VARCHAR}, + + + low_pic = #{lowPic,jdbcType=VARCHAR}, + + + open_pri = #{openPri,jdbcType=VARCHAR}, + + + range = #{range,jdbcType=VARCHAR}, + + + sell_pic = #{sellPic,jdbcType=VARCHAR}, + + + yes_pic = #{yesPic,jdbcType=VARCHAR}, + + + diff_amo = #{diffAmo,jdbcType=DOUBLE}, + + + diff_per = #{diffPer,jdbcType=DOUBLE}, + + + is_real = #{isReal,jdbcType=BIT}, + + + where id = #{id,jdbcType=VARCHAR} + + + + update sys_forex_market_data + set buy_pic = #{buyPic,jdbcType=DOUBLE}, + close_pri = #{closePri,jdbcType=DOUBLE}, + code = #{code,jdbcType=VARCHAR}, + color = #{color,jdbcType=VARCHAR}, + currency = #{currency,jdbcType=VARCHAR}, + data_time = #{dataTime,jdbcType=TIMESTAMP}, + date = #{date,jdbcType=VARCHAR}, + high_pic = #{highPic,jdbcType=VARCHAR}, + low_pic = #{lowPic,jdbcType=VARCHAR}, + open_pri = #{openPri,jdbcType=VARCHAR}, + range = #{range,jdbcType=VARCHAR}, + sell_pic = #{sellPic,jdbcType=VARCHAR}, + yes_pic = #{yesPic,jdbcType=VARCHAR}, + diff_amo = #{diffAmo,jdbcType=DOUBLE}, + diff_per = #{diffPer,jdbcType=DOUBLE}, + is_real = #{isReal,jdbcType=BIT} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file