From 90f0e70a5c03cce96c6b37fe3e9c76fb1c06839b Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Tue, 18 Jun 2024 15:45:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=94=AE=E5=90=8E=E6=9C=AA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E4=BB=93=E5=BA=93=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AftersalesAbnormalPackageController.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesAbnormalPackageController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesAbnormalPackageController.java index 5076f1275..634343fc1 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesAbnormalPackageController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesAbnormalPackageController.java @@ -16,6 +16,8 @@ */ package com.logpm.aftersales.controller; +import com.logpm.basicdata.entity.BasicdataWarehouseEntity; +import com.logpm.basicdata.feign.IBasicdataWarehouseClient; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; @@ -61,6 +63,9 @@ public class AftersalesAbnormalPackageController extends BladeController { private final IAftersalesAbnormalPackageService aftersalesAbnormalPackageService; + + private final IBasicdataWarehouseClient warehouseClient; + /** * 异常处理包件记录 详情 */ @@ -88,7 +93,11 @@ public class AftersalesAbnormalPackageController extends BladeController { @GetMapping("/getAbnormalPackage") @ApiOperationSupport(order = 2) @ApiOperation(value = "查询包件是否处理过的信息", notes = "传入aftersalesAbnormalPackage") - public R> getAbnormalPackage(@ApiIgnore @RequestParam Map aftersalesAbnormalPackage, Query query) { + public R getAbnormalPackage(@ApiIgnore @RequestParam Map aftersalesAbnormalPackage, Query query) { + BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); + if (Func.isEmpty(myCurrentWarehouse)){ + return R.fail(403,"未授权!!!"); + } log.info("查询包件的数据》》》{}",aftersalesAbnormalPackage); List pages = aftersalesAbnormalPackageService.getAbnormalPackage( aftersalesAbnormalPackage,Condition.getPage(query)); return R.data(pages);