From 91ab1a15515c4c213b2ac4f777a7f20c3d0d59ad Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期五, 28 三月 2025 13:49:53 +0800 Subject: [PATCH] 一个订单在每个站点检验都需要扫码入库报检,在中间站点复核继续试验之后默认自动将样品出库,且在列表中也不需要再展示出来,到最后一步复核结束反而是需要手动去出库不能自动出库,且出库之后也不需要在页面展示 --- performance-server/src/main/java/com/yuanchu/mom/controller/EvaluateController.java | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/performance-server/src/main/java/com/yuanchu/mom/controller/EvaluateController.java b/performance-server/src/main/java/com/yuanchu/mom/controller/EvaluateController.java index 49f76bb..e9834ee 100644 --- a/performance-server/src/main/java/com/yuanchu/mom/controller/EvaluateController.java +++ b/performance-server/src/main/java/com/yuanchu/mom/controller/EvaluateController.java @@ -9,12 +9,11 @@ import com.yuanchu.mom.vo.Result; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; +import javax.servlet.http.HttpServletResponse; +import java.io.IOException; import java.util.Map; /** @@ -35,12 +34,19 @@ private EvaluateService evaluateService; @ValueClassify("浜哄憳鑰冭瘎") - @ApiOperation(value="鑰冭瘎鍒嗛〉鏌ヨ") + @ApiOperation(value = "鏌ヨ鑰冭瘎") @PostMapping("/page") public Result page(@RequestBody Map<String, Object> data) throws Exception { Page page = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("page")), Page.class); Evaluate entity = JackSonUtil.unmarshal(JackSonUtil.marshal(data.get("entity")), Evaluate.class); - return Result.success(evaluateService.getPage(page,entity)); + return Result.success(evaluateService.getPage(page, entity)); + } + + @ValueClassify("浜哄憳鑰冭瘎") + @ApiOperation(value = "瀵煎嚭鑰冭瘎") + @PostMapping("/exportEvaluate") + public void exportEvaluate(@RequestParam("month") String month, @RequestParam("name") String name, @RequestParam("departLims") String departLims, HttpServletResponse response) throws IOException { + evaluateService.export(month, name, departLims, response); } } -- Gitblit v1.9.3