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 | 9 +++------ 1 files changed, 3 insertions(+), 6 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 f2ad09a..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 @@ -64,7 +64,7 @@ @Autowired private ITLineCompanyService itLineCompanyService; - @Resource + @Autowired private ShiroExtUtil shiroExtUtil; /** @@ -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