فهرست منبع

裂解炉炉管测压 - APP H130附件查询相应代码修改

wangggziwen 1 سال پیش
والد
کامیت
3bad3d46db

+ 10 - 0
master/src/main/java/com/ruoyi/project/common/controller/TCommonfileController.java

@@ -77,6 +77,16 @@ public class TCommonfileController extends BaseController
         return getDataTable(list);
     }
 
+    /**
+     * 查询通用附件列表(pType模糊查询)
+     */
+    @GetMapping("/allFileListFuzzy")
+    public List<TCommonfile> allFileListFuzzy(TCommonfile tCommonfile)
+    {
+        List<TCommonfile> list = tCommonfileService.selectAllFileListFuzzy(tCommonfile);
+        return list;
+    }
+
     /**
      * 查询通用附件列表
      */

+ 2 - 0
master/src/main/java/com/ruoyi/project/common/mapper/TCommonfileMapper.java

@@ -62,4 +62,6 @@ public interface TCommonfileMapper
     public int deleteTCommonfileByIds(Long[] ids);
 
     List<TCommonfile> selectAllFileList(TCommonfile tCommonfile);
+
+    List<TCommonfile> selectAllFileListFuzzy(TCommonfile tCommonfile);
 }

+ 2 - 0
master/src/main/java/com/ruoyi/project/common/service/ITCommonfileService.java

@@ -60,4 +60,6 @@ public interface ITCommonfileService
     public int deleteTCommonfileById(Long id);
 
     List<TCommonfile> selectAllFileList(TCommonfile tCommonfile);
+    
+    List<TCommonfile> selectAllFileListFuzzy(TCommonfile tCommonfile);
 }

+ 5 - 0
master/src/main/java/com/ruoyi/project/common/service/impl/TCommonfileServiceImpl.java

@@ -95,4 +95,9 @@ public class TCommonfileServiceImpl implements ITCommonfileService
     public List<TCommonfile> selectAllFileList(TCommonfile tCommonfile) {
         return tCommonfileMapper.selectAllFileList(tCommonfile);
     }
+
+    @Override
+    public List<TCommonfile> selectAllFileListFuzzy(TCommonfile tCommonfile) {
+        return tCommonfileMapper.selectAllFileListFuzzy(tCommonfile);
+    }
 }

+ 13 - 0
master/src/main/resources/mybatis/common/TCommonfileMapper.xml

@@ -65,6 +65,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         order by p_date desc , d.createdate desc
     </select>
 
+    <select id="selectAllFileListFuzzy" parameterType="TCommonfile" resultMap="TCommonfileResult">
+        select d.file_size , d.p_value, d.p_date ,u.nick_name, d.id, d.p_id, d.file_name, d.file_url, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.remarks, d.p_type from t_commonfile d
+        LEFT JOIN SYS_USER u on d.CREATER_CODE = u.USER_ID
+        <where>
+            <if test="pId != null "> and p_id = #{pId}</if>
+            <if test="pType != null "> and p_type like concat(concat('%', #{pType}), '%')</if>
+            <if test="pValue != null  and pValue != ''"> and p_value = #{pValue}</if>
+            <if test="pDate != null "> and p_date = #{pDate}</if>
+            and d.del_flag = 0
+        </where>
+        order by p_date desc , d.createdate desc
+    </select>
+
     <insert id="insertTCommonfile" parameterType="TCommonfile">
         <selectKey keyProperty="id" resultType="long" order="BEFORE">
             SELECT seq_t_commonfile.NEXTVAL as id FROM DUAL

+ 9 - 0
ui/src/api/common/commonfile.js

@@ -18,6 +18,15 @@ export function allFileList(query) {
   })
 }
 
+// 查询不分页通用附件列表(pType模糊查询)
+export function allFileListFuzzy(query) {
+  return request({
+    url: '/common/commonfile/allFileListFuzzy',
+    method: 'get',
+    params: query
+  })
+}
+
 // 查询通用附件详细
 export function getCommonfile(id) {
   return request({

+ 5 - 5
ui/src/views/production/pressure/h130.vue

@@ -641,7 +641,7 @@
   import Treeselect from "@riophae/vue-treeselect";
   import "@riophae/vue-treeselect/dist/vue-treeselect.css";
   import { listUserNoPage, getUserId } from "@/api/system/user";
-  import {addCommonfile, allFileList, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
+  import {addCommonfile, allFileListFuzzy, delCommonfile, updateCommonfile} from "@/api/common/commonfile";
 
   export default {
     name: "Pressure",
@@ -810,7 +810,7 @@
         this.getFileList4();
       },
       getFileList1() {
-        allFileList({
+        allFileListFuzzy({
           "pId": this.doc.queryParams.pId,
           "pType": "furnancePressurePass1"
         }).then(response => {
@@ -818,7 +818,7 @@
         });
       },
       getFileList2() {
-        allFileList({
+        allFileListFuzzy({
           "pId": this.doc.queryParams.pId,
           "pType": "furnancePressurePass2"
         }).then(response => {
@@ -826,7 +826,7 @@
         });
       },
       getFileList3() {
-        allFileList({
+        allFileListFuzzy({
           "pId": this.doc.queryParams.pId,
           "pType": "furnancePressurePass3"
         }).then(response => {
@@ -834,7 +834,7 @@
         });
       },
       getFileList4() {
-        allFileList({
+        allFileListFuzzy({
           "pId": this.doc.queryParams.pId,
           "pType": "furnancePressurePass4"
         }).then(response => {