Kaynağa Gözat

添加查询列表接口

DESKTOP-2K9OVK9\siwei 4 ay önce
ebeveyn
işleme
26acfd2659

+ 41 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/controller/gdbh/TGdbhJctbFileController.java

@@ -0,0 +1,41 @@
+package com.onemap.apply.controller.gdbh;
+
+import com.onemap.apply.domain.gdbh.TGdbhJctb;
+import com.onemap.apply.domain.gdbh.TGdbhJctbFileDTO;
+import com.onemap.apply.service.gdbh.ITGdbhJctbFileService;
+import com.onemap.apply.service.gdbh.ITGdbhJctbService;
+import com.onemap.common.core.utils.poi.ExcelUtil;
+import com.onemap.common.core.web.controller.BaseController;
+import com.onemap.common.core.web.domain.AjaxResult;
+import com.onemap.common.core.web.page.TableDataInfo;
+import com.onemap.common.log.annotation.Log;
+import com.onemap.common.log.enums.BusinessType;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * 耕地保护-检测图标数据文件详情表Controller
+ *
+ * @author ruoyi
+ * @date 2024-11-26
+ */
+@RestController
+@RequestMapping("/gdbh/jctb/file")
+public class TGdbhJctbFileController extends BaseController {
+    @Autowired
+    private ITGdbhJctbFileService tGdbhJctbFileService;
+
+    /**
+     * 查询耕地保护-检测图标数据详情表列表
+     */
+    @GetMapping("/list")
+    public TableDataInfo list(TGdbhJctbFileDTO tGdbhJctbFileDTO) {
+        startPage();
+        List<TGdbhJctbFileDTO> list = tGdbhJctbFileService.selectTGdbhJctbFileList(tGdbhJctbFileDTO);
+        return getDataTable(list);
+    }
+}

+ 20 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/gdbh/ITGdbhJctbFileService.java

@@ -0,0 +1,20 @@
+package com.onemap.apply.service.gdbh;
+
+import com.onemap.apply.domain.gdbh.TGdbhJctb;
+import com.onemap.apply.domain.gdbh.TGdbhJctbFileDTO;
+
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * 耕地保护-检测图标数据详情表Service接口
+ *
+ * @author ruoyi
+ * @date 2024-11-26
+ */
+public interface ITGdbhJctbFileService {
+
+    public List<TGdbhJctbFileDTO> selectTGdbhJctbFileList(TGdbhJctbFileDTO tGdbhJctbFileDTO);
+
+}

+ 27 - 0
onemap-modules/onemap-apply/src/main/java/com/onemap/apply/service/gdbh/impl/TGdbhJctbFileServiceImpl.java

@@ -0,0 +1,27 @@
+package com.onemap.apply.service.gdbh.impl;
+
+import com.onemap.apply.domain.gdbh.TGdbhJctbFileDTO;
+import com.onemap.apply.mapper.gdbh.TGdbhJctbFileMapper;
+import com.onemap.apply.service.gdbh.ITGdbhJctbFileService;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * 耕地保护-检测图斑文件详情表Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2024-11-26
+ */
+@Service
+public class TGdbhJctbFileServiceImpl implements ITGdbhJctbFileService {
+    @Resource
+    private TGdbhJctbFileMapper gdbhJctbFileMapper;
+
+    @Override
+    public List<TGdbhJctbFileDTO> selectTGdbhJctbFileList(TGdbhJctbFileDTO tGdbhJctbFileDTO) {
+        return gdbhJctbFileMapper.selectTGdbhJctbFileList(tGdbhJctbFileDTO);
+    }
+
+}

+ 2 - 19
onemap-modules/onemap-apply/src/main/resources/mapper/postgresql/gdbh/TGdbhJctbFileMapper.xml

@@ -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 &gt;= #{beginTime}</if>
-            <if test="endTime != null"> and filetime &lt;= #{endTime}</if>
         </where>
         order by uploadtime desc
         )t0 left join sys_dept t1 on t1.district = t0.xzqdm