|
@@ -6,6 +6,7 @@ import java.util.Arrays;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.abi.qms.platform.dto.req.*;
|
|
import com.abi.qms.platform.dto.req.*;
|
|
import com.abi.qms.platform.dto.res.*;
|
|
import com.abi.qms.platform.dto.res.*;
|
|
|
|
+import com.abi.qms.platform.feign.SkuFeign;
|
|
import com.abi.qms.platform.service.IInspectionCaseService;
|
|
import com.abi.qms.platform.service.IInspectionCaseService;
|
|
import com.abi.task.common.api.base.BaseResponse;
|
|
import com.abi.task.common.api.base.BaseResponse;
|
|
import com.abi.task.common.excel.ExcelInputFactory;
|
|
import com.abi.task.common.excel.ExcelInputFactory;
|
|
@@ -39,6 +40,9 @@ public class InspectionCaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IInspectionCaseService inspectionCaseService;
|
|
private IInspectionCaseService inspectionCaseService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private SkuFeign skuFeign;
|
|
|
|
+
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增稽查案件
|
|
* 新增稽查案件
|
|
@@ -132,11 +136,22 @@ public class InspectionCaseController {
|
|
|
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "导出")
|
|
@ApiOperation(value = "导出")
|
|
- @GetMapping("export")
|
|
|
|
|
|
+ @GetMapping("/export")
|
|
public void export(@Validated ExportInspectionCaseReq req, HttpServletResponse response) {
|
|
public void export(@Validated ExportInspectionCaseReq req, HttpServletResponse response) {
|
|
List<ExportInspectionCaseRes> resList = inspectionCaseService.export(req);
|
|
List<ExportInspectionCaseRes> resList = inspectionCaseService.export(req);
|
|
ExcelInputFactory.downloadExcelData("稽查案件", response, resList, ExportInspectionCaseRes.class);
|
|
ExcelInputFactory.downloadExcelData("稽查案件", response, resList, ExportInspectionCaseRes.class);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @ApiOperation(value = "模拟SKU模糊搜索服务")
|
|
|
|
+ @GetMapping("/sku/{inquire}")
|
|
|
|
+ public BaseResponse<List> getSku(@PathVariable("inquire") String inquire) {
|
|
|
|
+ List<SkuFeign.Sku> skus = skuFeign.likeQuerySkuByCodeOrName(inquire);
|
|
|
|
+ return BaseResponse.create(skus);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|