| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596 |
- <?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.BisInspWintuRgstrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr" id="bisInspWintuRgstrResultMap">
- <result property="jlssazwzms" column="JLSSAZWZMS"/>
- <result property="jcxm" column="JCXM"/>
- <result property="jcssglhzywdw" column="JCSSGLHZYWDW"/>
- <result property="jcxxsfjrcjw" column="JCXXSFJRCJW"/>
- <result property="qsjlssazqk" column="QSJLSSAZQK"/>
- <result property="csblljts" column="CSBLLJTS"/>
- <result property="dclljts" column="DCLLJTS"/>
- <result property="sbts" column="SBTS"/>
- <result property="qtts" column="QTTS"/>
- <result property="jlsssfdqjdjz" column="JLSSSFDQJDJZ"/>
- <result property="zjycjdjzsj" column="ZJYCJDJZSJ"/>
- <result property="qsl2016" column="QSL2016"/>
- <result property="qsl2017" column="QSL2017"/>
- <result property="qsl2018" column="QSL2018"/>
- <result property="qsl2019" column="QSL2019"/>
- <result property="id" column="ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="winId" column="WIN_ID"/>
- <result property="winName" column="WIN_NAME"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="wiuLoc" column="WIU_LOC"/>
- <result property="centerX" column="CENTER_X"/>
- <result property="centerY" column="CENTER_Y"/>
- <result property="gdX" column="GD_X"/>
- <result property="gdY" column="GD_Y"/>
- <result property="wiuName" column="WIU_NAME"/>
- <result property="wiuContact" column="WIU_CONTACT"/>
- <result property="wiuContactTel" column="WIU_CONTACT_TEL"/>
- <result property="wiuPrincipal" column="WIU_PRINCIPAL"/>
- <result property="wiuPrincipalTel" column="WIU_PRINCIPAL_TEL"/>
- <result property="note" column="NOTE"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="chkInStat" column="CHK_IN_STAT"/>
- <result property="mendLiftStat" column="MEND_LIFT_STAT"/>
- <result property="persId" column="PERS_ID"/>
- <result property="groupId" column="GROUP_ID"/>
- <result property="inTm" column="IN_TM"/>
- <result property="upTm" column="UP_TM"/>
- <result property="cwId" column="CW_ID"/>
- <result property="ssxtdm" column="SSXTDM"/>
- <result property="ssgcdm" column="SSGCDM"/>
- <result property="ssxmid" column="SSXMID"/>
- <result property="szyfqdm" column="SZYFQDM"/>
- <result property="sslydm" column="SSLYDM"/>
- <result property="jsyxzt" column="JSYXZT"/>
- <result property="sfazjcjlss" column="SFAZJCJLSS"/>
- <result property="jcjlsslx" column="JCJLSSLX"/>
- <result property="jcjlsssfzcyx" column="JCJLSSSFZCYX"/>
- <result property="sfsxzxjc" column="SFSXZXJC"/>
- <result property="sfdqjdhjz" column="SFDQJDHJZ"/>
- <result property="sfdkdj" column="SFDKDJ"/>
- <result property="qsksl" column="QSKSL"/>
- <result property="sfbjsc" column="SFBJSC"/>
- <result property="qskjbxxbz" column="QSKJBXXBZ"/>
- <result property="jcjlbz" column="JCJLBZ"/>
- <result property="column1" column="COLUMN1"/>
- <result property="column2" column="COLUMN2"/>
- <result property="column3" column="COLUMN3"/>
- <result property="column4" column="COLUMN4"/>
- <result property="column5" column="COLUMN5"/>
- <result property="wainIntType" column="WAIN_INT_TYPE"/>
- <result property="desYearQ" column="DES_YEAR_Q"/>
- </resultMap>
- <sql id="table_columns">
- JLSSAZWZMS,
- JCXM,
- JCSSGLHZYWDW,
- JCXXSFJRCJW,
- QSJLSSAZQK,
- CSBLLJTS,
- DCLLJTS,
- SBTS,
- QTTS,
- JLSSSFDQJDJZ,
- ZJYCJDJZSJ,
- QSL2016,
- QSL2017,
- QSL2018,
- QSL2019,
- ID,
- OBJ_ID,
- WIN_ID,
- WIN_NAME,
- AD_NAME,
- AD_CODE,
- WIU_LOC,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- WIU_NAME,
- WIU_CONTACT,
- WIU_CONTACT_TEL,
- WIU_PRINCIPAL,
- WIU_PRINCIPAL_TEL,
- NOTE,
- STATE,
- DATA_STAT,
- CHK_IN_STAT,
- MEND_LIFT_STAT,
- PERS_ID,
- GROUP_ID,
- IN_TM,
- UP_TM,
- CW_ID,
- SSXTDM,
- SSGCDM,
- SSXMID,
- SZYFQDM,
- SSLYDM,
- JSYXZT,
- SFAZJCJLSS,
- JCJLSSLX,
- JCJLSSSFZCYX,
- SFSXZXJC,
- SFDQJDHJZ,
- SFDKDJ,
- QSKSL,
- SFBJSC,
- QSKJBXXBZ,
- JCJLBZ,
- COLUMN1,
- COLUMN2,
- COLUMN3,
- COLUMN4,
- COLUMN5,
- WAIN_INT_TYPE,
- DES_YEAR_Q
- </sql>
- <sql id="entity_properties">
- #{jlssazwzms},
- #{jcxm},
- #{jcssglhzywdw},
- #{jcxxsfjrcjw},
- #{qsjlssazqk},
- #{csblljts},
- #{dclljts},
- #{sbts},
- #{qtts},
- #{jlsssfdqjdjz},
- #{zjycjdjzsj},
- #{qsl2016},
- #{qsl2017},
- #{qsl2018},
- #{qsl2019},
- #{id},
- #{objId},
- #{winId},
- #{winName},
- #{adName},
- #{adCode},
- #{wiuLoc},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{wiuName},
- #{wiuContact},
- #{wiuContactTel},
- #{wiuPrincipal},
- #{wiuPrincipalTel},
- #{note},
- #{state},
- #{dataStat},
- #{chkInStat},
- #{mendLiftStat},
- #{persId},
- #{groupId},
- #{inTm},
- #{upTm},
- #{cwId},
- #{ssxtdm},
- #{ssgcdm},
- #{ssxmid},
- #{szyfqdm},
- #{sslydm},
- #{jsyxzt},
- #{sfazjcjlss},
- #{jcjlsslx},
- #{jcjlsssfzcyx},
- #{sfsxzxjc},
- #{sfdqjdhjz},
- #{sfdkdj},
- #{qsksl},
- #{sfbjsc},
- #{qskjbxxbz},
- #{jcjlbz},
- #{column1},
- #{column2},
- #{column3},
- #{column4},
- #{column5},
- #{wainIntType},
- #{desYearQ}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="jcxm != null and jcxm != ''">and JCXM = #{jcxm}</if>
- <if test="jcssglhzywdw != null and jcssglhzywdw != ''">and JCSSGLHZYWDW = #{jcssglhzywdw}</if>
- <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">and JCXXSFJRCJW = #{jcxxsfjrcjw}</if>
- <if test="qsjlssazqk != null and qsjlssazqk != ''">and QSJLSSAZQK = #{qsjlssazqk}</if>
- <if test="csblljts != null and csblljts != ''">and CSBLLJTS = #{csblljts}</if>
- <if test="dclljts != null and dclljts != ''">and DCLLJTS = #{dclljts}</if>
- <if test="sbts != null and sbts != ''">and SBTS = #{sbts}</if>
- <if test="qtts != null and qtts != ''">and QTTS = #{qtts}</if>
- <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">and JLSSSFDQJDJZ = #{jlsssfdqjdjz}</if>
- <if test="zjycjdjzsj != null and zjycjdjzsj != ''">and ZJYCJDJZSJ = #{zjycjdjzsj}</if>
- <if test="qsl2016 != null and qsl2016 != ''">and QSL2016 = #{qsl2016}</if>
- <if test="qsl2017 != null and qsl2017 != ''">and QSL2017 = #{qsl2017}</if>
- <if test="qsl2018 != null and qsl2018 != ''">and QSL2018 = #{qsl2018}</if>
- <if test="qsl2019 != null and qsl2019 != ''">and QSL2019 = #{qsl2019}</if>
- <if test="id != null and id != ''">and ID = #{id}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="winId != null and winId != ''">and WIN_ID = #{winId}</if>
- <if test="winName != null and winName != ''">and WIN_NAME = #{winName}</if>
- <if test="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="wiuLoc != null and wiuLoc != ''">and WIU_LOC = #{wiuLoc}</if>
- <if test="centerX != null and centerX != ''">and CENTER_X = #{centerX}</if>
- <if test="centerY != null and centerY != ''">and CENTER_Y = #{centerY}</if>
- <if test="gdX != null and gdX != ''">and GD_X = #{gdX}</if>
- <if test="gdY != null and gdY != ''">and GD_Y = #{gdY}</if>
- <if test="wiuName != null and wiuName != ''">and WIU_NAME = #{wiuName}</if>
- <if test="wiuContact != null and wiuContact != ''">and WIU_CONTACT = #{wiuContact}</if>
- <if test="wiuContactTel != null and wiuContactTel != ''">and WIU_CONTACT_TEL = #{wiuContactTel}</if>
- <if test="wiuPrincipal != null and wiuPrincipal != ''">and WIU_PRINCIPAL = #{wiuPrincipal}</if>
- <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">and WIU_PRINCIPAL_TEL = #{wiuPrincipalTel}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="chkInStat != null and chkInStat != ''">and CHK_IN_STAT = #{chkInStat}</if>
- <if test="mendLiftStat != null and mendLiftStat != ''">and MEND_LIFT_STAT = #{mendLiftStat}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="groupId != null and groupId != ''">and GROUP_ID = #{groupId}</if>
- <if test="inTm != null">and IN_TM = #{inTm}</if>
- <if test="upTm != null">and UP_TM = #{upTm}</if>
- <if test="cwId != null and cwId != ''">and CW_ID = #{cwId}</if>
- <if test="ssxtdm != null and ssxtdm != ''">and SSXTDM = #{ssxtdm}</if>
- <if test="ssgcdm != null and ssgcdm != ''">and SSGCDM = #{ssgcdm}</if>
- <if test="ssxmid != null and ssxmid != ''">and SSXMID = #{ssxmid}</if>
- <if test="szyfqdm != null and szyfqdm != ''">and SZYFQDM = #{szyfqdm}</if>
- <if test="sslydm != null and sslydm != ''">and SSLYDM = #{sslydm}</if>
- <if test="jsyxzt != null and jsyxzt != ''">and JSYXZT = #{jsyxzt}</if>
- <if test="sfazjcjlss != null and sfazjcjlss != ''">and SFAZJCJLSS = #{sfazjcjlss}</if>
- <if test="jcjlsslx != null and jcjlsslx != ''">and JCJLSSLX = #{jcjlsslx}</if>
- <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">and JCJLSSSFZCYX = #{jcjlsssfzcyx}</if>
- <if test="sfsxzxjc != null and sfsxzxjc != ''">and SFSXZXJC = #{sfsxzxjc}</if>
- <if test="sfdqjdhjz != null and sfdqjdhjz != ''">and SFDQJDHJZ = #{sfdqjdhjz}</if>
- <if test="sfdkdj != null and sfdkdj != ''">and SFDKDJ = #{sfdkdj}</if>
- <if test="qsksl != null and qsksl != ''">and QSKSL = #{qsksl}</if>
- <if test="sfbjsc != null and sfbjsc != ''">and SFBJSC = #{sfbjsc}</if>
- <if test="qskjbxxbz != null and qskjbxxbz != ''">and QSKJBXXBZ = #{qskjbxxbz}</if>
- <if test="jcjlbz != null and jcjlbz != ''">and JCJLBZ = #{jcjlbz}</if>
- <if test="column1 != null and column1 != ''">and COLUMN1 = #{column1}</if>
- <if test="column2 != null and column2 != ''">and COLUMN2 = #{column2}</if>
- <if test="column3 != null and column3 != ''">and COLUMN3 = #{column3}</if>
- <if test="column4 != null and column4 != ''">and COLUMN4 = #{column4}</if>
- <if test="column5 != null and column5 != ''">and COLUMN5 = #{column5}</if>
- <if test="wainIntType != null and wainIntType != ''">and WAIN_INT_TYPE = #{wainIntType}</if>
- <if test="desYearQ != null and desYearQ != ''">and DES_YEAR_Q = #{desYearQ}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspWintuRgstrResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WINTU_RGSTR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspWintuRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WINTU_RGSTR
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisInspWintuRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WINTU_RGSTR
- </select>
- <select id="findList" resultMap="bisInspWintuRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_INSP_WINTU_RGSTR
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_INSP_WINTU_RGSTR
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
- insert into BIS_INSP_WINTU_RGSTR(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_WINTU_RGSTR where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
- delete from BIS_INSP_WINTU_RGSTR
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_WINTU_RGSTR set flag_valid = 0 where>ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
- update BIS_INSP_WINTU_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="jcxm != null and jcxm != ''">JCXM = #{jcxm},</if>
- <if test="jcssglhzywdw != null and jcssglhzywdw != ''">JCSSGLHZYWDW = #{jcssglhzywdw},</if>
- <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">JCXXSFJRCJW = #{jcxxsfjrcjw},</if>
- <if test="qsjlssazqk != null and qsjlssazqk != ''">QSJLSSAZQK = #{qsjlssazqk},</if>
- <if test="csblljts != null and csblljts != ''">CSBLLJTS = #{csblljts},</if>
- <if test="dclljts != null and dclljts != ''">DCLLJTS = #{dclljts},</if>
- <if test="sbts != null and sbts != ''">SBTS = #{sbts},</if>
- <if test="qtts != null and qtts != ''">QTTS = #{qtts},</if>
- <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">JLSSSFDQJDJZ = #{jlsssfdqjdjz},</if>
- <if test="zjycjdjzsj != null and zjycjdjzsj != ''">ZJYCJDJZSJ = #{zjycjdjzsj},</if>
- <if test="qsl2016 != null and qsl2016 != ''">QSL2016 = #{qsl2016},</if>
- <if test="qsl2017 != null and qsl2017 != ''">QSL2017 = #{qsl2017},</if>
- <if test="qsl2018 != null and qsl2018 != ''">QSL2018 = #{qsl2018},</if>
- <if test="qsl2019 != null and qsl2019 != ''">QSL2019 = #{qsl2019},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="winId != null and winId != ''">WIN_ID = #{winId},</if>
- <if test="winName != null and winName != ''">WIN_NAME = #{winName},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="wiuLoc != null and wiuLoc != ''">WIU_LOC = #{wiuLoc},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="wiuName != null and wiuName != ''">WIU_NAME = #{wiuName},</if>
- <if test="wiuContact != null and wiuContact != ''">WIU_CONTACT = #{wiuContact},</if>
- <if test="wiuContactTel != null and wiuContactTel != ''">WIU_CONTACT_TEL = #{wiuContactTel},</if>
- <if test="wiuPrincipal != null and wiuPrincipal != ''">WIU_PRINCIPAL = #{wiuPrincipal},</if>
- <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">WIU_PRINCIPAL_TEL = #{wiuPrincipalTel},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="chkInStat != null and chkInStat != ''">CHK_IN_STAT = #{chkInStat},</if>
- <if test="mendLiftStat != null and mendLiftStat != ''">MEND_LIFT_STAT = #{mendLiftStat},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="cwId != null and cwId != ''">CW_ID = #{cwId},</if>
- <if test="ssxtdm != null and ssxtdm != ''">SSXTDM = #{ssxtdm},</if>
- <if test="ssgcdm != null and ssgcdm != ''">SSGCDM = #{ssgcdm},</if>
- <if test="ssxmid != null and ssxmid != ''">SSXMID = #{ssxmid},</if>
- <if test="szyfqdm != null and szyfqdm != ''">SZYFQDM = #{szyfqdm},</if>
- <if test="sslydm != null and sslydm != ''">SSLYDM = #{sslydm},</if>
- <if test="jsyxzt != null and jsyxzt != ''">JSYXZT = #{jsyxzt},</if>
- <if test="sfazjcjlss != null and sfazjcjlss != ''">SFAZJCJLSS = #{sfazjcjlss},</if>
- <if test="jcjlsslx != null and jcjlsslx != ''">JCJLSSLX = #{jcjlsslx},</if>
- <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">JCJLSSSFZCYX = #{jcjlsssfzcyx},</if>
- <if test="sfsxzxjc != null and sfsxzxjc != ''">SFSXZXJC = #{sfsxzxjc},</if>
- <if test="sfdqjdhjz != null and sfdqjdhjz != ''">SFDQJDHJZ = #{sfdqjdhjz},</if>
- <if test="sfdkdj != null and sfdkdj != ''">SFDKDJ = #{sfdkdj},</if>
- <if test="qsksl != null and qsksl != ''">QSKSL = #{qsksl},</if>
- <if test="sfbjsc != null and sfbjsc != ''">SFBJSC = #{sfbjsc},</if>
- <if test="qskjbxxbz != null and qskjbxxbz != ''">QSKJBXXBZ = #{qskjbxxbz},</if>
- <if test="jcjlbz != null and jcjlbz != ''">JCJLBZ = #{jcjlbz},</if>
- <if test="column1 != null and column1 != ''">COLUMN1 = #{column1},</if>
- <if test="column2 != null and column2 != ''">COLUMN2 = #{column2},</if>
- <if test="column3 != null and column3 != ''">COLUMN3 = #{column3},</if>
- <if test="column4 != null and column4 != ''">COLUMN4 = #{column4},</if>
- <if test="column5 != null and column5 != ''">COLUMN5 = #{column5},</if>
- <if test="wainIntType != null and wainIntType != ''">WAIN_INT_TYPE = #{wainIntType},</if>
- <if test="desYearQ != null and desYearQ != ''">DES_YEAR_Q = #{desYearQ},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr">
- update BIS_INSP_WINTU_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="jcxm != null and jcxm != ''">JCXM = #{jcxm},</if>
- <if test="jcssglhzywdw != null and jcssglhzywdw != ''">JCSSGLHZYWDW = #{jcssglhzywdw},</if>
- <if test="jcxxsfjrcjw != null and jcxxsfjrcjw != ''">JCXXSFJRCJW = #{jcxxsfjrcjw},</if>
- <if test="qsjlssazqk != null and qsjlssazqk != ''">QSJLSSAZQK = #{qsjlssazqk},</if>
- <if test="csblljts != null and csblljts != ''">CSBLLJTS = #{csblljts},</if>
- <if test="dclljts != null and dclljts != ''">DCLLJTS = #{dclljts},</if>
- <if test="sbts != null and sbts != ''">SBTS = #{sbts},</if>
- <if test="qtts != null and qtts != ''">QTTS = #{qtts},</if>
- <if test="jlsssfdqjdjz != null and jlsssfdqjdjz != ''">JLSSSFDQJDJZ = #{jlsssfdqjdjz},</if>
- <if test="zjycjdjzsj != null and zjycjdjzsj != ''">ZJYCJDJZSJ = #{zjycjdjzsj},</if>
- <if test="qsl2016 != null and qsl2016 != ''">QSL2016 = #{qsl2016},</if>
- <if test="qsl2017 != null and qsl2017 != ''">QSL2017 = #{qsl2017},</if>
- <if test="qsl2018 != null and qsl2018 != ''">QSL2018 = #{qsl2018},</if>
- <if test="qsl2019 != null and qsl2019 != ''">QSL2019 = #{qsl2019},</if>
- <if test="id != null and id != ''">ID = #{id},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="winId != null and winId != ''">WIN_ID = #{winId},</if>
- <if test="winName != null and winName != ''">WIN_NAME = #{winName},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="wiuLoc != null and wiuLoc != ''">WIU_LOC = #{wiuLoc},</if>
- <if test="centerX != null and centerX != ''">CENTER_X = #{centerX},</if>
- <if test="centerY != null and centerY != ''">CENTER_Y = #{centerY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="wiuName != null and wiuName != ''">WIU_NAME = #{wiuName},</if>
- <if test="wiuContact != null and wiuContact != ''">WIU_CONTACT = #{wiuContact},</if>
- <if test="wiuContactTel != null and wiuContactTel != ''">WIU_CONTACT_TEL = #{wiuContactTel},</if>
- <if test="wiuPrincipal != null and wiuPrincipal != ''">WIU_PRINCIPAL = #{wiuPrincipal},</if>
- <if test="wiuPrincipalTel != null and wiuPrincipalTel != ''">WIU_PRINCIPAL_TEL = #{wiuPrincipalTel},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="chkInStat != null and chkInStat != ''">CHK_IN_STAT = #{chkInStat},</if>
- <if test="mendLiftStat != null and mendLiftStat != ''">MEND_LIFT_STAT = #{mendLiftStat},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="groupId != null and groupId != ''">GROUP_ID = #{groupId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- <if test="cwId != null and cwId != ''">CW_ID = #{cwId},</if>
- <if test="ssxtdm != null and ssxtdm != ''">SSXTDM = #{ssxtdm},</if>
- <if test="ssgcdm != null and ssgcdm != ''">SSGCDM = #{ssgcdm},</if>
- <if test="ssxmid != null and ssxmid != ''">SSXMID = #{ssxmid},</if>
- <if test="szyfqdm != null and szyfqdm != ''">SZYFQDM = #{szyfqdm},</if>
- <if test="sslydm != null and sslydm != ''">SSLYDM = #{sslydm},</if>
- <if test="jsyxzt != null and jsyxzt != ''">JSYXZT = #{jsyxzt},</if>
- <if test="sfazjcjlss != null and sfazjcjlss != ''">SFAZJCJLSS = #{sfazjcjlss},</if>
- <if test="jcjlsslx != null and jcjlsslx != ''">JCJLSSLX = #{jcjlsslx},</if>
- <if test="jcjlsssfzcyx != null and jcjlsssfzcyx != ''">JCJLSSSFZCYX = #{jcjlsssfzcyx},</if>
- <if test="sfsxzxjc != null and sfsxzxjc != ''">SFSXZXJC = #{sfsxzxjc},</if>
- <if test="sfdqjdhjz != null and sfdqjdhjz != ''">SFDQJDHJZ = #{sfdqjdhjz},</if>
- <if test="sfdkdj != null and sfdkdj != ''">SFDKDJ = #{sfdkdj},</if>
- <if test="qsksl != null and qsksl != ''">QSKSL = #{qsksl},</if>
- <if test="sfbjsc != null and sfbjsc != ''">SFBJSC = #{sfbjsc},</if>
- <if test="qskjbxxbz != null and qskjbxxbz != ''">QSKJBXXBZ = #{qskjbxxbz},</if>
- <if test="jcjlbz != null and jcjlbz != ''">JCJLBZ = #{jcjlbz},</if>
- <if test="column1 != null and column1 != ''">COLUMN1 = #{column1},</if>
- <if test="column2 != null and column2 != ''">COLUMN2 = #{column2},</if>
- <if test="column3 != null and column3 != ''">COLUMN3 = #{column3},</if>
- <if test="column4 != null and column4 != ''">COLUMN4 = #{column4},</if>
- <if test="column5 != null and column5 != ''">COLUMN5 = #{column5},</if>
- <if test="wainIntType != null and wainIntType != ''">WAIN_INT_TYPE = #{wainIntType},</if>
- <if test="desYearQ != null and desYearQ != ''">DES_YEAR_Q = #{desYearQ},</if>
- </trim>
- <include refid="page_where"/>
- </update>
- <!-- 其他自定义SQL -->
- <select id="findWintuPage" resultType="cn.com.goldenwater.dcproj.dto.BisInspRgstrDto">
- SELECT * FROM (
- select
- A.CODE,ia.INTM,ia.ENTM,
- A.ID nodeId,
- A.NM,
- #{pType} pType,
- A.OBJ_ID,
- B.ID ID,
- b.id as rgstrId,
- aw.id as baseId,
- aw.ssxmid as ssxMid,
- B.column1 as column1,
- (case when b.State is null then '0' else b.state end) STATE,
- B.IN_TM,B.UP_TM,
- b.AD_CODE,
- b.AD_NAME as adName,
- b.CHK_IN_STAT as chkInStat,
- b.MEND_LIFT_STAT as mendLiftStat,
- ia.pnm groupName,
- b.wain_Int_Type as wainIntType
- from BIS_INSP_ALL_OBJ
- A LEFT JOIN BIS_INSP_WINTU_RGSTR B ON A.OBJ_ID=B.OBJ_ID
- LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
- LEFT JOIN ATT_WINT_BASE aw on B.win_id = aw.id
- where A.ptype= #{pType}
- <if test="adCodes ==null or adCodes ==''">
- <choose>
- <when test='isAll =="1"'>
- </when>
- <otherwise>
- and
- A.Id in (
- select distinct id from (
- SELECT P.id FROM BIS_INSP_ALL P START WITH P.PID IN (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID = #{presId} and TYPE = #{pType} and length(id) in (3,6,9))
- CONNECT BY P.PID = PRIOR P.ID
- union all
- SELECT P.id FROM BIS_INSP_ALL P where p.id in (SELECT id FROM BIS_INSP_ALL_RLATION A
- WHERE A.PERSID =#{presId} and TYPE = #{pType} and length(id)=12 )
- )
- )
- </otherwise>
- </choose>
- </if>
- <if test="adCodes !=null and adCodes !=''">
- and
- <foreach item="item" index="index" collection="adCodes.split(',')" open="(" separator="or" close=")">
- b.ad_code like concat('${item}','%')
- </foreach>
- </if>
- ) A WHERE a.PTYPE=#{pType}
- <if test="adCode != null and adCode != '' ">
- and a.AD_CODE like '${adCode}%'
- </if>
- <if test="plnaId !=null and plnaId !=''">
- and a.nodeId like '${plnaId}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE in (${state})
- </if>
- <if test="rsName !=null and rsName !=''">
- and a.nm like '%${rsName}%'
- </if>
- <if test="code !=null and code !=''">
- and a.code = #{code}
- </if>
- <if test="adName != null and adName != ''">and a.adName like '%${adName}%'</if>
- <if test="sttm != null and sttm != ''">and a.Intm>= TO_DATE(#{sttm},'YYYY-MM-DD')</if>
- <if test="entm != null and entm != ''">and a.Intm < To_DATE(#{entm},'yyyy-MM-dd') + 1</if>
- <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
- order by nodeId asc
- <if test="orderBy != null and orderBy != ''">
- ,nlssort(nm,'NLS_SORT=SCHINESE_PINYIN_M')
- </if>
- </select>
- <select id="findPermissionInfo" resultType="cn.com.goldenwater.dcproj.model.Aqsxkspqk">
- SELECT
- QSXKSPLX AS qsxksplx,
- QSXKZH qsxkzh,
- QSXKZYXQKSSJ qsxkzyxqkssj,
- QSXKZYXQJSSJ qsxkzyxqjssj,
- QSSPJG qsspjg,
- QSQRMC qsqrmc,
- QSDD qsdd,
- TSDD tsdd,
- QSFS qsfs,
- TSFS tsfs,
- SPNQSL spnqsl,
- SPNTSL spntsl,
- QSYT qsyt,
- SYLX sylx
- from A_QSXKSPQK
- where ssxmid =#{id}
- </select>
- <select id="findIssueInfo" resultType="cn.com.goldenwater.dcproj.model.Aqsxkspqk">
- select zgdxfl,qyswtqx,qsxksxzgjhnr,qsxksxzgjhwcsj,zgjhbz from A_QSXMZGJHJJZ where ssxmid = #{id}
- </select>
- <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.BisInspWintuRgstr"
- parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
- SELECT
- T.WINT_NAME winName, T.AD_NAME , T.AD_CODE, C.ID GROUPID, C.PNM GROUPNAME, B.OBJ_ID
- FROM ATT_WINT_BASE T
- LEFT JOIN BIS_INSP_ALL_OBJ B ON B.CODE = T.ID
- LEFT JOIN BIS_INSP_ALL C ON B.ID = C.ID
- WHERE B.ptype = #{objType}
- <if test='isAll == "0"'>and B.ID = #{inspGroupId}</if>
- <if test='isAll == "1"'>and B.ID LIKE '${inspGroupId}%'</if>
- <if test="adCode != null and adCode != ''">
- and t.AD_CODE like '${adCode}%'
- </if>
- <if test="wtdstNm != null and wtdstNm != ''">
- and t.WINT_NAME like '${wtdstNm}%'
- </if>
- <choose>
- <when test="province != null and province != ''">
- and B.AD_CODE LIKE '${province}%'
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- </select>
- </mapper>
|