| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207 |
- <?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.BisInspWintRgstrChkInDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn" id="bisInspWintRgstrChkInResultMap">
- <result property="ptwrgtWdpaIsTrue" column="PTWRGT_WDPA_IS_TRUE" />
- <result property="awiRgtIsTrue" column="AWI_RGT_IS_TRUE" />
- <result property="wintNoChkInfo" column="WINT_NO_CHK_INFO" />
- <result property="wintNoChkInfoOth" column="WINT_NO_CHK_INFO_OTH" />
- <result property="isHasWip" column="IS_HAS_WIP" />
- <result property="awiiryIsAwtpaow" column="AWIIRY_IS_AWTPAOW" />
- <result property="wintIsIomamf" column="WINT_IS_IOMAMF" />
- <result property="mamfIsRun" column="MAMF_IS_RUN" />
- <result property="isHasOthPblm" column="IS_HAS_OTH_PBLM" />
- <result property="status" column="STATUS"/>
- <result property="recPersId" column="REC_PERS_ID" />
- <result property="intm" column="INTM" />
- <result property="uptm" column="UPTM" />
- <result property="id" column="ID" />
- <result property="rgstrId" column="RGSTR_ID" />
- <result property="wintIsChkIn" column="WINT_IS_CHK_IN" />
- <result property="ltcoswstwiIsTrue" column="LTCOSWSTWI_IS_TRUE" />
- <result property="wtimamfIsTrue" column="WTIMAMF_IS_TRUE" />
- <result property="mtnoomfIsTrue" column="MTNOOMF_IS_TRUE" />
- <result property="awdphboIsTrue" column="AWDPHBO_IS_TRUE" />
- <result property="ltcoswstwiType" column="LTCOSWSTWI_TYPE" />
- <result property="isRun" column="IS_RUN" />
- </resultMap>
-
- <sql id="table_columns">
- WIP_NO_TYPE,
- LTCOSWSTWI_TYPE,
- PTWRGT_WDPA_IS_TRUE,
- AWI_RGT_IS_TRUE,
- WINT_NO_CHK_INFO,
- WINT_NO_CHK_INFO_OTH,
- IS_HAS_WIP,
- AWIIRY_IS_AWTPAOW,
- WINT_IS_IOMAMF,
- MAMF_IS_RUN,
- IS_HAS_OTH_PBLM,
- STATUS,
- REC_PERS_ID,
- INTM,
- UPTM,
- ID,
- RGSTR_ID,
- WINT_IS_CHK_IN,
- LTCOSWSTWI_IS_TRUE,
- WTIMAMF_IS_TRUE,
- MTNOOMF_IS_TRUE,
- AWDPHBO_IS_TRUE,
- IS_RUN
- </sql>
- <sql id="entity_properties">
- #{wipNoType},
- #{ltcoswstwiType},
- #{ptwrgtWdpaIsTrue},
- #{awiRgtIsTrue},
- #{wintNoChkInfo},
- #{wintNoChkInfoOth},
- #{isHasWip},
- #{awiiryIsAwtpaow},
- #{wintIsIomamf},
- #{mamfIsRun},
- #{isHasOthPblm},
- #{status},
- #{recPersId},
- #{intm},
- #{uptm},
- #{id},
- #{rgstrId},
- #{wintIsChkIn},
- #{ltcoswstwiIsTrue},
- #{wtimamfIsTrue},
- #{mtnoomfIsTrue},
- #{awdphboIsTrue},
- #{isRun}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">and LTCOSWSTWI_TYPE = #{ltcoswstwiType}</if>
- <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">and AWI_RGT_IS_TRUE = #{awiRgtIsTrue}</if>
- <if test="wintNoChkInfo != null and wintNoChkInfo != ''">and WINT_NO_CHK_INFO = #{wintNoChkInfo}</if>
- <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">and WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth}</if>
- <if test="isHasWip != null and isHasWip != ''">and IS_HAS_WIP = #{isHasWip}</if>
- <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">and AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow}</if>
- <if test="wintIsIomamf != null and wintIsIomamf != ''">and WINT_IS_IOMAMF = #{wintIsIomamf}</if>
- <if test="mamfIsRun != null and mamfIsRun != ''">and MAMF_IS_RUN = #{mamfIsRun}</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">and IS_HAS_OTH_PBLM = #{isHasOthPblm}</if>
- <if test="status != null and status != ''">and STATUS = #{status}</if>
- <if test="recPersId != null and recPersId != ''">and REC_PERS_ID = #{recPersId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">and WINT_IS_CHK_IN = #{wintIsChkIn}</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">and LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue}</if>
- <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">and WTIMAMF_IS_TRUE = #{wtimamfIsTrue}</if>
- <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">and MTNOOMF_IS_TRUE = #{mtnoomfIsTrue}</if>
- <if test="awdphboIsTrue != null and awdphboIsTrue != ''">and AWDPHBO_IS_TRUE = #{awdphboIsTrue}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWintRgstrChkInResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWintRgstrChkInResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspWintRgstrChkInResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN
- </select>
- <select id="findList" resultMap="bisInspWintRgstrChkInResultMap">
- select <include refid="table_columns" /> from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
- insert into BIS_INSP_WINT_RGSTR_CHK_IN( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WINT_RGSTR_CHK_IN where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
- delete from BIS_INSP_WINT_RGSTR_CHK_IN <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WINT_RGSTR_CHK_IN set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
- update BIS_INSP_WINT_RGSTR_CHK_IN
- <trim prefix="set" suffixOverrides=",">
- <if test="wipNoType != null and wipNoType != ''">WIP_NO_TYPE = #{wipNoType},</if>
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
- <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">AWI_RGT_IS_TRUE = #{awiRgtIsTrue},</if>
- <if test="wintNoChkInfo != null and wintNoChkInfo != ''">WINT_NO_CHK_INFO = #{wintNoChkInfo},</if>
- <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth},</if>
- <if test="isHasWip != null and isHasWip != ''">IS_HAS_WIP = #{isHasWip},</if>
- <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow},</if>
- <if test="wintIsIomamf != null and wintIsIomamf != ''">WINT_IS_IOMAMF = #{wintIsIomamf},</if>
- <if test="mamfIsRun != null and mamfIsRun != ''">MAMF_IS_RUN = #{mamfIsRun},</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
- <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">WTIMAMF_IS_TRUE = #{wtimamfIsTrue},</if>
- <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">MTNOOMF_IS_TRUE = #{mtnoomfIsTrue},</if>
- <if test="awdphboIsTrue != null and awdphboIsTrue != ''">AWDPHBO_IS_TRUE = #{awdphboIsTrue},</if>
- <if test="isRun != null and isRun != ''">IS_RUN = #{isRun},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintRgstrChkIn">
- update BIS_INSP_WINT_RGSTR_CHK_IN
- <trim prefix="set" suffixOverrides=",">
- <if test="wipNoType != null and wipNoType != ''">WIP_NO_TYPE = #{wipNoType},</if>
- <if test="ltcoswstwiType != null and ltcoswstwiType != ''">LTCOSWSTWI_TYPE = #{ltcoswstwiType},</if>
- <if test="awiRgtIsTrue != null and awiRgtIsTrue != ''">AWI_RGT_IS_TRUE = #{awiRgtIsTrue},</if>
- <if test="wintNoChkInfo != null and wintNoChkInfo != ''">WINT_NO_CHK_INFO = #{wintNoChkInfo},</if>
- <if test="wintNoChkInfoOth != null and wintNoChkInfoOth != ''">WINT_NO_CHK_INFO_OTH = #{wintNoChkInfoOth},</if>
- <if test="isHasWip != null and isHasWip != ''">IS_HAS_WIP = #{isHasWip},</if>
- <if test="awiiryIsAwtpaow != null and awiiryIsAwtpaow != ''">AWIIRY_IS_AWTPAOW = #{awiiryIsAwtpaow},</if>
- <if test="wintIsIomamf != null and wintIsIomamf != ''">WINT_IS_IOMAMF = #{wintIsIomamf},</if>
- <if test="mamfIsRun != null and mamfIsRun != ''">MAMF_IS_RUN = #{mamfIsRun},</if>
- <if test="isHasOthPblm != null and isHasOthPblm != ''">IS_HAS_OTH_PBLM = #{isHasOthPblm},</if>
- <if test="status != null and status != ''">STATUS = #{status},</if>
- <if test="recPersId != null and recPersId != ''">REC_PERS_ID = #{recPersId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="wintIsChkIn != null and wintIsChkIn != ''">WINT_IS_CHK_IN = #{wintIsChkIn},</if>
- <if test="ltcoswstwiIsTrue != null and ltcoswstwiIsTrue != ''">LTCOSWSTWI_IS_TRUE = #{ltcoswstwiIsTrue},</if>
- <if test="wtimamfIsTrue != null and wtimamfIsTrue != ''">WTIMAMF_IS_TRUE = #{wtimamfIsTrue},</if>
- <if test="mtnoomfIsTrue != null and mtnoomfIsTrue != ''">MTNOOMF_IS_TRUE = #{mtnoomfIsTrue},</if>
- <if test="awdphboIsTrue != null and awdphboIsTrue != ''">AWDPHBO_IS_TRUE = #{awdphboIsTrue},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|