From e809f5955584e600d8612540ea814977c49774c2 Mon Sep 17 00:00:00 2001
From: Pu Zhibing <393733352@qq.com>
Date: 星期三, 27 八月 2025 23:51:54 +0800
Subject: [PATCH] 修改bug

---
 ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java
index 3beceec..946aeb5 100644
--- a/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java
+++ b/ManagementQYTTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/specialTrain/TLineController.java
@@ -160,11 +160,7 @@
             endTime = timeArray[1];
         }
         Page<Map<String, Object>> page = new PageFactory<Map<String, Object>>().defaultPage();
-        if (shiroExtUtil.getUser().getRoleType() != 1) {
-            page.setRecords(null);
-        } else {
-            page.setRecords(tLineService.getLineList(page, beginTime, endTime, name, insertUser, modelStr, state));
-        }
+        page.setRecords(tLineService.getLineList(page, beginTime, endTime, name, insertUser, modelStr, state, shiroExtUtil.getUser().getObjectId()));
         return super.packForBT(page);
     }
 
@@ -183,6 +179,7 @@
         tLine.setState(1);
         tLine.setInsertTime(new Date());
         tLine.setInsertUserId(shiroExtUtil.getUser().getId());
+        tLine.setCompanyId(shiroExtUtil.getUser().getObjectId());
         tLineService.insert(tLine);
     
         //添加线路站点起点+终点

--
Gitblit v1.7.1