| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541 |
- <?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.TacProvincePblmMendInfoDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo" id="tacProvincePblmMendInfoResultMap">
- <result property="sn" column="SN"/>
- <result property="pblmRevision" column="PBLM_REVISION"/>
- <result property="pblmRevisionProof" column="PBLM_REVISION_PROOF"/>
- <result property="pblmNendNote" column="PBLM_NEND_NOTE"/>
- <result property="pblmMendState" column="PBLM_MEND_STATE"/>
- <result property="pblmMendPers" column="PBLM_MEND_PERS"/>
- <result property="pblmMendPersId" column="PBLM_MEND_PERS_ID"/>
- <result property="pblmMendTm" column="PBLM_MEND_TM"/>
- <result property="pblmCrtm" column="PBLM_CRTM"/>
- <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="pblmOut" column="PBLM_OUT"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="isStart" column="IS_START"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="location" column="LOCATION"/>
- <result property="prjtId" column="PRJT_ID"/>
- <result property="prjName" column="PRJ_NAME"/>
- <result property="pblmId" column="PBLM_ID"/>
- <result property="id" column="ID"/>
- <result property="objType" column="OBJ_TYPE"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="pblmNm" column="PBLM_NM"/>
- <result property="pblmPasi" column="PBLM_PASI"/>
- <result property="ifCasePblm" column="IF_CASE_PBLM"/>
- <result property="subjectIds" column="SUBJECT_IDS"/>
- <result property="subjectNames" column="SUBJECT_NAMES"/>
- <result property="pblmDesc" column="PBLM_DESC"/>
- <result property="pblmReason" column="PBLM_REASON"/>
- <result property="pblmSggtn" column="PBLM_SGGTN"/>
- <result property="pblmSn" column="PBLM_SN"/>
- <result property="pblmstdId" column="PBLMSTD_ID"/>
- <result property="rectId" column="RECT_ID"/>
- <result property="rgstrId" column="RGSTR_ID"/>
- <result property="listType" column="LIST_TYPE"/>
- <result property="listId" column="LIST_ID"/>
- <result property="hasVedio" column="HAS_VEDIO"/>
- <result property="groupId" column="GROUP_ID"/>
- <result property="persId" column="PERS_ID"/>
- <result property="persNm" column="PERS_NM"/>
- <result property="intm" column="INTM"/>
- <result property="spclId" column="SPCL_ID"/>
- <result property="spclNm" column="SPCL_NM"/>
- <result property="spclRvwOptn" column="SPCL_RVW_OPTN"/>
- <result property="spclTm" column="SPCL_TM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- <result property="pblmQlttvCd" column="PBLM_QLTTV_CD"/>
- <result property="pblmQlttvNm" column="PBLM_QLTTV_NM"/>
- <result property="isCpQa" column="IS_CP_QA"/>
- <result property="pblmTypeDesc" column="PBLM_TYPE_DESC"/>
- <result property="taskId" column="TASK_ID"/>
- <result property="stepId" column="STEP_ID"/>
- <result property="oldPblmId" column="OLD_PBLM_ID"/>
- <result property="state" column="STATE"/>
- <result property="province" column="PROVINCE"/>
- </resultMap>
- <sql id="table_columns">
- SN,
- PBLM_REVISION,
- PBLM_REVISION_PROOF,
- PBLM_NEND_NOTE,
- PBLM_MEND_STATE,
- PBLM_MEND_PERS,
- PBLM_MEND_PERS_ID,
- PBLM_MEND_TM,
- PBLM_CRTM,
- IS_RECT,
- PBLM_PLTM,
- PBLM_ACTM,
- CRT_STATE,
- CRT_INFO,
- PBLM_OUT,
- DATA_STAT,
- IS_START,
- AD_CODE,
- LOCATION,
- PRJT_ID,
- PRJ_NAME,
- PBLM_ID,
- ID,
- OBJ_TYPE,
- OBJ_ID,
- PBLM_NM,
- PBLM_PASI,
- IF_CASE_PBLM,
- SUBJECT_IDS,
- SUBJECT_NAMES,
- PBLM_DESC,
- PBLM_REASON,
- PBLM_SGGTN,
- PBLM_SN,
- PBLMSTD_ID,
- RECT_ID,
- RGSTR_ID,
- LIST_TYPE,
- LIST_ID,
- HAS_VEDIO,
- GROUP_ID,
- PERS_ID,
- PERS_NM,
- INTM,
- SPCL_ID,
- SPCL_NM,
- SPCL_RVW_OPTN,
- SPCL_TM,
- UPTM,
- NOTE,
- PBLM_QLTTV_CD,
- PBLM_QLTTV_NM,
- IS_CP_QA,
- PBLM_TYPE_DESC,
- TASK_ID,
- STEP_ID,
- OLD_PBLM_ID,
- STATE,
- PROVINCE
- </sql>
- <sql id="entity_properties">
- #{sn},
- #{pblmRevision},
- #{pblmRevisionProof},
- #{pblmNendNote},
- #{pblmMendState},
- #{pblmMendPers},
- #{pblmMendPersId},
- #{pblmMendTm},
- #{pblmCrtm},
- #{isRect},
- #{pblmPltm},
- #{pblmActm},
- #{crtState},
- #{crtInfo},
- #{pblmOut},
- #{dataStat},
- #{isStart},
- #{adCode},
- #{location},
- #{prjtId},
- #{prjName},
- #{pblmId},
- #{id},
- #{objType},
- #{objId},
- #{pblmNm},
- #{pblmPasi},
- #{ifCasePblm},
- #{subjectIds},
- #{subjectNames},
- #{pblmDesc},
- #{pblmReason},
- #{pblmSggtn},
- #{pblmSn},
- #{pblmstdId},
- #{rectId},
- #{rgstrId},
- #{listType},
- #{listId},
- #{hasVedio},
- #{groupId},
- #{persId},
- #{persNm},
- #{intm},
- #{spclId},
- #{spclNm},
- #{spclRvwOptn},
- #{spclTm},
- #{uptm},
- #{note},
- #{pblmQlttvCd},
- #{pblmQlttvNm},
- #{isCpQa},
- #{pblmTypeDesc},
- #{taskId},
- #{stepId},
- #{oldPblmId},
- #{state},
- #{province}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="pblmRevision != null and pblmRevision != ''">and PBLM_REVISION = #{pblmRevision}</if>
- <if test="pblmRevisionProof != null and pblmRevisionProof != ''">and PBLM_REVISION_PROOF =
- #{pblmRevisionProof}
- </if>
- <if test="pblmNendNote != null and pblmNendNote != ''">and PBLM_NEND_NOTE = #{pblmNendNote}</if>
- <if test="pblmMendState != null and pblmMendState != ''">and PBLM_MEND_STATE = #{pblmMendState}</if>
- <if test="pblmMendPers != null and pblmMendPers != ''">and PBLM_MEND_PERS = #{pblmMendPers}</if>
- <if test="pblmMendPersId != null and pblmMendPersId != ''">and PBLM_MEND_PERS_ID = #{pblmMendPersId}</if>
- <if test="pblmMendTm != null">and PBLM_MEND_TM = #{pblmMendTm}</if>
- <if test="pblmCrtm != null">and PBLM_CRTM = #{pblmCrtm}</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="pblmOut != null and pblmOut != ''">
- <if test="pblmOut =='1'.toString()">
- and PBLM_OUT =#{pblmOut}
- </if>
- <if test="pblmOut =='0'.toString()">
- and (PBLM_OUT =#{pblmOut} or PBLM_OUT is null)
- </if>
- </if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="isStart != null and isStart != ''">
- <if test="isStart =='1'.toString()">
- and IS_START =#{isStart}
- </if>
- <if test="isStart =='0'.toString()">
- and (IS_START =#{isStart} or IS_START is null)
- </if>
- </if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="location != null and location != ''">and LOCATION = #{location}</if>
- <if test="prjtId != null and prjtId != ''">and PRJT_ID = #{prjtId}</if>
- <if test="prjName != null and prjName != ''">and PRJ_NAME like '%${prjName}%'</if>
- <if test="pblmId != null and pblmId != ''">and PBLM_ID = #{pblmId}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="objType != null and objType != ''">and OBJ_TYPE = #{objType}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="pblmNm != null and pblmNm != ''">and PBLM_NM like '%${pblmNm}%'</if>
- <if test="pblmPasi != null and pblmPasi != ''">and PBLM_PASI = #{pblmPasi}</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">and IF_CASE_PBLM = #{ifCasePblm}</if>
- <if test="subjectIds != null and subjectIds != ''">and SUBJECT_IDS = #{subjectIds}</if>
- <if test="subjectNames != null and subjectNames != ''">and SUBJECT_NAMES like '%${subjectNames}%'</if>
- <if test="pblmDesc != null and pblmDesc != ''">and PBLM_DESC like '%${pblmDesc}%'</if>
- <if test="pblmReason != null and pblmReason != ''">and PBLM_REASON = #{pblmReason}</if>
- <if test="pblmSggtn != null and pblmSggtn != ''">and PBLM_SGGTN = #{pblmSggtn}</if>
- <if test="pblmSn != null and pblmSn != ''">and PBLM_SN = #{pblmSn}</if>
- <if test="pblmstdId != null and pblmstdId != ''">and PBLMSTD_ID = #{pblmstdId}</if>
- <if test="rectId != null and rectId != ''">and RECT_ID = #{rectId}</if>
- <if test="rgstrId != null and rgstrId != ''">and RGSTR_ID = #{rgstrId}</if>
- <if test="listType != null and listType != ''">and LIST_TYPE = #{listType}</if>
- <if test="listId != null and listId != ''">and LIST_ID = #{listId}</if>
- <if test="hasVedio != null and hasVedio != ''">and HAS_VEDIO = #{hasVedio}</if>
- <if test="groupId != null and groupId != ''">and GROUP_ID = #{groupId}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="persNm != null and persNm != ''">and PERS_NM = #{persNm}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="spclId != null and spclId != ''">and SPCL_ID = #{spclId}</if>
- <if test="spclNm != null and spclNm != ''">and SPCL_NM = #{spclNm}</if>
- <if test="spclRvwOptn != null and spclRvwOptn != ''">and SPCL_RVW_OPTN = #{spclRvwOptn}</if>
- <if test="spclTm != null">and SPCL_TM = #{spclTm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="pblmQlttvCd != null and pblmQlttvCd != ''">and PBLM_QLTTV_CD = #{pblmQlttvCd}</if>
- <if test="pblmQlttvNm != null and pblmQlttvNm != ''">and PBLM_QLTTV_NM = #{pblmQlttvNm}</if>
- <if test="isCpQa != null and isCpQa != ''">and IS_CP_QA = #{isCpQa}</if>
- <if test="pblmTypeDesc != null and pblmTypeDesc != ''">and PBLM_TYPE_DESC = #{pblmTypeDesc}</if>
- <if test="taskId != null and taskId != ''">and TASK_ID = #{taskId}</if>
- <if test="stepId != null and stepId != ''">and STEP_ID = #{stepId}</if>
- <if test="oldPblmId != null and oldPblmId != ''">and OLD_PBLM_ID = #{oldPblmId}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="province != null and province != ''">and PROVINCE = #{province}</if>
- <if test="area != null and area != ''">and AD_CODE = #{area}</if>
- <if test="pblmNub != null and pblmNub != ''">and PBLM_NUB LIKE '%${pblmNub}%'</if>
- <if test="pblmNubName != null and pblmNubName != ''">and PBLM_NUB_NAME LIKE '%${pblmNubName}%'</if>
- AND DATA_STAT='0'
- </trim>
- </sql>
- <select id="get" resultMap="tacProvincePblmMendInfoResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from TAC_PROVINCE_PBLM_MEND_INFO where ID = #{id}
- </select>
- <select id="getBy" resultMap="tacProvincePblmMendInfoResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PROVINCE_PBLM_MEND_INFO
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="tacProvincePblmMendInfoResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PROVINCE_PBLM_MEND_INFO
- </select>
- <select id="findList" resultMap="tacProvincePblmMendInfoResultMap">
- select
- <include refid="table_columns"/>
- from TAC_PROVINCE_PBLM_MEND_INFO
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from TAC_PROVINCE_PBLM_MEND_INFO
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- insert into TAC_PROVINCE_PBLM_MEND_INFO(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- update TAC_PROVINCE_PBLM_MEND_INFO set DATA_STAT='9' where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- delete from TAC_PROVINCE_PBLM_MEND_INFO
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update TAC_PROVINCE_PBLM_MEND_INFO set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- update TAC_PROVINCE_PBLM_MEND_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
- <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
- #{pblmRevisionProof},
- </if>
- <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
- <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
- <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
- <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
- <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
- <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</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="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
- <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
- <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
- <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
- <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
- <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
- <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
- <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
- <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
- <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
- <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
- <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
- <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
- <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
- <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
- <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
- <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
- <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
- <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
- <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
- <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
- <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
- <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
- <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <!-- <if test="province != null and province != ''">PROVINCE = #{province},</if>-->
- <if test="pblmNub != null and pblmNub != ''">PBLM_NUB = #{pblmNub},</if>
- <if test="pblmNubName != null and pblmNubName != ''">PBLM_NUB_NAME = #{pblmNubName},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateByPblmId" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- update TAC_PROVINCE_PBLM_MEND_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
- <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
- #{pblmRevisionProof},
- </if>
- <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
- <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
- <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
- <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
- <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
- <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</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="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
- <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
- <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
- <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
- <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
- <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
- <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
- <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
- <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
- <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
- <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
- <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
- <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
- <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
- <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
- <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
- <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
- <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
- <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
- <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
- <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
- <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
- <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="province != null and province != ''">PROVINCE = #{province},</if>
- </trim>
- <where>PBLM_ID = #{pblmId}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- update TAC_PROVINCE_PBLM_MEND_INFO
- <trim prefix="set" suffixOverrides=",">
- <if test="pblmRevision != null and pblmRevision != ''">PBLM_REVISION = #{pblmRevision},</if>
- <if test="pblmRevisionProof != null and pblmRevisionProof != ''">PBLM_REVISION_PROOF =
- #{pblmRevisionProof},
- </if>
- <if test="pblmNendNote != null and pblmNendNote != ''">PBLM_NEND_NOTE = #{pblmNendNote},</if>
- <if test="pblmMendState != null and pblmMendState != ''">PBLM_MEND_STATE = #{pblmMendState},</if>
- <if test="pblmMendPers != null and pblmMendPers != ''">PBLM_MEND_PERS = #{pblmMendPers},</if>
- <if test="pblmMendPersId != null and pblmMendPersId != ''">PBLM_MEND_PERS_ID = #{pblmMendPersId},</if>
- <if test="pblmMendTm != null">PBLM_MEND_TM = #{pblmMendTm},</if>
- <if test="pblmCrtm != null">PBLM_CRTM = #{pblmCrtm},</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="pblmOut != null and pblmOut != ''">PBLM_OUT = #{pblmOut},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="isStart != null and isStart != ''">IS_START = #{isStart},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="location != null and location != ''">LOCATION = #{location},</if>
- <if test="prjtId != null and prjtId != ''">PRJT_ID = #{prjtId},</if>
- <if test="prjName != null and prjName != ''">PRJ_NAME = #{prjName},</if>
- <if test="pblmId != null and pblmId != ''">PBLM_ID = #{pblmId},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="objType != null and objType != ''">OBJ_TYPE = #{objType},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="pblmNm != null and pblmNm != ''">PBLM_NM = #{pblmNm},</if>
- <if test="pblmPasi != null and pblmPasi != ''">PBLM_PASI = #{pblmPasi},</if>
- <if test="ifCasePblm != null and ifCasePblm != ''">IF_CASE_PBLM = #{ifCasePblm},</if>
- <if test="subjectIds != null and subjectIds != ''">SUBJECT_IDS = #{subjectIds},</if>
- <if test="subjectNames != null and subjectNames != ''">SUBJECT_NAMES = #{subjectNames},</if>
- <if test="pblmDesc != null and pblmDesc != ''">PBLM_DESC = #{pblmDesc},</if>
- <if test="pblmReason != null and pblmReason != ''">PBLM_REASON = #{pblmReason},</if>
- <if test="pblmSggtn != null and pblmSggtn != ''">PBLM_SGGTN = #{pblmSggtn},</if>
- <if test="pblmSn != null and pblmSn != ''">PBLM_SN = #{pblmSn},</if>
- <if test="pblmstdId != null and pblmstdId != ''">PBLMSTD_ID = #{pblmstdId},</if>
- <if test="rectId != null and rectId != ''">RECT_ID = #{rectId},</if>
- <if test="rgstrId != null and rgstrId != ''">RGSTR_ID = #{rgstrId},</if>
- <if test="listType != null and listType != ''">LIST_TYPE = #{listType},</if>
- <if test="listId != null and listId != ''">LIST_ID = #{listId},</if>
- <if test="hasVedio != null and hasVedio != ''">HAS_VEDIO = #{hasVedio},</if>
- <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="persNm != null and persNm != ''">PERS_NM = #{persNm},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="spclId != null and spclId != ''">SPCL_ID = #{spclId},</if>
- <if test="spclNm != null and spclNm != ''">SPCL_NM = #{spclNm},</if>
- <if test="spclRvwOptn != null and spclRvwOptn != ''">SPCL_RVW_OPTN = #{spclRvwOptn},</if>
- <if test="spclTm != null">SPCL_TM = #{spclTm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="pblmQlttvCd != null and pblmQlttvCd != ''">PBLM_QLTTV_CD = #{pblmQlttvCd},</if>
- <if test="pblmQlttvNm != null and pblmQlttvNm != ''">PBLM_QLTTV_NM = #{pblmQlttvNm},</if>
- <if test="isCpQa != null and isCpQa != ''">IS_CP_QA = #{isCpQa},</if>
- <if test="pblmTypeDesc != null and pblmTypeDesc != ''">PBLM_TYPE_DESC = #{pblmTypeDesc},</if>
- <if test="taskId != null and taskId != ''">TASK_ID = #{taskId},</if>
- <if test="stepId != null and stepId != ''">STEP_ID = #{stepId},</if>
- <if test="oldPblmId != null and oldPblmId != ''">OLD_PBLM_ID = #{oldPblmId},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="province != null and province != ''">PROVINCE = #{province},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <update id="updateAddvcd" parameterType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- update TAC_PROVINCE_PBLM_MEND_INFO set AD_CODE = #{adCode},LOCATION = (SELECT AD_FULL_NAME FROM ATT_AD_BASE WHERE AD_CODE = #{adCode}) where ID = #{id}
- </update>
- <!-- 其他自定义SQL -->
- <select id="getList" resultType="cn.com.goldenwater.dcproj.model.TacProvincePblmMendInfo">
- select * from TAC_PROVINCE_PBLM_MEND_INFO A
- <include refid="page_where"/>
- order by intm desc
- </select>
- </mapper>
|