|
|
@ -7,29 +7,29 @@
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element was generated on Wed Jul 19 15:55:18 CST 2023.
|
|
|
|
This element was generated on Wed Jul 19 15:55:18 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<id column="member_id" jdbcType="VARCHAR" property="memberId" />
|
|
|
|
<id column="member_id" jdbcType="VARCHAR" property="memberId"/>
|
|
|
|
<result column="training_id" jdbcType="VARCHAR" property="trainingId" />
|
|
|
|
<result column="training_id" jdbcType="VARCHAR" property="trainingId"/>
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" />
|
|
|
|
<result column="name" jdbcType="VARCHAR" property="name"/>
|
|
|
|
<result column="student_number" jdbcType="VARCHAR" property="studentNumber" />
|
|
|
|
<result column="student_number" jdbcType="VARCHAR" property="studentNumber"/>
|
|
|
|
<result column="major" jdbcType="VARCHAR" property="major" />
|
|
|
|
<result column="major" jdbcType="VARCHAR" property="major"/>
|
|
|
|
<result column="class_grade" jdbcType="VARCHAR" property="classGrade" />
|
|
|
|
<result column="class_grade" jdbcType="VARCHAR" property="classGrade"/>
|
|
|
|
<result column="stu_rank" jdbcType="INTEGER" property="stuRank" />
|
|
|
|
<result column="stu_rank" jdbcType="INTEGER" property="stuRank"/>
|
|
|
|
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital" />
|
|
|
|
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital"/>
|
|
|
|
<result column="total_assets" jdbcType="DOUBLE" property="totalAssets" />
|
|
|
|
<result column="total_assets" jdbcType="DOUBLE" property="totalAssets"/>
|
|
|
|
<result column="net_value" jdbcType="DOUBLE" property="netValue" />
|
|
|
|
<result column="net_value" jdbcType="DOUBLE" property="netValue"/>
|
|
|
|
<result column="margin_used" jdbcType="DOUBLE" property="marginUsed" />
|
|
|
|
<result column="margin_used" jdbcType="DOUBLE" property="marginUsed"/>
|
|
|
|
<result column="available_funds" jdbcType="DOUBLE" property="availableFunds" />
|
|
|
|
<result column="available_funds" jdbcType="DOUBLE" property="availableFunds"/>
|
|
|
|
<result column="margin_level" jdbcType="DOUBLE" property="marginLevel" />
|
|
|
|
<result column="margin_level" jdbcType="DOUBLE" property="marginLevel"/>
|
|
|
|
<result column="position_profit_loss" jdbcType="DOUBLE" property="positionProfitLoss" />
|
|
|
|
<result column="position_profit_loss" jdbcType="DOUBLE" property="positionProfitLoss"/>
|
|
|
|
<result column="cumulative_profit_loss" jdbcType="DOUBLE" property="cumulativeProfitLoss" />
|
|
|
|
<result column="cumulative_profit_loss" jdbcType="DOUBLE" property="cumulativeProfitLoss"/>
|
|
|
|
<result column="yield" jdbcType="DOUBLE" property="yield" />
|
|
|
|
<result column="yield" jdbcType="DOUBLE" property="yield"/>
|
|
|
|
<result column="opening_trades" jdbcType="INTEGER" property="openingTrades" />
|
|
|
|
<result column="opening_trades" jdbcType="INTEGER" property="openingTrades"/>
|
|
|
|
<result column="closing_trades" jdbcType="INTEGER" property="closingTrades" />
|
|
|
|
<result column="closing_trades" jdbcType="INTEGER" property="closingTrades"/>
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId" />
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId"/>
|
|
|
|
<result column="create_school" jdbcType="VARCHAR" property="createSchool" />
|
|
|
|
<result column="create_school" jdbcType="VARCHAR" property="createSchool"/>
|
|
|
|
<result column="training_name" jdbcType="VARCHAR" property="trainingName" />
|
|
|
|
<result column="training_name" jdbcType="VARCHAR" property="trainingName"/>
|
|
|
|
<result column="report_score" jdbcType="INTEGER" property="reportScore" />
|
|
|
|
<result column="report_score" jdbcType="INTEGER" property="reportScore"/>
|
|
|
|
<result column="class_id" jdbcType="INTEGER" property="classId" />
|
|
|
|
<result column="class_id" jdbcType="INTEGER" property="classId"/>
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
@ -54,7 +54,8 @@
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
and ${criterion.condition}
|
|
|
|
and ${criterion.condition}
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
|
|
|
separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
@ -77,6 +78,43 @@
|
|
|
|
cumulative_profit_loss, yield, opening_trades, closing_trades, school_id, create_school,
|
|
|
|
cumulative_profit_loss, yield, opening_trades, closing_trades, school_id, create_school,
|
|
|
|
training_name, report_score, class_id
|
|
|
|
training_name, report_score, class_id
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMemberByNameAndNumber" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
|
|
|
FROM sys_member
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
AND school_id = #{schoolId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
|
|
|
and (name like "%"#{name}"%" or student_number like "%"#{name}"%")
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
ORDER BY yield DESC
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectMembers" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
|
|
|
FROM sys_member
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="schoolId != null and schoolId != ''">
|
|
|
|
|
|
|
|
AND school_id = #{schoolId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="classGrade != null and classGrade!= ''">
|
|
|
|
|
|
|
|
AND class_grade = #{classGrade}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingId != null and trainingId!= ''">
|
|
|
|
|
|
|
|
AND training_id = #{trainingId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
|
|
|
and (name like "%"#{name}"%" or student_number like "%"#{name}"%")
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
ORDER BY yield DESC
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
@ -84,7 +122,7 @@
|
|
|
|
This element was generated on Wed Jul 19 15:55:18 CST 2023.
|
|
|
|
This element was generated on Wed Jul 19 15:55:18 CST 2023.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select
|
|
|
|
select
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
from sys_member
|
|
|
|
from sys_member
|
|
|
|
where member_id = #{memberId,jdbcType=VARCHAR}
|
|
|
|
where member_id = #{memberId,jdbcType=VARCHAR}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -105,7 +143,7 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
delete from sys_member
|
|
|
|
delete from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</delete>
|
|
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
@ -131,7 +169,8 @@
|
|
|
|
#{schoolId,jdbcType=INTEGER}, #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR},
|
|
|
|
#{schoolId,jdbcType=INTEGER}, #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR},
|
|
|
|
#{reportScore,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER})
|
|
|
|
#{reportScore,jdbcType=INTEGER}, #{classId,jdbcType=INTEGER})
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample" resultType="java.lang.Long">
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.MemberExample"
|
|
|
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
@ -139,7 +178,7 @@
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
select count(*) from sys_member
|
|
|
|
select count(*) from sys_member
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
@ -173,7 +212,7 @@
|
|
|
|
report_score = #{record.reportScore,jdbcType=INTEGER},
|
|
|
|
report_score = #{record.reportScore,jdbcType=INTEGER},
|
|
|
|
class_id = #{record.classId,jdbcType=INTEGER}
|
|
|
|
class_id = #{record.classId,jdbcType=INTEGER}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Member">
|
|
|
@ -266,8 +305,6 @@
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
WARNING - @mbg.generated
|
|
|
|