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);