| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- <?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.BisInspPblmMlistDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspPblmMlist" id="bisInspPblmMlistResultMap">
- <result property="id" column="ID"/>
- <result property="pblmNo" column="PBLM_NO"/>
- <result property="pblmClassify" column="PBLM_CLASSIFY"/>
- <result property="pblmCategory" column="PBLM_CATEGORY"/>
- <result property="pblmChkItem" column="PBLM_CHK_ITEM"/>
- <result property="pblmNote" column="PBLM_NOTE"/>
- <result property="pblmSore" column="PBLM_SORE"/>
- <result property="pblmPjct" column="PBLM_PJCT"/>
- <result property="pblmAdCode" column="PBLM_AD_CODE"/>
- <result property="pblmAdName" column="PBLM_AD_NAME"/>
- <result property="pblmNub" column="PBLM_NUB"/>
- <result property="bplmNubName" column="BPLM_NUB_NAME"/>
- <result property="pblmCrtm" column="PBLM_CRTM"/>
- <result property="recvOrgId" column="RECV_ORG_ID"/>
- <result property="recvOrgName" column="RECV_ORG_NAME"/>
- <result property="recvAddvcd" column="RECV_ADDVCD"/>
- <result property="isGain" column="IS_GAIN"/>
- <result property="isRect" column="IS_RECT"/>
- <result property="pblmPltm" column="PBLM_PLTM"/>
- <result property="pblmActm" column="PBLM_ACTM"/>
- <result property="crtState" column="CRT_STATE"/>
- <result property="crtInfo" column="CRT_INFO"/>
- <result property="crtNote" column="CRT_NOTE"/>
- <result property="pblmOut" column="PBLM_OUT"/>
- <result property="isIssu" column="IS_ISSU"/>
- <result property="persId" column="PERS_ID"/>
- <result property="persName" column="PERS_NAME"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="dataStat" column="DATA_STAT"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- PBLM_NO,
- PBLM_CLASSIFY,
- PBLM_CATEGORY,
- PBLM_CHK_ITEM,
- PBLM_NOTE,
- PBLM_SORE,
- PBLM_PJCT,
- PBLM_AD_CODE,
- PBLM_AD_NAME,
- PBLM_NUB,
- BPLM_NUB_NAME,
- PBLM_CRTM,
- RECV_ORG_ID,
- RECV_ORG_NAME,
- RECV_ADDVCD,
- IS_GAIN,
- IS_RECT,
- PBLM_PLTM,
- PBLM_ACTM,
- CRT_STATE,
- CRT_INFO,
- CRT_NOTE,
- PBLM_OUT,
- IS_ISSU,
- PERS_ID,
- PERS_NAME,
- INTM,
- UPTM,
- DATA_STAT
- </sql>
- <sql id="entity_properties">
- #{id},
- #{pblmNo},
- #{pblmClassify},
- #{pblmCategory},
- #{pblmChkItem},
- #{pblmNote},
- #{pblmSore},
- #{pblmPjct},
- #{pblmAdCode},
- #{pblmAdName},
- #{pblmNub},
- #{bplmNubName},
- #{pblmCrtm},
- #{recvOrgId},
- #{recvOrgName},
- #{recvAddvcd},
- #{isGain},
- #{isRect},
- #{pblmPltm},
- #{pblmActm},
- #{crtState},
- #{crtInfo},
- #{crtNote},
- #{pblmOut},
- #{isIssu},
- #{persId},
- #{persName},
- #{intm},
- #{uptm},
- #{dataStat}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="pblmNo != null and pblmNo != ''">and PBLM_NO = #{pblmNo}</if>
- <if test="pblmClassify != null and pblmClassify != ''">and PBLM_CLASSIFY = #{pblmClassify}</if>
- <if test="pblmCategory != null and pblmCategory != ''">and PBLM_CATEGORY = #{pblmCategory}</if>
- <if test="pblmChkItem != null and pblmChkItem != ''">and PBLM_CHK_ITEM = #{pblmChkItem}</if>
- <if test="pblmNote != null and pblmNote != ''">and PBLM_NOTE = #{pblmNote}</if>
- <if test="pblmSore != null and pblmSore != ''">and PBLM_SORE = #{pblmSore}</if>
- <if test="pblmPjct != null and pblmPjct != ''">and PBLM_PJCT = #{pblmPjct}</if>
- <if test="pblmAdCode != null and pblmAdCode != ''">and PBLM_AD_CODE = #{pblmAdCode}</if>
- <if test="pblmAdName != null and pblmAdName != ''">and PBLM_AD_NAME = #{pblmAdName}</if>
- <if test="pblmNub != null and pblmNub != ''">and PBLM_NUB = #{pblmNub}</if>
- <if test="bplmNubName != null and bplmNubName != ''">and BPLM_NUB_NAME = #{bplmNubName}</if>
- <if test="pblmCrtm != null">and PBLM_CRTM = #{pblmCrtm}</if>
- <if test="recvOrgId != null and recvOrgId != ''">and RECV_ORG_ID = #{recvOrgId}</if>
- <if test="recvOrgName != null and recvOrgName != ''">and RECV_ORG_NAME = #{recvOrgName}</if>
- <if test="recvAddvcd != null and recvAddvcd != ''">and RECV_ADDVCD = #{recvAddvcd}</if>
- <if test="isGain != null and isGain != ''">and IS_GAIN = #{isGain}</if>
- <if test="isRect != null and isRect != ''">and IS_RECT = #{isRect}</if>
- <if test="pblmPltm != null">and PBLM_PLTM = #{pblmPltm}</if>
- <if test="pblmActm != null">and PBLM_ACTM = #{pblmActm}</if>
- <if test="crtState != null and crtState != ''">and CRT_STATE = #{crtState}</if>
- <if test="crtInfo != null and crtInfo != ''">and CRT_INFO = #{crtInfo}</if>
- <if test="crtNote != null and crtNote != ''">and CRT_NOTE = #{crtNote}</if>
- <if test="pblmOut != null and pblmOut != ''">and PBLM_OUT = #{pblmOut}</if>
- <if test="isIssu != null and isIssu != ''">and IS_ISSU = #{isIssu}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="persName != null and persName != ''">and PERS_NAME = #{persName}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- and DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="bisInspPblmMlistResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_PBLM_MLIST where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspPblmMlistResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM_MLIST <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspPblmMlistResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM_MLIST
- </select>
- <select id="findList" resultMap="bisInspPblmMlistResultMap">
- select <include refid="table_columns" /> from BIS_INSP_PBLM_MLIST <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_PBLM_MLIST <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblmMlist">
- insert into BIS_INSP_PBLM_MLIST( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update BIS_INSP_PBLM_MLIST set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblmMlist">
- update BIS_INSP_PBLM_MLIST set DATA_STAT='9' <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_PBLM_MLIST set DATA_STAT = '9' where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblmMlist">
- update BIS_INSP_PBLM_MLIST
- <trim prefix="set" suffixOverrides=",">
- <if test="pblmNo != null and pblmNo != ''">PBLM_NO = #{pblmNo},</if>
- <if test="pblmClassify != null and pblmClassify != ''">PBLM_CLASSIFY = #{pblmClassify},</if>
- <if test="pblmCategory != null and pblmCategory != ''">PBLM_CATEGORY = #{pblmCategory},</if>
- <if test="pblmChkItem != null and pblmChkItem != ''">PBLM_CHK_ITEM = #{pblmChkItem},</if>
- <if test="pblmNote != null and pblmNote != ''">PBLM_NOTE = #{pblmNote},</if>
- <if test="pblmSore != null and pblmSore != ''">PBLM_SORE = #{pblmSore},</if>
- <if test="pblmPjct != null and pblmPjct != ''">PBLM_PJCT = #{pblmPjct},</if>
- <if test="pblmAdCode != null and pblmAdCode != ''">PBLM_AD_CODE = #{pblmAdCode},</if>
- <if test="pblmAdName != null and pblmAdName != ''">PBLM_AD_NAME = #{pblmAdName},</if>
- <if test="pblmNub != null and pblmNub != ''">PBLM_NUB = #{pblmNub},</if>
- <if test="bplmNubName != null and bplmNubName != ''">BPLM_NUB_NAME = #{bplmNubName},</if>
- <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</if>
- <if test="recvOrgId != null and recvOrgId != ''">RECV_ORG_ID = #{recvOrgId},</if>
- <if test="recvOrgName != null and recvOrgName != ''">RECV_ORG_NAME = #{recvOrgName},</if>
- <if test="recvAddvcd != null and recvAddvcd != ''">RECV_ADDVCD = #{recvAddvcd},</if>
- <if test="isGain != null and isGain != ''">IS_GAIN = #{isGain},</if>
- <if test="isRect != null and isRect != ''">IS_RECT = #{isRect},</if>
- <if test="pblmPltm != null">PBLM_PLTM = #{pblmPltm},</if>
- <if test="pblmActm != null">PBLM_ACTM = #{pblmActm},</if>
- <if test="crtState != null and crtState != ''">CRT_STATE = #{crtState},</if>
- <if test="crtInfo != null and crtInfo != ''">CRT_INFO = #{crtInfo},</if>
- <if test="crtNote != null and crtNote != ''">CRT_NOTE = #{crtNote},</if>
- <if test="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
- <if test="isIssu != null and isIssu != ''">IS_ISSU = #{isIssu},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="persName != null and persName != ''">PERS_NAME = #{persName},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspPblmMlist">
- update BIS_INSP_PBLM_MLIST
- <trim prefix="set" suffixOverrides=",">
- <if test="pblmNo != null and pblmNo != ''">PBLM_NO = #{pblmNo},</if>
- <if test="pblmClassify != null and pblmClassify != ''">PBLM_CLASSIFY = #{pblmClassify},</if>
- <if test="pblmCategory != null and pblmCategory != ''">PBLM_CATEGORY = #{pblmCategory},</if>
- <if test="pblmChkItem != null and pblmChkItem != ''">PBLM_CHK_ITEM = #{pblmChkItem},</if>
- <if test="pblmNote != null and pblmNote != ''">PBLM_NOTE = #{pblmNote},</if>
- <if test="pblmSore != null and pblmSore != ''">PBLM_SORE = #{pblmSore},</if>
- <if test="pblmPjct != null and pblmPjct != ''">PBLM_PJCT = #{pblmPjct},</if>
- <if test="pblmAdCode != null and pblmAdCode != ''">PBLM_AD_CODE = #{pblmAdCode},</if>
- <if test="pblmAdName != null and pblmAdName != ''">PBLM_AD_NAME = #{pblmAdName},</if>
- <if test="pblmNub != null and pblmNub != ''">PBLM_NUB = #{pblmNub},</if>
- <if test="bplmNubName != null and bplmNubName != ''">BPLM_NUB_NAME = #{bplmNubName},</if>
- <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</if>
- <if test="recvOrgId != null and recvOrgId != ''">RECV_ORG_ID = #{recvOrgId},</if>
- <if test="recvOrgName != null and recvOrgName != ''">RECV_ORG_NAME = #{recvOrgName},</if>
- <if test="recvAddvcd != null and recvAddvcd != ''">RECV_ADDVCD = #{recvAddvcd},</if>
- <if test="isGain != null and isGain != ''">IS_GAIN = #{isGain},</if>
- <if test="isRect != null and isRect != ''">IS_RECT = #{isRect},</if>
- <if test="pblmPltm != null">PBLM_PLTM = #{pblmPltm},</if>
- <if test="pblmActm != null">PBLM_ACTM = #{pblmActm},</if>
- <if test="crtState != null and crtState != ''">CRT_STATE = #{crtState},</if>
- <if test="crtInfo != null and crtInfo != ''">CRT_INFO = #{crtInfo},</if>
- <if test="crtNote != null and crtNote != ''">CRT_NOTE = #{crtNote},</if>
- <if test="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
- <if test="isIssu != null and isIssu != ''">IS_ISSU = #{isIssu},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="persName != null and persName != ''">PERS_NAME = #{persName},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- </mapper>
|