| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452 |
- <?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.BisInspSdRgstrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisInspSdRgstr" id="bisInspSdRgstrResultMap">
- <result property="id" column="ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="sdCode" column="SD_CODE"/>
- <result property="sdName" column="SD_NAME"/>
- <result property="sdType" column="SD_TYPE"/>
- <result property="sdTypeStr" column="SD_TYPE_STR"/>
- <result property="conArea" column="CON_AREA"/>
- <result property="totCap" column="TOT_CAP"/>
- <result property="flcoCap" column="FLCO_CAP"/>
- <result property="sdrCap" column="SDR_CAP"/>
- <result property="flcoYear" column="FLCO_YEAR"/>
- <result property="warpCap" column="WARP_CAP"/>
- <result property="damSizeHig" column="DAM_SIZE_HIG"/>
- <result property="damTopLen" column="DAM_TOP_LEN"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="sdLoc" column="SD_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="asinttds" column="ASINTTDS"/>
- <result property="noSpway" column="NO_SPWAY"/>
- <result property="damTear" column="DAM_TEAR"/>
- <result property="damLandSubSide" column="DAM_LAND_SUB_SIDE"/>
- <result property="damRsog" column="DAM_RSOG"/>
- <result property="damLopc" column="DAM_LOPC"/>
- <result property="dsLts" column="DS_LTS"/>
- <result property="dsCc" column="DS_CC"/>
- <result property="dsOc" column="DS_OC"/>
- <result property="frsMar" column="FRS_MAR"/>
- <result property="frsTbd" column="FRS_TBD"/>
- <result property="frsOth" column="FRS_OTH"/>
- <result property="note" column="NOTE"/>
- <result property="state" column="STATE"/>
- <result property="dataStat" column="DATA_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="adName" column="AD_NAME"/>
- <result property="province" column="PROVINCE"/>
- </resultMap>
-
- <sql id="table_columns">
- ID,
- OBJ_ID,
- SD_CODE,
- SD_NAME,
- SD_TYPE,
- SD_TYPE_STR,
- CON_AREA,
- TOT_CAP,
- FLCO_CAP,
- SDR_CAP,
- FLCO_YEAR,
- WARP_CAP,
- DAM_SIZE_HIG,
- DAM_TOP_LEN,
- AD_CODE,
- SD_LOC,
- CENTER_X,
- CENTER_Y,
- GD_X,
- GD_Y,
- ASINTTDS,
- NO_SPWAY,
- DAM_TEAR,
- DAM_LAND_SUB_SIDE,
- DAM_RSOG,
- DAM_LOPC,
- DS_LTS,
- DS_CC,
- DS_OC,
- FRS_MAR,
- FRS_TBD,
- FRS_OTH,
- NOTE,
- STATE,
- DATA_STAT,
- PERS_ID,
- GROUP_ID,
- IN_TM,
- UP_TM,
- AD_NAME,PROVINCE
- </sql>
- <sql id="entity_properties">
- #{id},
- #{objId},
- #{sdCode},
- #{sdName},
- #{sdType},
- #{sdTypeStr},
- #{conArea},
- #{totCap},
- #{flcoCap},
- #{sdrCap},
- #{flcoYear},
- #{warpCap},
- #{damSizeHig},
- #{damTopLen},
- #{adCode},
- #{sdLoc},
- #{centerX},
- #{centerY},
- #{gdX},
- #{gdY},
- #{asinttds},
- #{noSpway},
- #{damTear},
- #{damLandSubSide},
- #{damRsog},
- #{damLopc},
- #{dsLts},
- #{dsCc},
- #{dsOc},
- #{frsMar},
- #{frsTbd},
- #{frsOth},
- #{note},
- #{state},
- #{dataStat},
- #{persId},
- #{groupId},
- #{inTm},
- #{upTm},
- #{adName},#{province}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="objId != null and objId != ''">and OBJ_ID = #{objId}</if>
- <choose>
- <when test="province !=null and province !=''">
- and province =#{province}
- </when>
- <otherwise>
- and province is null
- </otherwise>
- </choose>
- <if test="sdCode != null and sdCode != ''">and SD_CODE = #{sdCode}</if>
- <if test="sdName != null and sdName != ''">and SD_NAME = #{sdName}</if>
- <if test="sdType != null and sdType != ''">and SD_TYPE = #{sdType}</if>
- <if test="sdTypeStr != null and sdTypeStr != ''">and SD_TYPE_STR = #{sdTypeStr}</if>
- <if test="conArea != null and conArea != ''">and CON_AREA = #{conArea}</if>
- <if test="totCap != null and totCap != ''">and TOT_CAP = #{totCap}</if>
- <if test="flcoCap != null and flcoCap != ''">and FLCO_CAP = #{flcoCap}</if>
- <if test="sdrCap != null and sdrCap != ''">and SDR_CAP = #{sdrCap}</if>
- <if test="flcoYear != null and flcoYear != ''">and FLCO_YEAR = #{flcoYear}</if>
- <if test="warpCap != null and warpCap != ''">and WARP_CAP = #{warpCap}</if>
- <if test="damSizeHig != null and damSizeHig != ''">and DAM_SIZE_HIG = #{damSizeHig}</if>
- <if test="damTopLen != null and damTopLen != ''">and DAM_TOP_LEN = #{damTopLen}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="sdLoc != null and sdLoc != ''">and SD_LOC = #{sdLoc}</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="asinttds != null and asinttds != ''">and ASINTTDS = #{asinttds}</if>
- <if test="noSpway != null and noSpway != ''">and NO_SPWAY = #{noSpway}</if>
- <if test="damTear != null and damTear != ''">and DAM_TEAR = #{damTear}</if>
- <if test="damLandSubSide != null and damLandSubSide != ''">and DAM_LAND_SUB_SIDE = #{damLandSubSide}</if>
- <if test="damRsog != null and damRsog != ''">and DAM_RSOG = #{damRsog}</if>
- <if test="damLopc != null and damLopc != ''">and DAM_LOPC = #{damLopc}</if>
- <if test="dsLts != null and dsLts != ''">and DS_LTS = #{dsLts}</if>
- <if test="dsCc != null and dsCc != ''">and DS_CC = #{dsCc}</if>
- <if test="dsOc != null and dsOc != ''">and DS_OC = #{dsOc}</if>
- <if test="frsMar != null and frsMar != ''">and FRS_MAR = #{frsMar}</if>
- <if test="frsTbd != null and frsTbd != ''">and FRS_TBD = #{frsTbd}</if>
- <if test="frsOth != null and frsOth != ''">and FRS_OTH = #{frsOth}</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="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="adName != null and adName != ''">and AD_NAME = #{adName}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisInspSdRgstrResultMap" parameterType="String" >
- select <include refid="table_columns" /> from BIS_INSP_SD_RGSTR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisInspSdRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SD_RGSTR <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="bisInspSdRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SD_RGSTR
- </select>
- <select id="findList" resultMap="bisInspSdRgstrResultMap">
- select <include refid="table_columns" /> from BIS_INSP_SD_RGSTR <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from BIS_INSP_SD_RGSTR <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisInspSdRgstr">
- insert into BIS_INSP_SD_RGSTR( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_INSP_SD_RGSTR where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSdRgstr">
- delete from BIS_INSP_SD_RGSTR <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_INSP_SD_RGSTR set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisInspSdRgstr">
- update BIS_INSP_SD_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="sdCode != null and sdCode != ''">SD_CODE = #{sdCode},</if>
- <if test="sdName != null and sdName != ''">SD_NAME = #{sdName},</if>
- <if test="sdType != null and sdType != ''">SD_TYPE = #{sdType},</if>
- <if test="sdTypeStr != null and sdTypeStr != ''">SD_TYPE_STR = #{sdTypeStr},</if>
- <if test="conArea != null and conArea != ''">CON_AREA = #{conArea},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="flcoCap != null and flcoCap != ''">FLCO_CAP = #{flcoCap},</if>
- <if test="sdrCap != null and sdrCap != ''">SDR_CAP = #{sdrCap},</if>
- <if test="flcoYear != null and flcoYear != ''">FLCO_YEAR = #{flcoYear},</if>
- <if test="warpCap != null and warpCap != ''">WARP_CAP = #{warpCap},</if>
- <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
- <if test="damTopLen != null and damTopLen != ''">DAM_TOP_LEN = #{damTopLen},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="province != null and province != ''"> PROVINCE = #{province},</if>
- <if test="sdLoc != null and sdLoc != ''">SD_LOC = #{sdLoc},</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="asinttds != null and asinttds != ''">ASINTTDS = #{asinttds},</if>
- <if test="noSpway != null and noSpway != ''">NO_SPWAY = #{noSpway},</if>
- <if test="damTear != null and damTear != ''">DAM_TEAR = #{damTear},</if>
- <if test="damLandSubSide != null and damLandSubSide != ''">DAM_LAND_SUB_SIDE = #{damLandSubSide},</if>
- <if test="damRsog != null and damRsog != ''">DAM_RSOG = #{damRsog},</if>
- <if test="damLopc != null and damLopc != ''">DAM_LOPC = #{damLopc},</if>
- <if test="dsLts != null and dsLts != ''">DS_LTS = #{dsLts},</if>
- <if test="dsCc != null and dsCc != ''">DS_CC = #{dsCc},</if>
- <if test="dsOc != null and dsOc != ''">DS_OC = #{dsOc},</if>
- <if test="frsMar != null and frsMar != ''">FRS_MAR = #{frsMar},</if>
- <if test="frsTbd != null and frsTbd != ''">FRS_TBD = #{frsTbd},</if>
- <if test="frsOth != null and frsOth != ''">FRS_OTH = #{frsOth},</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="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="adName != null and adName != ''">AD_NAME = #{adName},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.BisInspSdRgstr">
- update BIS_INSP_SD_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="sdCode != null and sdCode != ''">SD_CODE = #{sdCode},</if>
- <if test="sdName != null and sdName != ''">SD_NAME = #{sdName},</if>
- <if test="sdType != null and sdType != ''">SD_TYPE = #{sdType},</if>
- <if test="sdTypeStr != null and sdTypeStr != ''">SD_TYPE_STR = #{sdTypeStr},</if>
- <if test="conArea != null and conArea != ''">CON_AREA = #{conArea},</if>
- <if test="totCap != null and totCap != ''">TOT_CAP = #{totCap},</if>
- <if test="province != null and province != ''"> PROVINCE = #{province},</if>
- <if test="flcoCap != null and flcoCap != ''">FLCO_CAP = #{flcoCap},</if>
- <if test="sdrCap != null and sdrCap != ''">SDR_CAP = #{sdrCap},</if>
- <if test="flcoYear != null and flcoYear != ''">FLCO_YEAR = #{flcoYear},</if>
- <if test="warpCap != null and warpCap != ''">WARP_CAP = #{warpCap},</if>
- <if test="damSizeHig != null and damSizeHig != ''">DAM_SIZE_HIG = #{damSizeHig},</if>
- <if test="damTopLen != null and damTopLen != ''">DAM_TOP_LEN = #{damTopLen},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="sdLoc != null and sdLoc != ''">SD_LOC = #{sdLoc},</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="asinttds != null and asinttds != ''">ASINTTDS = #{asinttds},</if>
- <if test="noSpway != null and noSpway != ''">NO_SPWAY = #{noSpway},</if>
- <if test="damTear != null and damTear != ''">DAM_TEAR = #{damTear},</if>
- <if test="damLandSubSide != null and damLandSubSide != ''">DAM_LAND_SUB_SIDE = #{damLandSubSide},</if>
- <if test="damRsog != null and damRsog != ''">DAM_RSOG = #{damRsog},</if>
- <if test="damLopc != null and damLopc != ''">DAM_LOPC = #{damLopc},</if>
- <if test="dsLts != null and dsLts != ''">DS_LTS = #{dsLts},</if>
- <if test="dsCc != null and dsCc != ''">DS_CC = #{dsCc},</if>
- <if test="dsOc != null and dsOc != ''">DS_OC = #{dsOc},</if>
- <if test="frsMar != null and frsMar != ''">FRS_MAR = #{frsMar},</if>
- <if test="frsTbd != null and frsTbd != ''">FRS_TBD = #{frsTbd},</if>
- <if test="frsOth != null and frsOth != ''">FRS_OTH = #{frsOth},</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="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="adName != null and adName != ''">AD_NAME = #{adName},</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>
- <sql id="orgIdSql">
- <choose>
- <when test="orgId !=null and orgId !=''">
- and ORG_ID=#{orgId}
- </when>
- <otherwise>
- and ORG_ID is null
- </otherwise>
- </choose>
- </sql>
- <select id="getListByInspGroupIdObjType" resultType="cn.com.goldenwater.dcproj.dto.BisInspSdRgstrDto"
- parameterType="cn.com.goldenwater.dcproj.param.PagePersObjParam">
- select t.*,C.id groupId,C.PNM groupName,B.obj_id
- from att_sd_base t
- left join BIS_INSP_ALL_OBJ B
- on B.CODE = t.sd_code
- 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 -->
- <select id="findPcPage" parameterType="cn.com.goldenwater.dcproj.param.BisInspSdRgstrParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspSdRgstrDto">
- select * from (
- select A.*,b.id as rgstrId,CASE WHEN B.STATE IS NULL THEN '0' ELSE B.STATE END AS fscState,(case when b.SD_name is
- null then cast(c.SD_name as char) else b.SD_name end) as name,b.IN_TM,b.UP_TM,B.ad_code,
- c.sd_code as baseId,
- (case when b.CENTER_X is null then c.CENTER_X else b.CENTER_X end) as centerX,
- (case when b.CENTER_Y is null then c.CENTER_Y else b.CENTER_Y end) as centerY,
- (case when b.SD_LOC is null then c.SD_LOC else b.SD_LOC end) as location,ia.pnm groupName,ria.pnm
- riverName,ad.ad_full_name from BIS_INSP_ALL_OBJ A join BIS_INSP_SD_RGSTR B on A.Obj_Id =
- B.Obj_Id left join att_SD_base c on a.code = c.SD_CODE
- left join ATT_AD_X_BASE ad on b.ad_code = ad.ad_code LEFT JOIN BIS_INSP_ALL ia on A.ID = ia.id
- left join BIS_INSP_ALL ria on substr(A.ID,1,6) = ria.id
- where 1 = 1
- <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"/>
- <if test="adName != null and adName != ''">and ad.AD_FULL_NAME LIKE '%${adName}%'</if>
- <if test="groupId != null and groupId != ''">and A.id = #{groupId}</if>
- <if test="orgId != null and orgId !=''">and A.id like '${orgId}%'</if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND B.IN_TM >= STR_TO_DATE(#{sttm},'%Y-%m-%d') AND B.UP_TM < DATE_ADD(STR_TO_DATE(#{entm},'%Y-%m-%d'), INTERVAL 1 DAY)
- </if>
- and
- A.id in (${inIdsSql})
- ) where 1 = 1
- <if test="state != null and state != ''">
- and fscState in (${state})
- </if>
- <if test="sdName != null and sdName != ''">
- and name like '%${sdName}%'
- </if>
- <if test="adCode != null and adCode != ''">
- and ad_code like '${adCode}%'
- </if>
- </select>
- <select id="findSdPage" parameterType="cn.com.goldenwater.dcproj.param.TypeParam" resultType="cn.com.goldenwater.dcproj.dto.BisInspSdRgstrDto" >
- SELECT * FROM (
- select A.CODE,A.ID nodeId,
- A.NM,
- #{pType} PTYPE,
- B.sd_type sdType,
- B.center_X,
- B.center_y,
- B.GD_X,
- B.GD_y,
- A.OBJ_ID,B.ID ID,
- (case when b.sd_loc is null then c.sd_loc else b.sd_loc end) as location,
- (case when b.State is null then '0' else b.state end)STATE
- ,B.IN_TM
- from BIS_INSP_ALL_OBJ
- A LEFT JOIN BIS_INSP_SD_RGSTR B ON A.OBJ_ID=B.OBJ_ID
- LEFT JOIN ATT_SD_BASE C ON A.CODE=C.SD_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>
- 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>
- order by nodeId asc
- <if test="orderBy != null and orderBy != ''">
- ,CONVERT( nm USING gbk ) COLLATE gbk_chinese_ci ASC
- </if>
- </select>
- </mapper>
|