| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <?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="cn.com.goldenwater.dcproj.dao.AttZhejiangJgCheckDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.AttZhejiangJgCheck" id="attZhejiangJgCheckResultMap">
- <result property="id" column="ID"/>
- <result property="departId" column="DEPART_ID"/>
- <result property="isCreateGroup" column="IS_CREATE_GROUP"/>
- <result property="isSureDepart" column="IS_SURE_DEPART"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isCreateTeam" column="IS_CREATE_TEAM"/>
- <result property="teamContain" column="TEAM_CONTAIN"/>
- <result property="lgtd" column="LGTD"/>
- <result property="lttd" column="LTTD"/>
- <result property="lgtdpc" column="LGTDPC"/>
- <result property="lttdpc" column="LTTDPC"/>
- <result property="isCreateYearPlan" column="IS_CREATE_YEAR_PLAN"/>
- <result property="isFindAndSlove" column="IS_FIND_AND_SLOVE"/>
- <result property="otherQuestion" column="OTHER_QUESTION"/>
- <result property="specialWay" column="SPECIAL_WAY"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="persId" column="PERS_ID"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- DEPART_ID,
- IS_CREATE_GROUP,
- IS_SURE_DEPART,
- DATA_STAT,
- IS_CREATE_TEAM,
- TEAM_CONTAIN,
- LGTD,
- LTTD,
- LGTDPC,
- LTTDPC,
- IS_CREATE_YEAR_PLAN,
- IS_FIND_AND_SLOVE,
- OTHER_QUESTION,
- SPECIAL_WAY,
- INTM,
- UPTM,
- PERS_ID
- </sql>
- <sql id="entity_properties">
- #{id},
- #{departId},
- #{isCreateGroup},
- #{isSureDepart},
- #{dataStat},
- #{isCreateTeam},
- #{teamContain},
- #{lgtd},
- #{lttd},
- #{lgtdpc},
- #{lttdpc},
- #{isCreateYearPlan},
- #{isFindAndSlove},
- #{otherQuestion},
- #{specialWay},
- #{intm},
- #{uptm},
- #{persId}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="departId != null and departId != ''">and DEPART_ID = #{departId}</if>
- <if test="isCreateGroup != null and isCreateGroup != ''">and IS_CREATE_GROUP = #{isCreateGroup}</if>
- <if test="isSureDepart != null and isSureDepart != ''">and IS_SURE_DEPART = #{isSureDepart}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="isCreateTeam != null and isCreateTeam != ''">and IS_CREATE_TEAM = #{isCreateTeam}</if>
- <if test="teamContain != null and teamContain != ''">and TEAM_CONTAIN = #{teamContain}</if>
- <if test="lgtd != null and lgtd != ''">and LGTD = #{lgtd}</if>
- <if test="lttd != null and lttd != ''">and LTTD = #{lttd}</if>
- <if test="lgtdpc != null and lgtdpc != ''">and LGTDPC = #{lgtdpc}</if>
- <if test="lttdpc != null and lttdpc != ''">and LTTDPC = #{lttdpc}</if>
- <if test="isCreateYearPlan != null and isCreateYearPlan != ''">and IS_CREATE_YEAR_PLAN = #{isCreateYearPlan}</if>
- <if test="isFindAndSlove != null and isFindAndSlove != ''">and IS_FIND_AND_SLOVE = #{isFindAndSlove}</if>
- <if test="otherQuestion != null and otherQuestion != ''">and OTHER_QUESTION = #{otherQuestion}</if>
- <if test="specialWay != null and specialWay != ''">and SPECIAL_WAY = #{specialWay}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- </trim>
- </sql>
- <select id="get" resultMap="attZhejiangJgCheckResultMap" parameterType="String" >
- select <include refid="table_columns" /> from Att_ZHEJIANG_JG_CHECK where ID = #{id}
- </select>
- <select id="getBy" resultMap="attZhejiangJgCheckResultMap">
- select <include refid="table_columns" /> from Att_ZHEJIANG_JG_CHECK <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="attZhejiangJgCheckResultMap">
- select <include refid="table_columns" /> from Att_ZHEJIANG_JG_CHECK
- </select>
- <select id="findList" resultMap="attZhejiangJgCheckResultMap">
- select <include refid="table_columns" /> from Att_ZHEJIANG_JG_CHECK <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from Att_ZHEJIANG_JG_CHECK <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.AttZhejiangJgCheck">
- insert into Att_ZHEJIANG_JG_CHECK( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from Att_ZHEJIANG_JG_CHECK where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.AttZhejiangJgCheck">
- delete from Att_ZHEJIANG_JG_CHECK <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update Att_ZHEJIANG_JG_CHECK set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.AttZhejiangJgCheck">
- update Att_ZHEJIANG_JG_CHECK
- <trim prefix="set" suffixOverrides=",">
- <if test="departId != null and departId != ''">DEPART_ID = #{departId},</if>
- <if test="isCreateGroup != null and isCreateGroup != ''">IS_CREATE_GROUP = #{isCreateGroup},</if>
- <if test="isSureDepart != null and isSureDepart != ''">IS_SURE_DEPART = #{isSureDepart},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isCreateTeam != null and isCreateTeam != ''">IS_CREATE_TEAM = #{isCreateTeam},</if>
- <if test="teamContain != null and teamContain != ''">TEAM_CONTAIN = #{teamContain},</if>
- <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
- <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
- <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
- <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
- <if test="isCreateYearPlan != null and isCreateYearPlan != ''">IS_CREATE_YEAR_PLAN = #{isCreateYearPlan},</if>
- <if test="isFindAndSlove != null and isFindAndSlove != ''">IS_FIND_AND_SLOVE = #{isFindAndSlove},</if>
- <if test="otherQuestion != null and otherQuestion != ''">OTHER_QUESTION = #{otherQuestion},</if>
- <if test="specialWay != null and specialWay != ''">SPECIAL_WAY = #{specialWay},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.AttZhejiangJgCheck">
- update Att_ZHEJIANG_JG_CHECK
- <trim prefix="set" suffixOverrides=",">
- <if test="departId != null and departId != ''">DEPART_ID = #{departId},</if>
- <if test="isCreateGroup != null and isCreateGroup != ''">IS_CREATE_GROUP = #{isCreateGroup},</if>
- <if test="isSureDepart != null and isSureDepart != ''">IS_SURE_DEPART = #{isSureDepart},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isCreateTeam != null and isCreateTeam != ''">IS_CREATE_TEAM = #{isCreateTeam},</if>
- <if test="teamContain != null and teamContain != ''">TEAM_CONTAIN = #{teamContain},</if>
- <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
- <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
- <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
- <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
- <if test="isCreateYearPlan != null and isCreateYearPlan != ''">IS_CREATE_YEAR_PLAN = #{isCreateYearPlan},</if>
- <if test="isFindAndSlove != null and isFindAndSlove != ''">IS_FIND_AND_SLOVE = #{isFindAndSlove},</if>
- <if test="otherQuestion != null and otherQuestion != ''">OTHER_QUESTION = #{otherQuestion},</if>
- <if test="specialWay != null and specialWay != ''">SPECIAL_WAY = #{specialWay},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|