|
|
@ -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
|
|
|
@ -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.
|
|
|
@ -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
|
|
|
|