|
@@ -27,9 +27,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectTGdbhJctbFileVo">
|
|
|
- select id, name, uploaduser, uploadtime, filepath, shppath, proxypath, unzippath, filetype, xzqdm, spotsnumber, spotsarea,
|
|
|
- spotssize,readstatus,readmessage ,public.st_asewkt(envelopegeom) envelopegeom,filetime,
|
|
|
- public.st_asewkt(public.st_centroid(envelopegeom)) centroidgeom
|
|
|
+ select id, name,uploaduser,uploadtime,filepath,shppath,unzippath,filetype,spotsnumber,
|
|
|
+ spotsarea,fromroute,fromtype,xzqdm,readstatus,readmessage,public.st_asewkt(geom) geom
|
|
|
from t_gdbh_jctb_file
|
|
|
</sql>
|
|
|
|
|
@@ -37,23 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select t0.*,t1.dept_name as xzqmc from (
|
|
|
<include refid="selectTGdbhJctbFileVo"/>
|
|
|
<where>
|
|
|
- <if test="id != null and id != ''"> and id = #{id}</if>
|
|
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
|
|
- <if test="uploaduser != null and uploaduser != ''"> and uploaduser = #{uploaduser}</if>
|
|
|
- <if test="uploadtime != null "> and uploadtime = #{uploadtime}</if>
|
|
|
- <if test="filepath != null and filepath != ''"> and filepath = #{filepath}</if>
|
|
|
- <if test="shppath != null and shppath != ''"> and shppath = #{shppath}</if>
|
|
|
- <if test="proxypath != null and proxypath != ''"> and proxypath = #{proxypath}</if>
|
|
|
- <if test="unzippath != null and unzippath != ''"> and unzippath = #{unzippath}</if>
|
|
|
- <if test="filetype != null and filetype != ''"> and filetype = #{filetype}</if>
|
|
|
- <if test="xzqdm != null and xzqdm!=0 "> and xzqdm like concat(#{xzqdm}, '%')</if>
|
|
|
- <if test="spotsnumber != null "> and spotsnumber = #{spotsnumber}</if>
|
|
|
- <if test="spotsarea != null "> and spotsarea = #{spotsarea}</if>
|
|
|
- <if test="spotssize != null "> and spotssize = #{spotssize}</if>
|
|
|
- <if test="readstatus != null"> and readstatus = #{readstatus}</if>
|
|
|
- <if test="filetime != null"> and filetime = #{filetime}</if>
|
|
|
- <if test="beginTime != null"> and filetime >= #{beginTime}</if>
|
|
|
- <if test="endTime != null"> and filetime <= #{endTime}</if>
|
|
|
</where>
|
|
|
order by uploadtime desc
|
|
|
)t0 left join sys_dept t1 on t1.district = t0.xzqdm
|