| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546 |
- <?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.BisInspSvwtWuntRgstrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr" id="bisInspSvwtWuntRgstrResultMap">
- <result property="wuUtAttn" column="WU_UT_ATTN"/>
- <result property="wuUtCont" column="WU_UT_CONT"/>
- <result property="utPersNum" column="UT_PERS_NUM"/>
- <result property="workNum" column="WORK_NUM"/>
- <result property="workNotNum" column="WORK_NOT_NUM"/>
- <result property="totArea" column="TOT_AREA"/>
- <result property="buldArea" column="BULD_AREA"/>
- <result property="schCla" column="SCH_CLA"/>
- <result property="uniCla" column="UNI_CLA"/>
- <result property="teachNum" column="TEACH_NUM"/>
- <result property="teachLvNum" column="TEACH_LV_NUM"/>
- <result property="stuNum" column="STU_NUM"/>
- <result property="stuLvNum" column="STU_LV_NUM"/>
- <result property="isLchCwsm" column="IS_LCH_CWSM"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="chkUnit" column="CHK_UNIT"/>
- <result property="chkPers" column="CHK_PERS"/>
- <result property="chkTm" column="CHK_TM"/>
- <result property="wuuswInfoStat" column="WUUSW_INFO_STAT"/>
- <result property="wsuswInfoStat" column="WSUSW_INFO_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="id" column="ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="utName" column="UT_NAME"/>
- <result property="utCode" column="UT_CODE"/>
- <result property="adName" column="AD_NAME"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="utType" column="UT_TYPE"/>
- <result property="utPpt" column="UT_PPT"/>
- <result property="openName" column="OPEN_NAME"/>
- <result property="utAttn" column="UT_ATTN"/>
- <result property="utCont" column="UT_CONT"/>
- <result property="signAddr" column="SIGN_ADDR"/>
- <result property="utAddr" column="UT_ADDR"/>
- <result property="pcX" column="PC_X"/>
- <result property="pcY" column="PC_Y"/>
- <result property="gdX" column="GD_X"/>
- <result property="gdY" column="GD_Y"/>
- <result property="trdType" column="TRD_TYPE"/>
- <result property="greenArea" column="GREEN_AREA"/>
- <result property="wsTw" column="WS_TW"/>
- <result property="wsBw" column="WS_BW"/>
- <result property="wsOth" column="WS_OTH"/>
- <result property="payWb" column="PAY_WB"/>
- <result property="wbPer" column="WB_PER"/>
- <result property="hotlLev" column="HOTL_LEV"/>
- <result property="bedNum" column="BED_NUM"/>
- <result property="occRate" column="OCC_RATE"/>
- <result property="wuUnit" column="WU_UNIT"/>
- <result property="wuUnitOut" column="WU_UNIT_OUT"/>
- <result property="mainPrd" column="MAIN_PRD"/>
- <result property="wipaa" column="WIPAA"/>
- <result property="hasWrmrms" column="HAS_WRMRMS"/>
- <result property="isKmwuul" column="IS_KMWUUL"/>
- <result property="kmwuulLev" column="KMWUUL_LEV"/>
- <result property="wuUt" column="WU_UT"/>
- <result property="utLead" column="UT_LEAD"/>
- <result property="province" column="PROVINCE"/>
- </resultMap>
-
- <sql id="table_columns">
- WU_UT_ATTN,PROVINCE,
- WU_UT_CONT,
- UT_PERS_NUM,
- WORK_NUM,
- WORK_NOT_NUM,
- TOT_AREA,
- BULD_AREA,
- SCH_CLA,
- UNI_CLA,
- TEACH_NUM,
- TEACH_LV_NUM,
- STU_NUM,
- STU_LV_NUM,
- IS_LCH_CWSM,
- STATE,
- DATA_STAT,
- CHK_UNIT,
- CHK_PERS,
- CHK_TM,
- WUUSW_INFO_STAT,
- WSUSW_INFO_STAT,
- PERS_ID,
- GROUP_ID,
- IN_TM,
- UP_TM,
- ID,
- OBJ_ID,
- UT_NAME,
- UT_CODE,
- AD_NAME,
- AD_CODE,
- UT_TYPE,
- UT_PPT,
- OPEN_NAME,
- UT_ATTN,
- UT_CONT,
- SIGN_ADDR,
- UT_ADDR,
- PC_X,
- PC_Y,
- GD_X,
- GD_Y,
- TRD_TYPE,
- GREEN_AREA,
- WS_TW,
- WS_BW,
- WS_OTH,
- PAY_WB,
- WB_PER,
- HOTL_LEV,
- BED_NUM,
- OCC_RATE,
- WU_UNIT,
- WU_UNIT_OUT,
- MAIN_PRD,
- WIPAA,
- HAS_WRMRMS,
- IS_KMWUUL,
- KMWUUL_LEV,
- WU_UT,
- UT_LEAD
- </sql>
- <sql id="entity_properties">
- #{wuUtAttn},#{province},
- #{wuUtCont},
- #{utPersNum},
- #{workNum},
- #{workNotNum},
- #{totArea},
- #{buldArea},
- #{schCla},
- #{uniCla},
- #{teachNum},
- #{teachLvNum},
- #{stuNum},
- #{stuLvNum},
- #{isLchCwsm},
- #{state},
- #{dataStat},
- #{chkUnit},
- #{chkPers},
- #{chkTm},
- #{wuuswInfoStat},
- #{wsuswInfoStat},
- #{persId},
- #{groupId},
- #{inTm},
- #{upTm},
- #{id},
- #{objId},
- #{utName},
- #{utCode},
- #{adName},
- #{adCode},
- #{utType},
- #{utPpt},
- #{openName},
- #{utAttn},
- #{utCont},
- #{signAddr},
- #{utAddr},
- #{pcX},
- #{pcY},
- #{gdX},
- #{gdY},
- #{trdType},
- #{greenArea},
- #{wsTw},
- #{wsBw},
- #{wsOth},
- #{payWb},
- #{wbPer},
- #{hotlLev},
- #{bedNum},
- #{occRate},
- #{wuUnit},
- #{wuUnitOut},
- #{mainPrd},
- #{wipaa},
- #{hasWrmrms},
- #{isKmwuul},
- #{kmwuulLev},
- #{wuUt},
- #{utLead}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="wuUtAttn != null and wuUtAttn != ''">and WU_UT_ATTN = #{wuUtAttn}</if>
- <if test="wuUtCont != null and wuUtCont != ''">and WU_UT_CONT = #{wuUtCont}</if>
- <if test="utPersNum != null and utPersNum != ''">and UT_PERS_NUM = #{utPersNum}</if>
- <if test="workNum != null and workNum != ''">and WORK_NUM = #{workNum}</if>
- <if test="workNotNum != null and workNotNum != ''">and WORK_NOT_NUM = #{workNotNum}</if>
- <if test="totArea != null and totArea != ''">and TOT_AREA = #{totArea}</if>
- <if test="buldArea != null and buldArea != ''">and BULD_AREA = #{buldArea}</if>
- <if test="schCla != null and schCla != ''">and SCH_CLA = #{schCla}</if>
- <if test="uniCla != null and uniCla != ''">and UNI_CLA = #{uniCla}</if>
- <if test="teachNum != null and teachNum != ''">and TEACH_NUM = #{teachNum}</if>
- <if test="teachLvNum != null and teachLvNum != ''">and TEACH_LV_NUM = #{teachLvNum}</if>
- <if test="stuNum != null and stuNum != ''">and STU_NUM = #{stuNum}</if>
- <if test="stuLvNum != null and stuLvNum != ''">and STU_LV_NUM = #{stuLvNum}</if>
- <if test="isLchCwsm != null and isLchCwsm != ''">and IS_LCH_CWSM = #{isLchCwsm}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="chkUnit != null and chkUnit != ''">and CHK_UNIT = #{chkUnit}</if>
- <if test="chkPers != null and chkPers != ''">and CHK_PERS = #{chkPers}</if>
- <if test="chkTm != null">and CHK_TM = #{chkTm}</if>
- <if test="wuuswInfoStat != null and wuuswInfoStat != ''">and WUUSW_INFO_STAT = #{wuuswInfoStat}</if>
- <if test="wsuswInfoStat != null and wsuswInfoStat != ''">and WSUSW_INFO_STAT = #{wsuswInfoStat}</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="id != null and id != ''">and ID = #{id}</if>
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <if test="utName != null and utName != ''">and UT_NAME = #{utName}</if>
- <if test="utCode != null and utCode != ''">and UT_CODE = #{utCode}</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="utType != null and utType != ''">and UT_TYPE = #{utType}</if>
- <if test="utPpt != null and utPpt != ''">and UT_PPT = #{utPpt}</if>
- <if test="openName != null and openName != ''">and OPEN_NAME = #{openName}</if>
- <if test="utAttn != null and utAttn != ''">and UT_ATTN = #{utAttn}</if>
- <if test="utCont != null and utCont != ''">and UT_CONT = #{utCont}</if>
- <if test="signAddr != null and signAddr != ''">and SIGN_ADDR = #{signAddr}</if>
- <if test="utAddr != null and utAddr != ''">and UT_ADDR = #{utAddr}</if>
- <if test="pcX != null and pcX != ''">and PC_X = #{pcX}</if>
- <if test="pcY != null and pcY != ''">and PC_Y = #{pcY}</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="trdType != null and trdType != ''">and TRD_TYPE = #{trdType}</if>
- <if test="greenArea != null and greenArea != ''">and GREEN_AREA = #{greenArea}</if>
- <if test="wsTw != null and wsTw != ''">and WS_TW = #{wsTw}</if>
- <if test="wsBw != null and wsBw != ''">and WS_BW = #{wsBw}</if>
- <if test="wsOth != null and wsOth != ''">and WS_OTH = #{wsOth}</if>
- <if test="payWb != null and payWb != ''">and PAY_WB = #{payWb}</if>
- <if test="wbPer != null and wbPer != ''">and WB_PER = #{wbPer}</if>
- <if test="hotlLev != null and hotlLev != ''">and HOTL_LEV = #{hotlLev}</if>
- <if test="bedNum != null and bedNum != ''">and BED_NUM = #{bedNum}</if>
- <if test="occRate != null and occRate != ''">and OCC_RATE = #{occRate}</if>
- <if test="wuUnit != null and wuUnit != ''">and WU_UNIT = #{wuUnit}</if>
- <if test="wuUnitOut != null and wuUnitOut != ''">and WU_UNIT_OUT = #{wuUnitOut}</if>
- <if test="mainPrd != null and mainPrd != ''">and MAIN_PRD = #{mainPrd}</if>
- <if test="wipaa != null and wipaa != ''">and WIPAA = #{wipaa}</if>
- <if test="hasWrmrms != null and hasWrmrms != ''">and HAS_WRMRMS = #{hasWrmrms}</if>
- <if test="isKmwuul != null and isKmwuul != ''">and IS_KMWUUL = #{isKmwuul}</if>
- <if test="kmwuulLev != null and kmwuulLev != ''">and KMWUUL_LEV = #{kmwuulLev}</if>
- <if test="wuUt != null and wuUt != ''">and WU_UT = #{wuUt}</if>
- <if test="utLead != null and utLead != ''"> and UT_LEAD = #{utLead}</if>
- <if test="province != null and province != ''"> and PROVINCE = #{province}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSvwtWuntRgstrResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSvwtWuntRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSvwtWuntRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR
- </select>
- <select id="findList" resultMap="bisInspSvwtWuntRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SVWT_WUNT_RGSTR <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SVWT_WUNT_RGSTR <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr">
- insert into BIS_INSP_SVWT_WUNT_RGSTR( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SVWT_WUNT_RGSTR where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr">
- delete from BIS_INSP_SVWT_WUNT_RGSTR <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SVWT_WUNT_RGSTR set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr">
- update BIS_INSP_SVWT_WUNT_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="wuUtAttn != null and wuUtAttn != ''">WU_UT_ATTN = #{wuUtAttn},</if>
- <if test="wuUtCont != null and wuUtCont != ''">WU_UT_CONT = #{wuUtCont},</if>
- <if test="province != null and province != ''"> PROVINCE = #{province},</if>
- <if test="utPersNum != null and utPersNum != ''">UT_PERS_NUM = #{utPersNum},</if>
- <if test="workNum != null and workNum != ''">WORK_NUM = #{workNum},</if>
- <if test="workNotNum != null and workNotNum != ''">WORK_NOT_NUM = #{workNotNum},</if>
- <if test="totArea != null and totArea != ''">TOT_AREA = #{totArea},</if>
- <if test="buldArea != null and buldArea != ''">BULD_AREA = #{buldArea},</if>
- <if test="schCla != null and schCla != ''">SCH_CLA = #{schCla},</if>
- <if test="uniCla != null and uniCla != ''">UNI_CLA = #{uniCla},</if>
- <if test="teachNum != null and teachNum != ''">TEACH_NUM = #{teachNum},</if>
- <if test="teachLvNum != null and teachLvNum != ''">TEACH_LV_NUM = #{teachLvNum},</if>
- <if test="stuNum != null and stuNum != ''">STU_NUM = #{stuNum},</if>
- <if test="stuLvNum != null and stuLvNum != ''">STU_LV_NUM = #{stuLvNum},</if>
- <if test="isLchCwsm != null and isLchCwsm != ''">IS_LCH_CWSM = #{isLchCwsm},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="chkUnit != null and chkUnit != ''">CHK_UNIT = #{chkUnit},</if>
- <if test="chkPers != null and chkPers != ''">CHK_PERS = #{chkPers},</if>
- <if test="chkTm != null">CHK_TM = #{chkTm},</if>
- <if test="wuuswInfoStat != null and wuuswInfoStat != ''">WUUSW_INFO_STAT = #{wuuswInfoStat},</if>
- <if test="wsuswInfoStat != null and wsuswInfoStat != ''">WSUSW_INFO_STAT = #{wsuswInfoStat},</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="id != null and id != ''">ID = #{id},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="utName != null and utName != ''">UT_NAME = #{utName},</if>
- <if test="utCode != null and utCode != ''">UT_CODE = #{utCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="utType != null and utType != ''">UT_TYPE = #{utType},</if>
- <if test="utPpt != null and utPpt != ''">UT_PPT = #{utPpt},</if>
- <if test="openName != null and openName != ''">OPEN_NAME = #{openName},</if>
- <if test="utAttn != null and utAttn != ''">UT_ATTN = #{utAttn},</if>
- <if test="utCont != null and utCont != ''">UT_CONT = #{utCont},</if>
- <if test="signAddr != null and signAddr != ''">SIGN_ADDR = #{signAddr},</if>
- <if test="utAddr != null and utAddr != ''">UT_ADDR = #{utAddr},</if>
- <if test="pcX != null and pcX != ''">PC_X = #{pcX},</if>
- <if test="pcY != null and pcY != ''">PC_Y = #{pcY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="trdType != null and trdType != ''">TRD_TYPE = #{trdType},</if>
- <if test="greenArea != null and greenArea != ''">GREEN_AREA = #{greenArea},</if>
- <if test="wsTw != null and wsTw != ''">WS_TW = #{wsTw},</if>
- <if test="wsBw != null and wsBw != ''">WS_BW = #{wsBw},</if>
- <if test="wsOth != null and wsOth != ''">WS_OTH = #{wsOth},</if>
- <if test="payWb != null and payWb != ''">PAY_WB = #{payWb},</if>
- <if test="wbPer != null and wbPer != ''">WB_PER = #{wbPer},</if>
- <if test="hotlLev != null and hotlLev != ''">HOTL_LEV = #{hotlLev},</if>
- <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
- <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
- <if test="wuUnit != null and wuUnit != ''">WU_UNIT = #{wuUnit},</if>
- <if test="wuUnitOut != null and wuUnitOut != ''">WU_UNIT_OUT = #{wuUnitOut},</if>
- <if test="mainPrd != null and mainPrd != ''">MAIN_PRD = #{mainPrd},</if>
- <if test="wipaa != null and wipaa != ''">WIPAA = #{wipaa},</if>
- <if test="hasWrmrms != null and hasWrmrms != ''">HAS_WRMRMS = #{hasWrmrms},</if>
- <if test="isKmwuul != null and isKmwuul != ''">IS_KMWUUL = #{isKmwuul},</if>
- <if test="kmwuulLev != null and kmwuulLev != ''">KMWUUL_LEV = #{kmwuulLev},</if>
- <if test="wuUt != null and wuUt != ''">WU_UT = #{wuUt},</if>
- <if test="utLead != null and utLead != ''">UT_LEAD = #{utLead},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr">
- update BIS_INSP_SVWT_WUNT_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="wuUtAttn != null and wuUtAttn != ''">WU_UT_ATTN = #{wuUtAttn},</if>
- <if test="wuUtCont != null and wuUtCont != ''">WU_UT_CONT = #{wuUtCont},</if>
- <if test="province != null and province != ''"> PROVINCE = #{province},</if>
- <if test="utPersNum != null and utPersNum != ''">UT_PERS_NUM = #{utPersNum},</if>
- <if test="workNum != null and workNum != ''">WORK_NUM = #{workNum},</if>
- <if test="workNotNum != null and workNotNum != ''">WORK_NOT_NUM = #{workNotNum},</if>
- <if test="totArea != null and totArea != ''">TOT_AREA = #{totArea},</if>
- <if test="buldArea != null and buldArea != ''">BULD_AREA = #{buldArea},</if>
- <if test="schCla != null and schCla != ''">SCH_CLA = #{schCla},</if>
- <if test="uniCla != null and uniCla != ''">UNI_CLA = #{uniCla},</if>
- <if test="teachNum != null and teachNum != ''">TEACH_NUM = #{teachNum},</if>
- <if test="teachLvNum != null and teachLvNum != ''">TEACH_LV_NUM = #{teachLvNum},</if>
- <if test="stuNum != null and stuNum != ''">STU_NUM = #{stuNum},</if>
- <if test="stuLvNum != null and stuLvNum != ''">STU_LV_NUM = #{stuLvNum},</if>
- <if test="isLchCwsm != null and isLchCwsm != ''">IS_LCH_CWSM = #{isLchCwsm},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="chkUnit != null and chkUnit != ''">CHK_UNIT = #{chkUnit},</if>
- <if test="chkPers != null and chkPers != ''">CHK_PERS = #{chkPers},</if>
- <if test="chkTm != null">CHK_TM = #{chkTm},</if>
- <if test="wuuswInfoStat != null and wuuswInfoStat != ''">WUUSW_INFO_STAT = #{wuuswInfoStat},</if>
- <if test="wsuswInfoStat != null and wsuswInfoStat != ''">WSUSW_INFO_STAT = #{wsuswInfoStat},</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="id != null and id != ''">ID = #{id},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="utName != null and utName != ''">UT_NAME = #{utName},</if>
- <if test="utCode != null and utCode != ''">UT_CODE = #{utCode},</if>
- <if test="adName != null and adName != ''">AD_NAME = #{adName},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="utType != null and utType != ''">UT_TYPE = #{utType},</if>
- <if test="utPpt != null and utPpt != ''">UT_PPT = #{utPpt},</if>
- <if test="openName != null and openName != ''">OPEN_NAME = #{openName},</if>
- <if test="utAttn != null and utAttn != ''">UT_ATTN = #{utAttn},</if>
- <if test="utCont != null and utCont != ''">UT_CONT = #{utCont},</if>
- <if test="signAddr != null and signAddr != ''">SIGN_ADDR = #{signAddr},</if>
- <if test="utAddr != null and utAddr != ''">UT_ADDR = #{utAddr},</if>
- <if test="pcX != null and pcX != ''">PC_X = #{pcX},</if>
- <if test="pcY != null and pcY != ''">PC_Y = #{pcY},</if>
- <if test="gdX != null and gdX != ''">GD_X = #{gdX},</if>
- <if test="gdY != null and gdY != ''">GD_Y = #{gdY},</if>
- <if test="trdType != null and trdType != ''">TRD_TYPE = #{trdType},</if>
- <if test="greenArea != null and greenArea != ''">GREEN_AREA = #{greenArea},</if>
- <if test="wsTw != null and wsTw != ''">WS_TW = #{wsTw},</if>
- <if test="wsBw != null and wsBw != ''">WS_BW = #{wsBw},</if>
- <if test="wsOth != null and wsOth != ''">WS_OTH = #{wsOth},</if>
- <if test="payWb != null and payWb != ''">PAY_WB = #{payWb},</if>
- <if test="wbPer != null and wbPer != ''">WB_PER = #{wbPer},</if>
- <if test="hotlLev != null and hotlLev != ''">HOTL_LEV = #{hotlLev},</if>
- <if test="bedNum != null and bedNum != ''">BED_NUM = #{bedNum},</if>
- <if test="occRate != null and occRate != ''">OCC_RATE = #{occRate},</if>
- <if test="wuUnit != null and wuUnit != ''">WU_UNIT = #{wuUnit},</if>
- <if test="wuUnitOut != null and wuUnitOut != ''">WU_UNIT_OUT = #{wuUnitOut},</if>
- <if test="mainPrd != null and mainPrd != ''">MAIN_PRD = #{mainPrd},</if>
- <if test="wipaa != null and wipaa != ''">WIPAA = #{wipaa},</if>
- <if test="hasWrmrms != null and hasWrmrms != ''">HAS_WRMRMS = #{hasWrmrms},</if>
- <if test="isKmwuul != null and isKmwuul != ''">IS_KMWUUL = #{isKmwuul},</if>
- <if test="kmwuulLev != null and kmwuulLev != ''">KMWUUL_LEV = #{kmwuulLev},</if>
- <if test="wuUt != null and wuUt != ''">WU_UT = #{wuUt},</if>
- <if test="utLead != null and utLead != ''">UT_LEAD = #{utLead},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <sql id="choseSql">
- <choose>
- <when test="province !=null and province !=''">
- and B.province like '${province}%'
- </when>
- <otherwise>
- and B.province is null
- </otherwise>
- </choose>
- </sql>
- <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.model.BisInspSvwtWuntRgstr" parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
- select t.*,C.id groupId,C.PNM groupName,B.obj_id
- from att_wunt_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
- and B.ptype = #{objType}
- where 1 = 1
- <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>
- <choose>
- <when test="province != null and province != ''">
- and B.AD_CODE LIKE '${province}%'
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- </select>
- <sql id="orgIdSql">
- <choose>
- <when test="orgId !=null and orgId !=''">
- and ORG_ID=#{orgId}
- </when>
- <otherwise>
- and ORG_ID is null
- </otherwise>
- </choose>
- </sql>
- <!-- 其他自定义SQL -->
- <select id="findSvwtWuntList" parameterType="cn.com.goldenwater.dcproj.param.TypeParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspRgstrDto">
- SELECT * FROM (
- select A.CODE,A.ID nodeId,
- A.NM,
- #{pType} PTYPE,
- B.pc_x,
- B.pc_y,
- B.GD_X,
- B.GD_y,
- A.OBJ_ID,B.ID ID,
- b.UT_TYPE as type,
- b.UT_PPT as utPpt,
- b.ut_lead as lead,
- b.ut_attn as attn,
- b.ut_cont as cont,
- (case when b.UT_ADDR is null then c.ad_full_name else b.UT_ADDR end) as location,
- (case when b.State is null then '0' else b.state end)STATE
- ,B.IN_TM,
- B.WUUSW_INFO_STAT,
- B.WSUSW_INFO_STAT,
- c.ad_full_name as adName,
- ia.pnm groupName
- from BIS_INSP_ALL_OBJ
- A LEFT JOIN BIS_INSP_SVWT_WUNT_RGSTR B ON A.OBJ_ID=B.OBJ_ID
- LEFT JOIN ATT_AD_X_BASE C ON B.Ad_CODE=C.AD_CODE
- LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
- where A.ptype= #{pType}
- <if test="tabType =='2'.toString()">
- and ia.entm < DATE_ADD(STR_TO_DATE(#{nowTime},'%Y-%m-%d'), INTERVAL 1 DAY)
- </if>
- <if test="tabType =='1'.toString()">
- and ia.entm >=STR_TO_DATE(#{nowTime},'%Y-%m-%d')
- </if>
- <include refid="choseSql"/>
- and A.id in (${inIdsSql})
- ) A WHERE a.PTYPE=#{pType}
- <if test="plnaId !=null and plnaId !=''">
- and a.nodeId like '${plnaId}%'
- </if>
- <if test="state !=null and state !=''">
- and STATE=#{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.IN_TM>= STR_TO_DATE(#{sttm},'%Y-%m-%d')</if>
- <if test="entm != null and entm != ''">and a.IN_TM < DATE_ADD(STR_TO_DATE(#{entm},'%Y-%m-%d') , INTERVAL 1 DAY)</if>
- <if test="groupId != null and groupId != ''">and a.nodeId = #{groupId}</if>
- order by nodeId asc
- <if test="orderBy != null and orderBy != ''">
- ,CONVERT( nm USING gbk ) COLLATE gbk_chinese_ci ASC
- </if>
- </select>
- </mapper>
|