From 03d3cd458fc0dee8859564073ae3e754df228e2f Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期一, 27 十一月 2023 14:17:22 +0800
Subject: [PATCH] #
---
src/main/webapp/static/js/plan/plan.js | 3 ++-
src/main/webapp/static/js/priOnline2/priOnline.js | 3 ++-
src/main/java/com/zy/crm/manager/controller/PlanUrlController.java | 10 ++++++----
3 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/zy/crm/manager/controller/PlanUrlController.java b/src/main/java/com/zy/crm/manager/controller/PlanUrlController.java
index a07a79b..3c964d5 100644
--- a/src/main/java/com/zy/crm/manager/controller/PlanUrlController.java
+++ b/src/main/java/com/zy/crm/manager/controller/PlanUrlController.java
@@ -46,13 +46,14 @@
@RequestMapping(value = "/plan/url/view/file/auth")
@ManagerAuth
- public R viewFile(@RequestParam("planId") String planId){
+ public R viewFile(@RequestParam("planId") String planId,@RequestParam("planIdI") String planIdI){
List<FileSaveExampleUtil.FileDTO> fileDTOS = new ArrayList<>();
if (Cools.isEmpty(planId)){
return R.ok(fileDTOS);
}
Long id = Long.parseLong(planId);
- Plan plan = planService.selectById(id);
+ Long idPlanIdI = Long.parseLong(planIdI);
+ Plan plan = planService.selectById(idPlanIdI);
PlanType planType = planTypeService.selectById(plan.getPlanType());
if (plan.getAssistantHostSign()==1){
planType.setType(1);
@@ -103,14 +104,15 @@
@RequestMapping(value = "/pri/online/url/view/file/auth")
@ManagerAuth
- public R viewFilePriOnline(@RequestParam("planId") String planId){
+ public R viewFilePriOnline(@RequestParam("planId") String planId,@RequestParam("planIdI") String planIdI){
List<FileSaveExampleUtil.FileDTO> fileDTOS = new ArrayList<>();
if (Cools.isEmpty(planId)){
return R.ok(fileDTOS);
}
Long id = Long.parseLong(planId);
+ Long idPlanIdI = Long.parseLong(planIdI);
int planType =0;
- Plan plan = planService.selectById(id);
+ Plan plan = planService.selectById(idPlanIdI);
if (plan.getAssistantHostSign()==1){
planType=1;
}else {
diff --git a/src/main/webapp/static/js/plan/plan.js b/src/main/webapp/static/js/plan/plan.js
index 2e36b51..b7a17b3 100644
--- a/src/main/webapp/static/js/plan/plan.js
+++ b/src/main/webapp/static/js/plan/plan.js
@@ -646,7 +646,8 @@
url: '/plan/url/view/file/auth',
headers: {'token': localStorage.getItem('token')},
data:{
- planId:planIdSign
+ planId:planIdSign,
+ planIdI:data.id,
},
success: function(response) {
if (response.code==200){
diff --git a/src/main/webapp/static/js/priOnline2/priOnline.js b/src/main/webapp/static/js/priOnline2/priOnline.js
index db28bb4..e654353 100644
--- a/src/main/webapp/static/js/priOnline2/priOnline.js
+++ b/src/main/webapp/static/js/priOnline2/priOnline.js
@@ -626,7 +626,8 @@
url: '/pri/online/url/view/file/auth',
headers: {'token': localStorage.getItem('token')},
data:{
- planId:planIdSign
+ planId:planIdSign,
+ planIdI:data.itemId
},
success: function(response) {
if (response.code==200){
--
Gitblit v1.9.1