修改数据库 字段变更
parent
f60adbaf12
commit
6895a3b0de
@ -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;
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -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<Member> 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<String> selectClassGrade();
|
||||
}
|
@ -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<TakeStash> 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);
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
@ -0,0 +1,541 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.forex.trading_trading.mappers.MemberMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.Member">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
<id column="member_id" jdbcType="VARCHAR" property="memberId" />
|
||||
<result column="training_id" jdbcType="VARCHAR" property="trainingId" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="student_number" jdbcType="VARCHAR" property="studentNumber" />
|
||||
<result column="major" jdbcType="VARCHAR" property="major" />
|
||||
<result column="class_grade" jdbcType="VARCHAR" property="classGrade" />
|
||||
<result column="stu_rank" jdbcType="INTEGER" property="stuRank" />
|
||||
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital" />
|
||||
<result column="total_assets" jdbcType="DOUBLE" property="totalAssets" />
|
||||
<result column="net_value" jdbcType="DOUBLE" property="netValue" />
|
||||
<result column="margin_used" jdbcType="DOUBLE" property="marginUsed" />
|
||||
<result column="available_funds" jdbcType="DOUBLE" property="availableFunds" />
|
||||
<result column="margin_level" jdbcType="DOUBLE" property="marginLevel" />
|
||||
<result column="position_profit_loss" jdbcType="DOUBLE" property="positionProfitLoss" />
|
||||
<result column="cumulative_profit_loss" jdbcType="DOUBLE" property="cumulativeProfitLoss" />
|
||||
<result column="yield" jdbcType="DOUBLE" property="yield" />
|
||||
<result column="opening_trades" jdbcType="INTEGER" property="openingTrades" />
|
||||
<result column="closing_trades" jdbcType="INTEGER" property="closingTrades" />
|
||||
<result column="school_id" jdbcType="INTEGER" property="schoolId" />
|
||||
<result column="create_school" jdbcType="VARCHAR" property="createSchool" />
|
||||
<result column="training_name" jdbcType="VARCHAR" property="trainingName" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
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
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_member
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_member
|
||||
where member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
delete from sys_member
|
||||
where member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
delete from sys_member
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
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>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
insert into sys_member
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
member_id,
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
training_id,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="studentNumber != null">
|
||||
student_number,
|
||||
</if>
|
||||
<if test="major != null">
|
||||
major,
|
||||
</if>
|
||||
<if test="classGrade != null">
|
||||
class_grade,
|
||||
</if>
|
||||
<if test="stuRank != null">
|
||||
stu_rank,
|
||||
</if>
|
||||
<if test="initialCapital != null">
|
||||
initial_capital,
|
||||
</if>
|
||||
<if test="totalAssets != null">
|
||||
total_assets,
|
||||
</if>
|
||||
<if test="netValue != null">
|
||||
net_value,
|
||||
</if>
|
||||
<if test="marginUsed != null">
|
||||
margin_used,
|
||||
</if>
|
||||
<if test="availableFunds != null">
|
||||
available_funds,
|
||||
</if>
|
||||
<if test="marginLevel != null">
|
||||
margin_level,
|
||||
</if>
|
||||
<if test="positionProfitLoss != null">
|
||||
position_profit_loss,
|
||||
</if>
|
||||
<if test="cumulativeProfitLoss != null">
|
||||
cumulative_profit_loss,
|
||||
</if>
|
||||
<if test="yield != null">
|
||||
yield,
|
||||
</if>
|
||||
<if test="openingTrades != null">
|
||||
opening_trades,
|
||||
</if>
|
||||
<if test="closingTrades != null">
|
||||
closing_trades,
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id,
|
||||
</if>
|
||||
<if test="createSchool != null">
|
||||
create_school,
|
||||
</if>
|
||||
<if test="trainingName != null">
|
||||
training_name,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
#{trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentNumber != null">
|
||||
#{studentNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="major != null">
|
||||
#{major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classGrade != null">
|
||||
#{classGrade,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stuRank != null">
|
||||
#{stuRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="initialCapital != null">
|
||||
#{initialCapital,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="totalAssets != null">
|
||||
#{totalAssets,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="netValue != null">
|
||||
#{netValue,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="marginUsed != null">
|
||||
#{marginUsed,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="availableFunds != null">
|
||||
#{availableFunds,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="marginLevel != null">
|
||||
#{marginLevel,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="positionProfitLoss != null">
|
||||
#{positionProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="cumulativeProfitLoss != null">
|
||||
#{cumulativeProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="yield != null">
|
||||
#{yield,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="openingTrades != null">
|
||||
#{openingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="closingTrades != null">
|
||||
#{closingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
#{schoolId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createSchool != null">
|
||||
#{createSchool,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="trainingName != null">
|
||||
#{trainingName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultType="java.lang.Long">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
select count(*) from sys_member
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
<set>
|
||||
<if test="record.memberId != null">
|
||||
member_id = #{record.memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.trainingId != null">
|
||||
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.studentNumber != null">
|
||||
student_number = #{record.studentNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.major != null">
|
||||
major = #{record.major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.classGrade != null">
|
||||
class_grade = #{record.classGrade,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.stuRank != null">
|
||||
stu_rank = #{record.stuRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.initialCapital != null">
|
||||
initial_capital = #{record.initialCapital,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.totalAssets != null">
|
||||
total_assets = #{record.totalAssets,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.netValue != null">
|
||||
net_value = #{record.netValue,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.marginUsed != null">
|
||||
margin_used = #{record.marginUsed,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.availableFunds != null">
|
||||
available_funds = #{record.availableFunds,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.marginLevel != null">
|
||||
margin_level = #{record.marginLevel,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.positionProfitLoss != null">
|
||||
position_profit_loss = #{record.positionProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.cumulativeProfitLoss != null">
|
||||
cumulative_profit_loss = #{record.cumulativeProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.yield != null">
|
||||
yield = #{record.yield,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.openingTrades != null">
|
||||
opening_trades = #{record.openingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.closingTrades != null">
|
||||
closing_trades = #{record.closingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.schoolId != null">
|
||||
school_id = #{record.schoolId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.createSchool != null">
|
||||
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.trainingName != null">
|
||||
training_name = #{record.trainingName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
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}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
<set>
|
||||
<if test="trainingId != null">
|
||||
training_id = #{trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="studentNumber != null">
|
||||
student_number = #{studentNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="major != null">
|
||||
major = #{major,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="classGrade != null">
|
||||
class_grade = #{classGrade,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="stuRank != null">
|
||||
stu_rank = #{stuRank,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="initialCapital != null">
|
||||
initial_capital = #{initialCapital,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="totalAssets != null">
|
||||
total_assets = #{totalAssets,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="netValue != null">
|
||||
net_value = #{netValue,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="marginUsed != null">
|
||||
margin_used = #{marginUsed,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="availableFunds != null">
|
||||
available_funds = #{availableFunds,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="marginLevel != null">
|
||||
margin_level = #{marginLevel,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="positionProfitLoss != null">
|
||||
position_profit_loss = #{positionProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="cumulativeProfitLoss != null">
|
||||
cumulative_profit_loss = #{cumulativeProfitLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="yield != null">
|
||||
yield = #{yield,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="openingTrades != null">
|
||||
opening_trades = #{openingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="closingTrades != null">
|
||||
closing_trades = #{closingTrades,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="schoolId != null">
|
||||
school_id = #{schoolId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createSchool != null">
|
||||
create_school = #{createSchool,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="trainingName != null">
|
||||
training_name = #{trainingName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:29:24 CST 2023.
|
||||
-->
|
||||
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}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,398 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.sztzjy.forex.trading_trading.mappers.TakeStashMapper">
|
||||
<resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
<id column="stash_id" jdbcType="VARCHAR" property="stashId" />
|
||||
<result column="member_id" jdbcType="VARCHAR" property="memberId" />
|
||||
<result column="training_id" jdbcType="VARCHAR" property="trainingId" />
|
||||
<result column="trading_code" jdbcType="VARCHAR" property="tradingCode" />
|
||||
<result column="order_number" jdbcType="VARCHAR" property="orderNumber" />
|
||||
<result column="buy_sell_type" jdbcType="VARCHAR" property="buySellType" />
|
||||
<result column="volume_transaction" jdbcType="DOUBLE" property="volumeTransaction" />
|
||||
<result column="price_transaction" jdbcType="DOUBLE" property="priceTransaction" />
|
||||
<result column="stop_loss" jdbcType="DOUBLE" property="stopLoss" />
|
||||
<result column="stop_win" jdbcType="DOUBLE" property="stopWin" />
|
||||
<result column="time_transaction" jdbcType="TIMESTAMP" property="timeTransaction" />
|
||||
<result column="status" jdbcType="INTEGER" property="status" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
stash_id, member_id, training_id, trading_code, order_number, buy_sell_type, volume_transaction,
|
||||
price_transaction, stop_loss, stop_win, time_transaction, status
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStashExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_take_stash
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_take_stash
|
||||
where stash_id = #{stashId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
delete from sys_take_stash
|
||||
where stash_id = #{stashId,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStashExample">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
delete from sys_take_stash
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
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>
|
||||
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
insert into sys_take_stash
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="stashId != null">
|
||||
stash_id,
|
||||
</if>
|
||||
<if test="memberId != null">
|
||||
member_id,
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
training_id,
|
||||
</if>
|
||||
<if test="tradingCode != null">
|
||||
trading_code,
|
||||
</if>
|
||||
<if test="orderNumber != null">
|
||||
order_number,
|
||||
</if>
|
||||
<if test="buySellType != null">
|
||||
buy_sell_type,
|
||||
</if>
|
||||
<if test="volumeTransaction != null">
|
||||
volume_transaction,
|
||||
</if>
|
||||
<if test="priceTransaction != null">
|
||||
price_transaction,
|
||||
</if>
|
||||
<if test="stopLoss != null">
|
||||
stop_loss,
|
||||
</if>
|
||||
<if test="stopWin != null">
|
||||
stop_win,
|
||||
</if>
|
||||
<if test="timeTransaction != null">
|
||||
time_transaction,
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stashId != null">
|
||||
#{stashId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
#{trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tradingCode != null">
|
||||
#{tradingCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderNumber != null">
|
||||
#{orderNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buySellType != null">
|
||||
#{buySellType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="volumeTransaction != null">
|
||||
#{volumeTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="priceTransaction != null">
|
||||
#{priceTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="stopLoss != null">
|
||||
#{stopLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="stopWin != null">
|
||||
#{stopWin,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="timeTransaction != null">
|
||||
#{timeTransaction,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
#{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStashExample" resultType="java.lang.Long">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
select count(*) from sys_take_stash
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
update sys_take_stash
|
||||
<set>
|
||||
<if test="record.stashId != null">
|
||||
stash_id = #{record.stashId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.memberId != null">
|
||||
member_id = #{record.memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.trainingId != null">
|
||||
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.tradingCode != null">
|
||||
trading_code = #{record.tradingCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.orderNumber != null">
|
||||
order_number = #{record.orderNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.buySellType != null">
|
||||
buy_sell_type = #{record.buySellType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.volumeTransaction != null">
|
||||
volume_transaction = #{record.volumeTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.priceTransaction != null">
|
||||
price_transaction = #{record.priceTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.stopLoss != null">
|
||||
stop_loss = #{record.stopLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.stopWin != null">
|
||||
stop_win = #{record.stopWin,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="record.timeTransaction != null">
|
||||
time_transaction = #{record.timeTransaction,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.status != null">
|
||||
status = #{record.status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
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}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
update sys_take_stash
|
||||
<set>
|
||||
<if test="memberId != null">
|
||||
member_id = #{memberId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
training_id = #{trainingId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="tradingCode != null">
|
||||
trading_code = #{tradingCode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="orderNumber != null">
|
||||
order_number = #{orderNumber,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="buySellType != null">
|
||||
buy_sell_type = #{buySellType,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="volumeTransaction != null">
|
||||
volume_transaction = #{volumeTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="priceTransaction != null">
|
||||
price_transaction = #{priceTransaction,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="stopLoss != null">
|
||||
stop_loss = #{stopLoss,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="stopWin != null">
|
||||
stop_win = #{stopWin,jdbcType=DOUBLE},
|
||||
</if>
|
||||
<if test="timeTransaction != null">
|
||||
time_transaction = #{timeTransaction,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where stash_id = #{stashId,jdbcType=VARCHAR}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.TakeStash">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Fri Jun 30 10:35:35 CST 2023.
|
||||
-->
|
||||
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}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue