| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413 |
- <?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.AttWuntBaseDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.AttWuntBase" id="attWuntBaseResultMap">
- <result property="id" column="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="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="persId" column="PERS_ID"/>
- <result property="inTm" column="IN_TM"/>
- <result property="upTm" column="UP_TM"/>
- </resultMap>
-
- <sql id="table_columns">
- 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,
- WU_UT_ATTN,
- 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,
- PERS_ID,
- IN_TM,
- UP_TM
- </sql>
- <sql id="entity_properties">
- #{id},
- #{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},
- #{wuUtAttn},
- #{wuUtCont},
- #{utPersNum},
- #{workNum},
- #{workNotNum},
- #{totArea},
- #{buldArea},
- #{schCla},
- #{uniCla},
- #{teachNum},
- #{teachLvNum},
- #{stuNum},
- #{stuLvNum},
- #{isLchCwsm},
- #{persId},
- #{inTm},
- #{upTm}
- </sql>
- <!-- 使用like用法:columnName like concat('%',#columnName#,'%') -->
- <sql id="page_where">
- <trim prefix="where" prefixOverrides="and | or ">
- <if test="utName != null and utName != ''">and UT_NAME like '%${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 like '${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="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="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="inTm != null">and IN_TM = #{inTm}</if>
- <if test="upTm != null">and UP_TM = #{upTm}</if>
- </trim>
- </sql>
- <select id="get" resultMap="attWuntBaseResultMap" parameterType="String" >
- select <include refid="table_columns" /> from ATT_WUNT_BASE where ID = #{id}
- </select>
- <select id="getBy" resultMap="attWuntBaseResultMap">
- select <include refid="table_columns" /> from ATT_WUNT_BASE <include refid="page_where" />
- </select>
- <select id="findAll" resultMap="attWuntBaseResultMap">
- select <include refid="table_columns" /> from ATT_WUNT_BASE
- </select>
- <select id="findList" resultMap="attWuntBaseResultMap">
- select <include refid="table_columns" /> from ATT_WUNT_BASE <include refid="page_where" />
- </select>
- <select id="selectCount" resultType="int" >
- select count(ID) from ATT_WUNT_BASE <include refid="page_where" />
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.AttWuntBase">
- insert into ATT_WUNT_BASE( <include refid="table_columns" /> )
- values ( <include refid="entity_properties" /> )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from ATT_WUNT_BASE where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.AttWuntBase">
- delete from ATT_WUNT_BASE <include refid="page_where" />
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update ATT_WUNT_BASE set flag_valid = 0 where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.AttWuntBase">
- update ATT_WUNT_BASE
- <trim prefix="set" suffixOverrides=",">
- <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="wuUtAttn != null and wuUtAttn != ''">WU_UT_ATTN = #{wuUtAttn},</if>
- <if test="wuUtCont != null and wuUtCont != ''">WU_UT_CONT = #{wuUtCont},</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="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <update id="updateBy" parameterType="cn.com.goldenwater.dcproj.model.AttWuntBase">
- update ATT_WUNT_BASE
- <trim prefix="set" suffixOverrides=",">
- <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="wuUtAttn != null and wuUtAttn != ''">WU_UT_ATTN = #{wuUtAttn},</if>
- <if test="wuUtCont != null and wuUtCont != ''">WU_UT_CONT = #{wuUtCont},</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="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="inTm != null">IN_TM = #{inTm},</if>
- <if test="upTm != null">UP_TM = #{upTm},</if>
- </trim>
- <include refid="page_where" />
- </update>
- <!-- 其他自定义SQL -->
- <select id="getObjByPersId" resultType="cn.com.goldenwater.dcproj.model.AttWuntBase" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam">
- SELECT A.* ,B.OBJ_ID,B.ID groupId,C.ID rgstrId FROM ATT_WUNT_BASE A LEFT JOIN BIS_INSP_ALL_OBJ B ON A.id = B.CODE
- LEFT JOIN BIS_INSP_SVWT_WUNT_RGSTR C ON B.OBJ_ID = C.OBJ_ID
- WHERE B.PTYPE = #{objType} AND
- B.id in (${inIdsSql})
- <choose>
- <when test="province !=null and province !=''">
- and B.AD_CODE =#{province}
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- <if test="adName != null and adName != ''">and A.NAME LIKE '%${adName}%'</if>
- <if test="adCode != null and adCode != ''">and A.AD_CODE LIKE '${adCode}%'</if>
- </select>
- <select id="getObjListNotInspGroupId" resultType="cn.com.goldenwater.dcproj.model.AttWuntBase" parameterType="String">
- select t.*
- from ATT_WUNT_BASE t
- where t.id not in (
- select CODE from BIS_INSP_ALL_OBJ B where id like concat(#{inspGroupId},'%') and B.obj_type=#{objType}
- <choose>
- <when test="province !=null and province !=''">
- and B.AD_CODE =#{province}
- </when>
- <otherwise>
- and B.AD_CODE is null
- </otherwise>
- </choose>
- )
- <if test="adName != null and adName != ''">and t.nm LIKE '%${adName}%'</if>
- <if test="adCode != null and adCode != ''">and t.AD_CODE LIKE '${adCode}%'</if>
- </select>
- </mapper>
|