From cf99ceefa9c2b5125b12011d3c7d087aaaecf725 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Tue, 4 Jul 2023 16:23:17 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=96=B0=E5=A2=9E=E9=A6=96=E9=A1=B5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=202.=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=BC=E5=BC=8F=E4=B8=BAstring=EF=BC=8C?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E9=87=8D=E6=96=B0=E7=94=9F=E6=88=90=E7=9A=84?= =?UTF-8?q?=E7=9B=B8=E5=85=B3xml=E5=92=8C=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/com/mappers/TrainingMapper.xml | 398 ++++++++++++++++++ 1 file changed, 398 insertions(+) create mode 100644 src/main/resources/com/mappers/TrainingMapper.xml diff --git a/src/main/resources/com/mappers/TrainingMapper.xml b/src/main/resources/com/mappers/TrainingMapper.xml new file mode 100644 index 0000000..08421f4 --- /dev/null +++ b/src/main/resources/com/mappers/TrainingMapper.xml @@ -0,0 +1,398 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + training_id, people_count, start_time, end_time, status, creator_id, create_school, + training_name, creator_name, create_time, update_time, school_id + + + + + + delete from sys_training + where training_id = #{trainingId,jdbcType=VARCHAR} + + + + delete from sys_training + + + + + + + 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 + ) + values (#{trainingId,jdbcType=VARCHAR}, #{peopleCount,jdbcType=INTEGER}, #{startTime,jdbcType=VARCHAR}, + #{endTime,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{creatorId,jdbcType=INTEGER}, + #{createSchool,jdbcType=VARCHAR}, #{trainingName,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR}, + #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{schoolId,jdbcType=INTEGER} + ) + + + + 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, + + + + + #{trainingId,jdbcType=VARCHAR}, + + + #{peopleCount,jdbcType=INTEGER}, + + + #{startTime,jdbcType=VARCHAR}, + + + #{endTime,jdbcType=VARCHAR}, + + + #{status,jdbcType=VARCHAR}, + + + #{creatorId,jdbcType=INTEGER}, + + + #{createSchool,jdbcType=VARCHAR}, + + + #{trainingName,jdbcType=VARCHAR}, + + + #{creatorName,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{schoolId,jdbcType=INTEGER}, + + + + + + + update sys_training + + + training_id = #{record.trainingId,jdbcType=VARCHAR}, + + + people_count = #{record.peopleCount,jdbcType=INTEGER}, + + + start_time = #{record.startTime,jdbcType=VARCHAR}, + + + end_time = #{record.endTime,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=VARCHAR}, + + + creator_id = #{record.creatorId,jdbcType=INTEGER}, + + + create_school = #{record.createSchool,jdbcType=VARCHAR}, + + + training_name = #{record.trainingName,jdbcType=VARCHAR}, + + + creator_name = #{record.creatorName,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + school_id = #{record.schoolId,jdbcType=INTEGER}, + + + + + + + + + update sys_training + set training_id = #{record.trainingId,jdbcType=VARCHAR}, + people_count = #{record.peopleCount,jdbcType=INTEGER}, + start_time = #{record.startTime,jdbcType=VARCHAR}, + end_time = #{record.endTime,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=VARCHAR}, + creator_id = #{record.creatorId,jdbcType=INTEGER}, + create_school = #{record.createSchool,jdbcType=VARCHAR}, + training_name = #{record.trainingName,jdbcType=VARCHAR}, + creator_name = #{record.creatorName,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + school_id = #{record.schoolId,jdbcType=INTEGER} + + + + + + + update sys_training + + + people_count = #{peopleCount,jdbcType=INTEGER}, + + + start_time = #{startTime,jdbcType=VARCHAR}, + + + end_time = #{endTime,jdbcType=VARCHAR}, + + + 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}, + + + where training_id = #{trainingId,jdbcType=VARCHAR} + + + + update sys_training + set people_count = #{peopleCount,jdbcType=INTEGER}, + start_time = #{startTime,jdbcType=VARCHAR}, + end_time = #{endTime,jdbcType=VARCHAR}, + 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} + where training_id = #{trainingId,jdbcType=VARCHAR} + + \ No newline at end of file