| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505 |
- <?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.BisNewVillRgstrDao">
- <resultMap type="cn.com.goldenwater.dcproj.model.BisNewVillRgstr" id="bisNewVillRgstrResultMap">
- <result property="id" column="ID"/>
- <result property="objId" column="OBJ_ID"/>
- <result property="regsNm" column="REGS_NM"/>
- <result property="waterPriceIsMade" column="WATER_PRICE_IS_MADE"/>
- <result property="waterSafeOrPay" column="WATER_SAFE_OR_PAY"/>
- <result property="adCode" column="AD_CODE"/>
- <result property="persId" column="PERS_ID"/>
- <result property="intm" column="INTM"/>
- <result property="uptm" column="UPTM"/>
- <result property="note" column="NOTE"/>
- <result property="dataStat" column="DATA_STAT"/>
- <result property="state" column="STATE"/>
- <result property="adFullName" column="AD_FULL_NAME"/>
- <result property="isPkx" column="IS_PKX"/>
- <result property="isFoOver" column="IS_FO_OVER"/>
- <result property="lgtd" column="LGTD"/>
- <result property="lttd" column="LTTD"/>
- <result property="lgtdpc" column="LGTDPC"/>
- <result property="lttdpc" column="LTTDPC"/>
- <result property="villNum" column="VILL_NUM"/>
- <result property="proNum" column="PRO_NUM"/>
- <result property="waterNum" column="WATER_NUM"/>
- </resultMap>
- <sql id="table_columns">
- ID,VILL_NUM,PRO_NUM,WATER_NUM,
- LGTD ,
- LTTD ,
- LGTDPC ,
- LTTDPC ,
- OBJ_ID,
- REGS_NM,
- WATER_PRICE_IS_MADE,
- WATER_SAFE_OR_PAY,
- AD_CODE,
- PERS_ID,
- INTM,
- UPTM,
- NOTE,
- DATA_STAT,
- STATE,
- AD_FULL_NAME,
- IS_PKX,
- IS_FO_OVER
- </sql>
- <sql id="entity_properties">
- #{id},#{villNum},#{proNum},#{waterNum},
- #{lgtd},
- #{lttd},
- #{lgtdpc},
- #{lttdpc},
- #{objId},
- #{regsNm},
- #{waterPriceIsMade},
- #{waterSafeOrPay},
- #{adCode},
- #{persId},
- #{intm},
- #{uptm},
- #{note},
- #{dataStat},
- #{state},
- #{adFullName},
- #{isPkx},
- #{isFoOver}
- </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>
- <if test="waterNum != null and waterNum != ''">and WATER_NUM = #{waterNum}</if>
- <if test="proNum != null and proNum != ''">and PRO_NUM = #{proNum}</if>
- <if test="villNum != null and villNum != ''">and VILL_NUM = #{villNum}</if>
- <if test="regsNm != null and regsNm != ''">and REGS_NM = #{regsNm}</if>
- <if test="waterPriceIsMade != null and waterPriceIsMade != ''">and WATER_PRICE_IS_MADE =
- #{waterPriceIsMade}
- </if>
- <if test="waterSafeOrPay != null and waterSafeOrPay != ''">and WATER_SAFE_OR_PAY = #{waterSafeOrPay}</if>
- <if test="adCode != null and adCode != ''">and AD_CODE = #{adCode}</if>
- <if test="persId != null and persId != ''">and PERS_ID = #{persId}</if>
- <if test="intm != null">and INTM = #{intm}</if>
- <if test="uptm != null">and UPTM = #{uptm}</if>
- <if test="note != null and note != ''">and NOTE = #{note}</if>
- <if test="dataStat != null and dataStat != ''">and DATA_STAT = #{dataStat}</if>
- <if test="state != null and state != ''">and STATE = #{state}</if>
- <if test="adFullName != null and adFullName != ''">and AD_FULL_NAME = #{adFullName}</if>
- <if test="isPkx != null and isPkx != ''">and IS_PKX = #{isPkx}</if>
- <if test="isFoOver != null and isFoOver != ''">and IS_FO_OVER = #{isFoOver}</if>
- </trim>
- </sql>
- <select id="get" resultMap="bisNewVillRgstrResultMap" parameterType="String">
- select
- <include refid="table_columns"/>
- from BIS_NEW_VILL_RGSTR where ID = #{id}
- </select>
- <select id="getBy" resultMap="bisNewVillRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_NEW_VILL_RGSTR
- <include refid="page_where"/>
- </select>
- <select id="findAll" resultMap="bisNewVillRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_NEW_VILL_RGSTR
- </select>
- <select id="findList" resultMap="bisNewVillRgstrResultMap">
- select
- <include refid="table_columns"/>
- from BIS_NEW_VILL_RGSTR
- <include refid="page_where"/>
- </select>
- <select id="selectCount" resultType="int">
- select count(ID) from BIS_NEW_VILL_RGSTR
- <include refid="page_where"/>
- </select>
- <insert id="insert" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- insert into BIS_NEW_VILL_RGSTR(
- <include refid="table_columns"/>
- )
- values (
- <include refid="entity_properties"/>
- )
- </insert>
- <delete id="delete" parameterType="java.lang.String">
- delete from BIS_NEW_VILL_RGSTR where ID = #{id}
- </delete>
- <delete id="deleteBy" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- delete from BIS_NEW_VILL_RGSTR
- <include refid="page_where"/>
- </delete>
- <update id="deleteInFlag" parameterType="java.lang.String">
- update BIS_NEW_VILL_RGSTR set flag_valid = 0 where ID = #{id}
- </update>
- <update id="updateVillSum" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- update BIS_NEW_VILL_RGSTR set VILL_NUM = #{villNum} where ID = #{id}
- </update>
- <update id="updateProSum" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- update BIS_NEW_VILL_RGSTR set PRO_NUM = #{proNum} where ID = #{id}
- </update>
- <update id="updateWaterSum" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- update BIS_NEW_VILL_RGSTR set WATER_NUM = #{waterNum} where ID = #{id}
- </update>
- <update id="updateAllNum" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- update BIS_NEW_VILL_RGSTR set WATER_NUM = #{waterNum},PRO_NUM = #{proNum},VILL_NUM = #{villNum} where ID = #{id}
- </update>
- <update id="update" parameterType="cn.com.goldenwater.dcproj.model.BisNewVillRgstr">
- update BIS_NEW_VILL_RGSTR
- <trim prefix="set" suffixOverrides=",">
- <if test="lgtd != null and lgtd != ''">LGTD = #{lgtd},</if>
- <if test="lttd != null and lttd != ''">LTTD = #{lttd},</if>
- <if test="lgtdpc != null and lgtdpc != ''">LGTDPC = #{lgtdpc},</if>
- <if test="lttdpc != null and lttdpc != ''">LTTDPC = #{lttdpc},</if>
- <if test="objId != null and objId != ''">OBJ_ID = #{objId},</if>
- <if test="regsNm != null and regsNm != ''">REGS_NM = #{regsNm},</if>
- <if test="waterPriceIsMade != null and waterPriceIsMade != ''">WATER_PRICE_IS_MADE = #{waterPriceIsMade},
- </if>
- <if test="waterSafeOrPay != null and waterSafeOrPay != ''">WATER_SAFE_OR_PAY = #{waterSafeOrPay},</if>
- <if test="adCode != null and adCode != ''">AD_CODE = #{adCode},</if>
- <if test="persId != null and persId != ''">PERS_ID = #{persId},</if>
- <if test="intm != null">INTM = #{intm},</if>
- <if test="uptm != null">UPTM = #{uptm},</if>
- <if test="note != null and note != ''">NOTE = #{note},</if>
- <if test="dataStat != null and dataStat != ''">DATA_STAT = #{dataStat},</if>
- <if test="state != null and state != ''">STATE = #{state},</if>
- <if test="adFullName != null and adFullName != ''">AD_FULL_NAME = #{adFullName},</if>
- <if test="isPkx != null and isPkx != ''">IS_PKX = #{isPkx},</if>
- <if test="isFoOver != null and isFoOver != ''">IS_FO_OVER = #{isFoOver},</if>
- </trim>
- <where>ID = #{id}</where>
- </update>
- <select id="pageNotAddRegstr" resultType="cn.com.goldenwater.dcproj.dto.AttCountryDto"
- parameterType="cn.com.goldenwater.dcproj.param.CommonParam">
- select e.ad_code,e.ad_name,(case when e.is_poveryt is null then '0' else e.is_poveryt end)
- is_poveryt,e.lgtd,e.lttd,
- (case when o.obj_id is null then '0' else '1' end) status,o.obj_id,o.id from att_ad_x_base e
- left join bis_insp_all_obj o on e.ad_code=o.code
- where o.ptype=#{objType}
- <if test="objId !=null and objId !=''">
- and o.obj_id=#{objId}
- </if>
- <if test="name !=null and name !=''">
- and e.ad_name like '%${name}%'
- </if>
- <if test="adCode !=null and adCode !=''">
- and e.ad_code like '%${adCode}%'
- </if>
- <if test="isPoveryt !=null and isPoveryt !=''">
- and e.is_poveryt =#{isPoveryt}
- </if>
- <if test="orderBy !=null and orderBy !=''">
- order by ${orderBy}
- </if>
- </select>
- <select id="findNewVillPageByType" parameterType="cn.com.goldenwater.dcproj.param.TypeParam"
- resultType="cn.com.goldenwater.dcproj.dto.BisNewVillRgstrDto">
- select * from (select A.*,CASE WHEN b.state IS NULL THEN '0' ELSE b.state END AS wtdstState,B.Id as
- regstr_id,B.Id as rgstr_id,B.INTM,(
- case WHEN B.is_pkx is null THEN '0' else B.is_pkx END ) as is_pkx,
- B.Water_Price_Is_Made,B.WATER_SAFE_OR_PAY,B.vill_num,B.pro_num,B.water_num
- FROM BIS_INSP_ALL_OBJ A
- LEFT JOIN BIS_NEW_VILL_RGSTR B
- ON A.OBJ_ID = B.OBJ_ID
- where A.ptype=#{pType} 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 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 length(id)=12 )
- )
- )
- ) a
- where 1=1
- <if test="adCode !=null and adCode !=''">
- and a.code like '${adCode}%'
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND INTM >= TO_DATE(#{sttm},'YYYY-MM-DD') AND INTM < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="plnaId !=null and plnaId !=''">
- and a.id like '${plnaId}%'
- </if>
- <if test="groupId !=null and groupId !=''">
- and a.id like '${groupId}%'
- </if>
- <if test="state !=null and state !=''">
- and wtdstState in (${state})
- </if>
- <if test="rsName !=null and rsName !=''">
- and a.nm like '%${rsName}%'
- </if>
- order by wtdstState asc
- <if test="orderBy != null and orderBy != ''">
- ,${orderBy}
- </if>
- </select>
- <!-- 其他自定义SQL -->
- <select id="sumNewVillNumAdd" resultType="cn.com.goldenwater.dcproj.dto.SumNewVillNumDto" parameterType="String">
- select sum(vill_num) as vill_num,sum(pro_num) as pro_num,sum(water_num) as water_num from (
- SELECT COUNT(B.ad_code) vill_num,0 as pro_num,0 as water_num
- FROM bis_new_dcuser_rel_vill B
- where B.regstr_id =#{regstrId}
- UNION all
- SELECT 0 as vill_num,count(B.id) pro_num,0 as water_num
- FROM BIS_NEW_COUNTRY_FEE B
- where B.REGSTR_ID=#{regstrId}
- UNION all
- SELECT
- 0 as vill_num,0 as pro_num,COUNT(B.id) as water_num
- FROM BIS_NEW_WATERUSER_INFO B
- where B.REGSTR_ID=#{regstrId}
- ) w
- </select>
- <select id="sumNewVillNum" resultType="cn.com.goldenwater.dcproj.dto.SumNewVillNumDto" parameterType="String">
- select sum(vill_num) as vill_num,sum(pro_num) as pro_num,sum(water_num) as water_num from (
- SELECT COUNT(B.ad_code) vill_num,0 as pro_num,0 as water_num
- FROM att_ad_x_base B
- where B.ad_code like '${code}%' and substr(ad_code,10) !='000'
- ) w
- </select>
- <select id="findPageList" resultType="cn.com.goldenwater.dcproj.model.BisInspPblm"
- parameterType="cn.com.goldenwater.dcproj.param.PlbmParam">
- select w.* from (
- select j.id as oid,j.obj_id,m.pblm_id,m.obj_type,m.insp_pblm_name,m.state,m.data_stat
- ,m.insp_pblm_desc,m.pblm_long,m.pblm_lat,s.check_point,s.PBLM_DESC,
- m.new_vill_name,j.nm,m.vill_type,m.has_vedio,m.quote,m.rec_pers,
- m.regid,j.code as ad_code,ba.ad_full_name,s.sn_num,p.pers_name,al.sttm,al.entm,
- m.insp_add_desc,m.coll_time,(select l.pnm from bis_insp_all l where l.id=substr(al.id,0,6)) as pnm,
- (select org_nm from bis_insp_org where org_id=substr(al.id,4,3)) as org_nm
- from (select *
- from BIS_INSP_ALL_OBJ j
- <choose>
- <when test="objType != null and objType != '' ">
- where j.pType= #{objType}
- </when>
- <otherwise>
- where j.pType='25'
- </otherwise>
- </choose>
- ) j
- join BIS_INSP_PBLM m on m.obj_id=j.obj_id
- join obj_insp_pblms s on m.pblms_type_id=s.guid
- left join bis_insp_all al on al.id=j.id
- left join bis_insp_all_rlation_pers p on m.rec_pers=p.guid
- left join att_ad_x_base ba on j.code=ba.ad_code
- ) w
- where 1=1
- <if test="tabType =='2'.toString()">
- and w.entm <to_date(#{nowTime},'yyyy-MM-dd')+1
- </if>
- <if test="tabType =='1'.toString()">
- and w.entm >=to_date(#{nowTime},'yyyy-MM-dd') and w.sttm < to_date(#{nowTime},'yyyy-MM-dd')+1
- </if>
- <if test="timeType =='1'.toString()">
- and w.COLL_TIME >=to_date(#{nowTime},'yyyy-MM-dd')
- </if>
- <if test="timeType =='2'.toString()">
- and w.COLL_TIME >=to_date(#{nowMonth},'yyyy-MM')
- </if>
- <if test="timeType =='3'.toString()">
- and w.COLL_TIME >=to_date(#{nowYear},'yyyy')
- </if>
- AND W.OID 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 length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- 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 length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- <if test="villType !=null and villType !=''">
- and w.vill_type in (${villType})
- </if>
- <if test="state != null and state != ''">and w.state = #{state}</if>
- <if test="codes != null and codes != ''">and w.code in (${codes})</if>
- <if test="orgIds != null and orgIds != ''">and w.oid in (${orgIds})</if>
- <if test="objIdes != null and objIdes != ''">and OBJ_ID in (${objIdes})</if>
- <if test="inspPblmName !=null and inspPblmName !=''">
- and w.insp_pblm_name like '${inspPblmName}%'
- </if>
- <if test="startTime != null and startTime != ''">and COLL_TIME >= TO_DATE(#{startTime},'YYYY-MM-DD')</if>
- <if test="findTime != null and findTime != ''">and COLL_TIME=TO_DATE(#{findTime},'YYYY-MM-DD')</if>
- <if test="endTime != null and endTime != ''">and COLL_TIME < TO_DATE(#{endTime},'YYYY-MM-DD')+1</if>
- <if test="oides != null and oides != ''">and oid in (${oides})</if>
- <if test="regid !=null and regid !=''">
- and w.regid=#{regid}
- </if>
- <if test="recPers !=null and recPers !=''">
- and w.rec_Pers=#{recPers}
- </if>
- <if test="objId !=null and objId !=''">
- and w.obj_id=#{objId}
- </if>
- <if test="groupId !=null and groupId !=''">
- and oid like '${groupId}%'
- </if>
- <if test="adFullName !=null and adFullName !=''">
- and w.AD_FULL_NAMe like '%${adFullName}%'
- </if>
- <if test="persName !=null and persName !=''">
- and w.PERS_NAME like '%${persName}%'
- </if>
- <if test="nm !=null and nm !=''">
- and w.NM like '%${nm}%'
- </if>
- <if test="orgNm !=null and orgNm !=''">
- and w.ORG_NM like '%${orgNm}%'
- </if>
- <if test="hasVedio !=null and hasVedio !=''">
- and w.HAS_VEDIO=#{hasVedio}
- </if>
- <if test="adCode !=null and adCode !=''">
- and w.AD_CODE like '${adCode}%'
- </if>
- order by w.AD_CODE
- <if test="orderBy !=null and orderBy !=''">
- ,${orderBy}
- </if>
- </select>
- <select id="findPageByType" resultType="cn.com.goldenwater.dcproj.dto.BisNewVillRgstrDto"
- parameterType="cn.com.goldenwater.dcproj.param.TypeParam">
- select * from (select A.id,A.Nm,A.Code,A.Obj_Id,A.Lgtd,A.Lttd,A.Lgtdpc,A.Lttdpc,
- A.pType,CASE WHEN b.state IS NULL THEN '0' ELSE b.state
- END AS wtdstState,B.Id as regstr_Id,ad.ad_full_name,al.pnm as groupName,b.intm as c_time
- ,to_char(b.intm,'yyyy-MM-dd HH24:mi:ss') as intm,
- to_char(b.uptm,'yyyy-MM-dd HH24:mi:ss') as uptm,B.Water_Price_Is_Made,B.WATER_SAFE_OR_PAY
- FROM BIS_INSP_ALL_OBJ A
- LEFT JOIN BIS_New_VILL_RGSTR B
- ON A.OBJ_ID = B.OBJ_ID
- left join ATT_AD_X_BASE ad on b.ad_code = ad.ad_code
- left join BIS_INSP_ALL al
- on A.id=al.id
- where
- 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 length(id) in (3,6,9)
- <include refid="choseSql"/>
- )
- 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 length(id)=12
- <include refid="choseSql"/>
- )
- )
- )
- <if test="tabType =='2'.toString()">
- and al.entm <to_date(#{nowTime},'yyyy-MM-dd')+1
- </if>
- <if test="tabType =='1'.toString()">
- and al.entm >=to_date(#{nowTime},'yyyy-MM-dd')
- </if>
- ) a
- where ptype=#{pType}
- <if test="plnaId !=null and plnaId !=''">
- and a.id like '${plnaId}%'
- </if>
- <if test="state !=null and state !=''">
- and wtdstState in (${state})
- </if>
- <if test="sttm != null and sttm != '' and entm != null and entm != ''">
- AND c_time >= TO_DATE(#{sttm},'YYYY-MM-DD') AND c_time < TO_DATE(#{entm},'YYYY-MM-DD')+1
- </if>
- <if test="groupId !=null and groupId !=''">
- and a.id like '${groupId}%'
- </if>
- <if test="name !=null and name !=''">
- and a.nm like '%${name}%'
- </if>
- <if test="nm !=null and nm !=''">
- and a.nm like '%${nm}%'
- </if>
- <if test="adName !=null and adName !=''">
- and a.ad_full_name like '%${adName}%'
- </if>
- <if test="rsName !=null and rsName !=''">
- and a.nm like '%${rsName}%'
- </if>
- order by wtdstState asc
- <if test="orderBy != null and orderBy != ''">
- <!--,${orderBy}-->
- ,nlssort(nm,'NLS_SORT=SCHINESE_PINYIN_M')
- </if>
- </select>
- <sql id="choseSql">
- <choose>
- <when test="province !=null and province !=''">
- AND ad_code=#{province}
- </when>
- <otherwise>
- AND ad_code is null
- </otherwise>
- </choose>
- </sql>
- <select id="getVill20ByPersId" parameterType="cn.com.goldenwater.dcproj.param.PersObjParam"
- resultType="cn.com.goldenwater.dcproj.dto.BisNewWateruserInfoDto">
- SELECT A.*,ad.LGTD lgtdPc,ad.LTTD lttdPc,ad.AD_LONG centerXGd,ad.AD_LAT centerYGd,B.Obj_Id
- FROM BIS_NEW_WATERUSER_INFO A LEFT JOIN BIS_NEW_VILL_RGSTR B ON A.REGSTR_ID = B.ID
- LEFT JOIN BIS_INSP_ALL_OBJ C ON B.OBJ_ID = C.OBJ_ID
- LEFT JOIN ATT_AD_X_BASE ad on A.AD_CODE = ad.AD_CODE
- WHERE C.PTYPE = #{objType}
- AND
- <if test="adName != null and adName != ''">and A.VILLAGE_NM LIKE '%${adName}%'</if>
- <if test="adCode != null and adCode != ''">and A.AD_CODE LIKE '${adCode}%'</if>
- <if test="maxLgtd != null and maxLgtd != '' and minLgtd != null and minLgtd != ''">and ad.LGTD BETWEEN
- #{minLgtd} AND #{maxLgtd}
- </if>
- <if test="maxLttd != null and maxLttd != '' and minLttd != null and minLttd != ''">and ad.LTTD BETWEEN
- #{minLttd} AND #{maxLttd}
- </if>
- <if test="maxcenterXGd != null and maxcenterXGd != '' and mincenterXGd != null and mincenterXGd != ''">and
- ad.AD_LONG BETWEEN #{mincenterXGd} AND #{maxcenterXGd}
- </if>
- <if test="maxcenterYGd != null and maxcenterYGd != '' and mincenterYGd != null and mincenterYGd != ''">and
- ad.AD_LAT BETWEEN #{mincenterYGd} AND #{maxcenterYGd}
- </if>
- </select>
- </mapper>
|