|
@@ -0,0 +1,122 @@
|
|
|
+<?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.ym.mec.biz.dal.dao.InspectionItemPlanConclusionDao">
|
|
|
+ <resultMap id="BaseResultMap" type="com.ym.mec.biz.dal.entity.InspectionItemPlanConclusion">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ <!--@Table inspection_item_plan_conclusion-->
|
|
|
+ <id column="id_" property="id" />
|
|
|
+ <result column="plan_id_" property="planId" />
|
|
|
+ <result column="teacher_id_" property="teacherId" />
|
|
|
+ <result column="check item1" property="checkItem1" />
|
|
|
+ <result column="check item2" property="checkItem2" />
|
|
|
+ <result column="check item3" property="checkItem3" />
|
|
|
+ <result column="check item4" property="checkItem4" />
|
|
|
+ <result column="check item5" property="checkItem5" />
|
|
|
+ <result column="check item6" property="checkItem6" />
|
|
|
+ <result column="check item7" property="checkItem7" />
|
|
|
+ <result column="check item8" property="checkItem8" />
|
|
|
+ <result column="check item9" property="checkItem9" />
|
|
|
+ <result column="check item10" property="checkItem10" />
|
|
|
+ <result column="check item11" property="checkItem11" />
|
|
|
+ <result column="check item12" property="checkItem12" />
|
|
|
+ <result column="check item13" property="checkItem13" />
|
|
|
+ <result column="check item14" property="checkItem14" />
|
|
|
+ <result column="check item15" property="checkItem15" />
|
|
|
+ <result column="create_time_" property="createTime" />
|
|
|
+ <result column="update_time_" property="updateTime" />
|
|
|
+ </resultMap>
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ id_, plan_id_, teacher_id_, `check item1`, `check item2`, `check item3`, `check item4`,
|
|
|
+ `check item5`, `check item6`, `check item7`, `check item8`, `check item9`, `check item10`,
|
|
|
+ `check item11`, `check item12`, `check item13`, `check item14`, `check item15`, create_time_,
|
|
|
+ update_time_
|
|
|
+ </sql>
|
|
|
+ <select id="get" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ select
|
|
|
+ <include refid="Base_Column_List" />
|
|
|
+ from inspection_item_plan_conclusion
|
|
|
+ where id_ = #{id}
|
|
|
+ </select>
|
|
|
+ <delete id="delete" parameterType="java.lang.Integer">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ delete from inspection_item_plan_conclusion
|
|
|
+ where id_ = #{id}
|
|
|
+ </delete>
|
|
|
+ <insert id="insert" keyColumn="id_" keyProperty="id" parameterType="com.ym.mec.biz.dal.entity.InspectionItemPlanConclusion" useGeneratedKeys="true">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ insert into inspection_item_plan_conclusion (plan_id_, teacher_id_, `check item1`, `check item2`, `check item3`, `check item4`,
|
|
|
+ `check item5`, `check item6`, `check item7`, `check item8`, `check item9`, `check item10`,
|
|
|
+ `check item11`, `check item12`, `check item13`, `check item14`, `check item15`,
|
|
|
+ create_time_, update_time_)
|
|
|
+ values (#{planId}, #{teacherId}, #{checkItem1}, #{checkItem2}, #{checkItem3}, #{checkItem4},
|
|
|
+ #{checkItem5}, #{checkItem6}, #{checkItem7}, #{checkItem8}, #{checkItem9}, #{checkItem10},
|
|
|
+ #{checkItem11}, #{checkItem12}, #{checkItem13}, #{checkItem14}, #{checkItem15},
|
|
|
+ #{createTime}, #{updateTime})
|
|
|
+ </insert>
|
|
|
+ <update id="update" parameterType="com.ym.mec.biz.dal.entity.InspectionItemPlanConclusion">
|
|
|
+ <!--@mbg.generated-->
|
|
|
+ update inspection_item_plan_conclusion
|
|
|
+ <set>
|
|
|
+ <if test="planId != null">
|
|
|
+ plan_id_ = #{planId},
|
|
|
+ </if>
|
|
|
+ <if test="teacherId != null">
|
|
|
+ teacher_id_ = #{teacherId},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem1 != null">
|
|
|
+ `check item1` = #{checkItem1},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem2 != null">
|
|
|
+ `check item2` = #{checkItem2},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem3 != null">
|
|
|
+ `check item3` = #{checkItem3},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem4 != null">
|
|
|
+ `check item4` = #{checkItem4},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem5 != null">
|
|
|
+ `check item5` = #{checkItem5},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem6 != null">
|
|
|
+ `check item6` = #{checkItem6},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem7 != null">
|
|
|
+ `check item7` = #{checkItem7},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem8 != null">
|
|
|
+ `check item8` = #{checkItem8},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem9 != null">
|
|
|
+ `check item9` = #{checkItem9},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem10 != null">
|
|
|
+ `check item10` = #{checkItem10},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem11 != null">
|
|
|
+ `check item11` = #{checkItem11},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem12 != null">
|
|
|
+ `check item12` = #{checkItem12},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem13 != null">
|
|
|
+ `check item13` = #{checkItem13},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem14 != null">
|
|
|
+ `check item14` = #{checkItem14},
|
|
|
+ </if>
|
|
|
+ <if test="checkItem15 != null">
|
|
|
+ `check item15` = #{checkItem15},
|
|
|
+ </if>
|
|
|
+ <if test="createTime != null">
|
|
|
+ create_time_ = #{createTime},
|
|
|
+ </if>
|
|
|
+ <if test="updateTime != null">
|
|
|
+ update_time_ = #{updateTime},
|
|
|
+ </if>
|
|
|
+ </set>
|
|
|
+ where id_ = #{id}
|
|
|
+ </update>
|
|
|
+</mapper>
|