|
|
@ -1,427 +1,437 @@
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?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">
|
|
|
|
<!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.TrainingMapper">
|
|
|
|
<mapper namespace="com.sztzjy.forex.trading_trading.mappers.TrainingMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
<resultMap id="BaseResultMap" type="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<id column="training_id" jdbcType="VARCHAR" property="trainingId"/>
|
|
|
|
<id column="training_id" jdbcType="VARCHAR" property="trainingId" />
|
|
|
|
<result column="people_count" jdbcType="INTEGER" property="peopleCount"/>
|
|
|
|
<result column="people_count" jdbcType="INTEGER" property="peopleCount" />
|
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime"/>
|
|
|
|
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" />
|
|
|
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime"/>
|
|
|
|
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" />
|
|
|
|
<result column="status" jdbcType="VARCHAR" property="status"/>
|
|
|
|
<result column="status" jdbcType="VARCHAR" property="status" />
|
|
|
|
<result column="creator_id" jdbcType="INTEGER" property="creatorId"/>
|
|
|
|
<result column="creator_id" jdbcType="INTEGER" property="creatorId" />
|
|
|
|
<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="creator_name" jdbcType="VARCHAR" property="creatorName"/>
|
|
|
|
<result column="creator_name" jdbcType="VARCHAR" property="creatorName" />
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
|
|
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId"/>
|
|
|
|
<result column="school_id" jdbcType="INTEGER" property="schoolId" />
|
|
|
|
<result column="weight_id" jdbcType="VARCHAR" property="weightId"/>
|
|
|
|
<result column="weight_id" jdbcType="VARCHAR" property="weightId" />
|
|
|
|
</resultMap>
|
|
|
|
<result column="initial_capital" jdbcType="DOUBLE" property="initialCapital" />
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
</resultMap>
|
|
|
|
<!--
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
<!--
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
-->
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
<where>
|
|
|
|
-->
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
<where>
|
|
|
|
<if test="criteria.valid">
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
<if test="criteria.valid">
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
<choose>
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
<choose>
|
|
|
|
and ${criterion.condition}
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition}
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
</when>
|
|
|
|
and ${criterion.condition}
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
and ${criterion.condition}
|
|
|
|
separator=",">
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
#{listItem}
|
|
|
|
#{listItem}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
</choose>
|
|
|
|
</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 Jul 06 12:03:59 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>
|
|
|
|
</foreach>
|
|
|
|
</where>
|
|
|
|
</trim>
|
|
|
|
</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 Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
training_id, people_count, start_time, end_time, status, creator_id, create_school,
|
|
|
|
|
|
|
|
training_name, creator_name, create_time, update_time, school_id, weight_id
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample"
|
|
|
|
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
|
|
|
distinct
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
|
|
|
from sys_training
|
|
|
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</foreach>
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
|
|
|
</where>
|
|
|
|
<!--
|
|
|
|
</sql>
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
<sql id="Update_By_Example_Where_Clause">
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<!--
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
-->
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
select
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
-->
|
|
|
|
from sys_training
|
|
|
|
<where>
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
|
</select>
|
|
|
|
<if test="criteria.valid">
|
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
|
|
<trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
|
<!--
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
<choose>
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
and ${criterion.condition}
|
|
|
|
-->
|
|
|
|
</when>
|
|
|
|
delete from sys_training
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
and ${criterion.condition} #{criterion.value}
|
|
|
|
</delete>
|
|
|
|
</when>
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample">
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
<!--
|
|
|
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
</when>
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
and ${criterion.condition}
|
|
|
|
-->
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
delete from sys_training
|
|
|
|
#{listItem}
|
|
|
|
<if test="_parameter != null">
|
|
|
|
</foreach>
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
</when>
|
|
|
|
</if>
|
|
|
|
</choose>
|
|
|
|
</delete>
|
|
|
|
</foreach>
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
</trim>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
insert into sys_training (training_id, people_count, start_time,
|
|
|
|
|
|
|
|
end_time, status, creator_id,
|
|
|
|
|
|
|
|
create_school, training_name, creator_name,
|
|
|
|
|
|
|
|
create_time, update_time, school_id,
|
|
|
|
|
|
|
|
weight_id)
|
|
|
|
|
|
|
|
values (#{trainingId,jdbcType=VARCHAR}, #{peopleCount,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{weightId,jdbcType=VARCHAR})
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
insert into sys_training
|
|
|
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="trainingId != null">
|
|
|
|
|
|
|
|
training_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
|
|
|
|
people_count,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="startTime != null">
|
|
|
|
|
|
|
|
start_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
|
|
|
|
end_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
|
|
|
status,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorId != null">
|
|
|
|
|
|
|
|
creator_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createSchool != null">
|
|
|
|
|
|
|
|
create_school,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingName != null">
|
|
|
|
|
|
|
|
training_name,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorName != null">
|
|
|
|
|
|
|
|
creator_name,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
create_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
|
|
|
update_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
school_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="weightId != null">
|
|
|
|
|
|
|
|
weight_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="trainingId != null">
|
|
|
|
|
|
|
|
#{trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
|
|
|
|
#{peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="startTime != null">
|
|
|
|
|
|
|
|
#{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
|
|
|
#{status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorId != null">
|
|
|
|
|
|
|
|
#{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createSchool != null">
|
|
|
|
|
|
|
|
#{createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingName != null">
|
|
|
|
|
|
|
|
#{trainingName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorName != null">
|
|
|
|
|
|
|
|
#{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
#{schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="weightId != null">
|
|
|
|
|
|
|
|
#{weightId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample"
|
|
|
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
select count(*) from sys_training
|
|
|
|
|
|
|
|
<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 Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_training
|
|
|
|
|
|
|
|
<set>
|
|
|
|
|
|
|
|
<if test="record.trainingId != null">
|
|
|
|
|
|
|
|
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.peopleCount != null">
|
|
|
|
|
|
|
|
people_count = #{record.peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.startTime != null">
|
|
|
|
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.endTime != null">
|
|
|
|
|
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.status != null">
|
|
|
|
|
|
|
|
status = #{record.status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.creatorId != null">
|
|
|
|
|
|
|
|
creator_id = #{record.creatorId,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>
|
|
|
|
|
|
|
|
<if test="record.creatorName != null">
|
|
|
|
|
|
|
|
creator_name = #{record.creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.createTime != null">
|
|
|
|
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.updateTime != null">
|
|
|
|
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.weightId != null">
|
|
|
|
|
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</set>
|
|
|
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
</foreach>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
</where>
|
|
|
|
<!--
|
|
|
|
</sql>
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<!--
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
-->
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
update sys_training
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
set training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
-->
|
|
|
|
|
|
|
|
training_id, people_count, start_time, end_time, status, creator_id, create_school,
|
|
|
|
|
|
|
|
training_name, creator_name, create_time, update_time, school_id, weight_id, initial_capital
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
<select id="selectByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample" resultMap="BaseResultMap">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
|
|
|
distinct
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
|
|
|
from sys_training
|
|
|
|
|
|
|
|
<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 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
select
|
|
|
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
|
|
|
from sys_training
|
|
|
|
|
|
|
|
where training_id = #{trainingId,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 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
delete from sys_training
|
|
|
|
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
delete from sys_training
|
|
|
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
<insert id="insert" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
insert into sys_training (training_id, people_count, start_time,
|
|
|
|
|
|
|
|
end_time, status, creator_id,
|
|
|
|
|
|
|
|
create_school, training_name, creator_name,
|
|
|
|
|
|
|
|
create_time, update_time, school_id,
|
|
|
|
|
|
|
|
weight_id, initial_capital)
|
|
|
|
|
|
|
|
values (#{trainingId,jdbcType=VARCHAR}, #{peopleCount,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
#{weightId,jdbcType=VARCHAR}, #{initialCapital,jdbcType=DOUBLE})
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<insert id="insertSelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
insert into sys_training
|
|
|
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="trainingId != null">
|
|
|
|
|
|
|
|
training_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
|
|
|
|
people_count,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="startTime != null">
|
|
|
|
|
|
|
|
start_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
|
|
|
|
end_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
|
|
|
status,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorId != null">
|
|
|
|
|
|
|
|
creator_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createSchool != null">
|
|
|
|
|
|
|
|
create_school,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingName != null">
|
|
|
|
|
|
|
|
training_name,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorName != null">
|
|
|
|
|
|
|
|
creator_name,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
create_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
|
|
|
update_time,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
school_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="weightId != null">
|
|
|
|
|
|
|
|
weight_id,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="initialCapital != null">
|
|
|
|
|
|
|
|
initial_capital,
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
|
|
|
<if test="trainingId != null">
|
|
|
|
|
|
|
|
#{trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
|
|
|
|
#{peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="startTime != null">
|
|
|
|
|
|
|
|
#{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
|
|
|
|
#{endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
|
|
|
#{status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorId != null">
|
|
|
|
|
|
|
|
#{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createSchool != null">
|
|
|
|
|
|
|
|
#{createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingName != null">
|
|
|
|
|
|
|
|
#{trainingName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorName != null">
|
|
|
|
|
|
|
|
#{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
|
|
|
|
#{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
|
|
|
|
#{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
|
|
|
|
#{schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="weightId != null">
|
|
|
|
|
|
|
|
#{weightId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="initialCapital != null">
|
|
|
|
|
|
|
|
#{initialCapital,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</trim>
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
<select id="countByExample" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample" 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 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
select count(*) from sys_training
|
|
|
|
|
|
|
|
<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 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_training
|
|
|
|
|
|
|
|
<set>
|
|
|
|
|
|
|
|
<if test="record.trainingId != null">
|
|
|
|
|
|
|
|
training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.peopleCount != null">
|
|
|
|
people_count = #{record.peopleCount,jdbcType=INTEGER},
|
|
|
|
people_count = #{record.peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.startTime != null">
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.endTime != null">
|
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP},
|
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.status != null">
|
|
|
|
status = #{record.status,jdbcType=VARCHAR},
|
|
|
|
status = #{record.status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.creatorId != null">
|
|
|
|
creator_id = #{record.creatorId,jdbcType=INTEGER},
|
|
|
|
creator_id = #{record.creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.createSchool != null">
|
|
|
|
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
|
|
|
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.trainingName != null">
|
|
|
|
training_name = #{record.trainingName,jdbcType=VARCHAR},
|
|
|
|
training_name = #{record.trainingName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.creatorName != null">
|
|
|
|
creator_name = #{record.creatorName,jdbcType=VARCHAR},
|
|
|
|
creator_name = #{record.creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.createTime != null">
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.updateTime != null">
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="record.schoolId != null">
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER},
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER},
|
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR}
|
|
|
|
</if>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="record.weightId != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
<if test="record.initialCapital != null">
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
initial_capital = #{record.initialCapital,jdbcType=DOUBLE},
|
|
|
|
<!--
|
|
|
|
</if>
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
</set>
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<if test="_parameter != null">
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
-->
|
|
|
|
</if>
|
|
|
|
update sys_training
|
|
|
|
</update>
|
|
|
|
<set>
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
<!--
|
|
|
|
people_count = #{peopleCount,jdbcType=INTEGER},
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
</if>
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
<if test="startTime != null">
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
-->
|
|
|
|
</if>
|
|
|
|
update sys_training
|
|
|
|
<if test="endTime != null">
|
|
|
|
set training_id = #{record.trainingId,jdbcType=VARCHAR},
|
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
|
people_count = #{record.peopleCount,jdbcType=INTEGER},
|
|
|
|
</if>
|
|
|
|
start_time = #{record.startTime,jdbcType=TIMESTAMP},
|
|
|
|
<if test="status != null">
|
|
|
|
end_time = #{record.endTime,jdbcType=TIMESTAMP},
|
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
|
status = #{record.status,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
creator_id = #{record.creatorId,jdbcType=INTEGER},
|
|
|
|
<if test="creatorId != null">
|
|
|
|
create_school = #{record.createSchool,jdbcType=VARCHAR},
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
training_name = #{record.trainingName,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
creator_name = #{record.creatorName,jdbcType=VARCHAR},
|
|
|
|
<if test="createSchool != null">
|
|
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
|
|
|
create_school = #{createSchool,jdbcType=VARCHAR},
|
|
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
|
|
|
|
</if>
|
|
|
|
school_id = #{record.schoolId,jdbcType=INTEGER},
|
|
|
|
<if test="trainingName != null">
|
|
|
|
weight_id = #{record.weightId,jdbcType=VARCHAR},
|
|
|
|
training_name = #{trainingName,jdbcType=VARCHAR},
|
|
|
|
initial_capital = #{record.initialCapital,jdbcType=DOUBLE}
|
|
|
|
</if>
|
|
|
|
<if test="_parameter != null">
|
|
|
|
<if test="creatorName != null">
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
creator_name = #{creatorName,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</update>
|
|
|
|
<if test="createTime != null">
|
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
<!--
|
|
|
|
</if>
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
<if test="updateTime != null">
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
</if>
|
|
|
|
-->
|
|
|
|
<if test="schoolId != null">
|
|
|
|
update sys_training
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER},
|
|
|
|
<set>
|
|
|
|
</if>
|
|
|
|
<if test="peopleCount != null">
|
|
|
|
<if test="weightId != null">
|
|
|
|
people_count = #{peopleCount,jdbcType=INTEGER},
|
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR},
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="startTime != null">
|
|
|
|
</set>
|
|
|
|
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Thu Jul 06 12:03:59 CST 2023.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_training
|
|
|
|
|
|
|
|
set people_count = #{peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="endTime != null">
|
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="status != null">
|
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorId != null">
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createSchool != null">
|
|
|
|
create_school = #{createSchool,jdbcType=VARCHAR},
|
|
|
|
create_school = #{createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="trainingName != null">
|
|
|
|
training_name = #{trainingName,jdbcType=VARCHAR},
|
|
|
|
training_name = #{trainingName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="creatorName != null">
|
|
|
|
creator_name = #{creatorName,jdbcType=VARCHAR},
|
|
|
|
creator_name = #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="createTime != null">
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="updateTime != null">
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="schoolId != null">
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER},
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER},
|
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR}
|
|
|
|
</if>
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
<if test="weightId != null">
|
|
|
|
</update>
|
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR},
|
|
|
|
<select id="selectByPage" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample"
|
|
|
|
</if>
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
<if test="initialCapital != null">
|
|
|
|
|
|
|
|
initial_capital = #{initialCapital,jdbcType=DOUBLE},
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</set>
|
|
|
|
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<update id="updateByPrimaryKey" parameterType="com.sztzjy.forex.trading_trading.entity.Training">
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
|
|
|
WARNING - @mbg.generated
|
|
|
|
|
|
|
|
This element is automatically generated by MyBatis Generator, do not modify.
|
|
|
|
|
|
|
|
This element was generated on Fri Jun 21 13:41:49 CST 2024.
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
update sys_training
|
|
|
|
|
|
|
|
set people_count = #{peopleCount,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
start_time = #{startTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
end_time = #{endTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
creator_id = #{creatorId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
create_school = #{createSchool,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
training_name = #{trainingName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
creator_name = #{creatorName,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
|
|
|
school_id = #{schoolId,jdbcType=INTEGER},
|
|
|
|
|
|
|
|
weight_id = #{weightId,jdbcType=VARCHAR},
|
|
|
|
|
|
|
|
initial_capital = #{initialCapital,jdbcType=DOUBLE}
|
|
|
|
|
|
|
|
where training_id = #{trainingId,jdbcType=VARCHAR}
|
|
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
<select id="selectByPage" parameterType="com.sztzjy.forex.trading_trading.entity.TrainingExample" resultMap="BaseResultMap">
|
|
|
|
select * from training
|
|
|
|
select * from training
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<!--待确认过滤条件-->
|
|
|
|
<!--待确认过滤条件-->
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
<if test="orderByClause != null and orderByClause != ''">
|
|
|
|
<if test="orderByClause != null and orderByClause != ''">
|
|
|
|
<bind name="safeOrderByClause" value="${orderByClause}"/>
|
|
|
|
<bind name="safeOrderByClause" value="${orderByClause}" />
|
|
|
|
ORDER BY ${safeOrderByClause}
|
|
|
|
ORDER BY ${safeOrderByClause}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|