From 5b207a55bdd10f1516031f629217daac069b64fd Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期五, 30 八月 2024 11:40:31 +0800
Subject: [PATCH] 添加免登录查询所有排班接口;

---
 pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/config/WebFilterConfiguration.java |   10 +++++++++-
 pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java         |   10 ++++++++++
 pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml                      |    2 +-
 3 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
index 45d60ae..ff0cff8 100644
--- a/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
+++ b/pms-parent/pms-global/src/main/resources/mapper/PrAssemblyPlanMapper.xml
@@ -418,7 +418,7 @@
         select ap.id planId,ap.name planName,ap.`status`,pn.id nodeId,pn.content from pr_assembly_plan ap
         left join pr_production_node pn on ap.process_id = pn.process_id
         where status != -1
-        <if test="planName != null and planName!= null">
+        <if test="planName != null and planName!= ''">
             and ap.name like concat('%', #{planName}, '%')
         </if>
     </select>
diff --git a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/config/WebFilterConfiguration.java b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/config/WebFilterConfiguration.java
index 458ff95..6df1c2f 100644
--- a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/config/WebFilterConfiguration.java
+++ b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/config/WebFilterConfiguration.java
@@ -31,7 +31,15 @@
             filterRegistrationBean.setOrder(order_DevStageFilter);//鎵ц娆″簭
         }else{
             filterRegistrationBean.setFilter(new UserTokenFilter());
-            filterRegistrationBean.addUrlPatterns("/*");//閰嶇疆杩囨护瑙勫垯
+            filterRegistrationBean.addUrlPatterns("/process/*","/order/*","/assembly/*",
+                    "/devOps/*","/workStation/*","/assembly/*",
+                    "/schedule/save",
+                    "/schedule/update",
+                    "/schedule/selectPlan",
+                    "/schedule/one",
+                    "/schedule/some",
+                    "/schedule/export",
+                    "/schedule/getUserList");//閰嶇疆杩囨护瑙勫垯
             filterRegistrationBean.setName("UserTokenFilter");//璁剧疆杩囨护鍣ㄥ悕绉�
             filterRegistrationBean.setOrder(order_UserTokenFilter);//鎵ц娆″簭
         }
diff --git a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
index 20ccf5f..8e0e515 100644
--- a/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
+++ b/pms-parent/pms-web-product/src/main/java/com/dy/pmsProduct/schedule/ScheduleCtrl.java
@@ -148,4 +148,14 @@
         EasyExcel.write(response.getOutputStream(), list.get(0).getClass()).sheet(sheetName)
                 .registerWriteHandler(new CustomCellWriteHandler()).doWrite(list);
     }
+
+    /**
+     * 鏌ヨ鎵�鏈�,瑙﹀睆绔娇鐢ㄤ笉楠岃瘉token
+     * @param queryVo
+     * @return
+     */
+    @PostMapping(path="selectAll")
+    public BaseResponse<List<PrSchedule>> selectAll(@RequestBody QueryVo queryVo) {
+        return BaseResponseUtils.buildSuccess(sv.selectAll(queryVo));
+    }
 }

--
Gitblit v1.8.0