修改数据库 字段变更
parent
b60ba37fd6
commit
f60adbaf12
@ -1,100 +0,0 @@
|
||||
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 {
|
||||
List<String> selectClassGrade();
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
long countByExample(MemberExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int deleteByExample(MemberExample example);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int deleteByPrimaryKey(Integer memberId);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int insert(Member record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int insertSelective(Member record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
Member selectByPrimaryKey(Integer memberId);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int updateByPrimaryKeySelective(Member record);
|
||||
|
||||
/**
|
||||
* This method was generated by MyBatis Generator.
|
||||
* This method corresponds to the database table sys_member
|
||||
*
|
||||
* @mbg.generated Thu Jun 29 11:19:15 CST 2023
|
||||
*/
|
||||
int updateByPrimaryKey(Member record);
|
||||
}
|
@ -1,497 +0,0 @@
|
||||
<?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 Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
<id column="member_id" jdbcType="INTEGER" property="memberId" />
|
||||
<result column="training_id" jdbcType="INTEGER" 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" />
|
||||
</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 Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 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
|
||||
</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 Thu Jun 29 11:19:15 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.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from sys_member
|
||||
where member_id = #{memberId,jdbcType=INTEGER}
|
||||
</select>
|
||||
<select id="selectClassGrade" resultType="java.lang.String">
|
||||
SELECT class_grade
|
||||
FROM sys_member
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
This element was generated on Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
delete from sys_member
|
||||
where member_id = #{memberId,jdbcType=INTEGER}
|
||||
</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 Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 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
|
||||
)
|
||||
values (#{memberId,jdbcType=INTEGER}, #{trainingId,jdbcType=INTEGER}, #{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}
|
||||
)
|
||||
</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 Thu Jun 29 11:19:15 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>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="memberId != null">
|
||||
#{memberId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="trainingId != null">
|
||||
#{trainingId,jdbcType=INTEGER},
|
||||
</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>
|
||||
</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 Thu Jun 29 11:19:15 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 Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
<set>
|
||||
<if test="record.memberId != null">
|
||||
member_id = #{record.memberId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.trainingId != null">
|
||||
training_id = #{record.trainingId,jdbcType=INTEGER},
|
||||
</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>
|
||||
</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 Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
set member_id = #{record.memberId,jdbcType=INTEGER},
|
||||
training_id = #{record.trainingId,jdbcType=INTEGER},
|
||||
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}
|
||||
<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 Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
<set>
|
||||
<if test="trainingId != null">
|
||||
training_id = #{trainingId,jdbcType=INTEGER},
|
||||
</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>
|
||||
</set>
|
||||
where member_id = #{memberId,jdbcType=INTEGER}
|
||||
</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 Thu Jun 29 11:19:15 CST 2023.
|
||||
-->
|
||||
update sys_member
|
||||
set training_id = #{trainingId,jdbcType=INTEGER},
|
||||
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}
|
||||
where member_id = #{memberId,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue