From e6ffa9fcebef022be1e8e8162c65f52754f9081e Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期六, 19 八月 2023 15:11:22 +0800 Subject: [PATCH] 基础数据 --- inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java | 30 ++++-------------------------- 1 files changed, 4 insertions(+), 26 deletions(-) diff --git a/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java b/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java index 5b01d22..ff18b98 100644 --- a/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java +++ b/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java @@ -22,6 +22,7 @@ import org.springframework.web.bind.annotation.*; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.yuanchu.limslaboratory.service.InspectionService; + import javax.annotation.Resource; /** @@ -67,40 +68,17 @@ @GetMapping("/selectAll") public Result selectAll(Integer type) { switch (type) { - case 0 : + case 0: //鍘熸潗鏂� return Result.success(rawMaterialService.selectRawmaAll()); - case 1 : + case 1: //濮旀墭鍗� return Result.success(linkBasicInformationService.selectLinkAll()); - case 2 : + case 2: //鎴愬搧妫�楠� return Result.success("璇疯緭鍏ユ楠屼俊鎭�!"); } return Result.fail("绫诲瀷閿欒!"); - } - - - @ApiOperation(value = "閫夋嫨鍘熸潗鏂欐姤妫�") - @ApiImplicitParams(value = { - @ApiImplicitParam(name = "id", value = "鍘熸潗鏂欐姤妫�鍗昳d", dataTypeClass = Integer.class, required = true), - @ApiImplicitParam(name = "startTime", value = "妫�楠屽紑濮嬫棩鏈�", dataTypeClass = String.class, required = true), - @ApiImplicitParam(name = "endTime", value = "妫�楠岀粨鏉熸棩鏈�", dataTypeClass = String.class, required = true) - }) - @GetMapping("/selectRawmaById") - public Result selectRawmaById(Integer id, String startTime, String endTime) throws ParseException { - return Result.success(rawMaterialService.selectRawmaById(id,startTime,endTime)); - } - - - @ApiOperation(value = "閫夋嫨濮旀墭鎶ユ鍜屾牱鍝�") - @ApiImplicitParams(value = { - @ApiImplicitParam(name = "bid", value = "濮旀墭鎶ユ鍗昳d", dataTypeClass = Integer.class, required = true), - @ApiImplicitParam(name = "did", value = "濮旀墭鎶ユ鏍峰搧id", dataTypeClass = Integer.class, required = true) - }) - @GetMapping("/selectLinkByid") - public Result selectLinkByid(Integer bid, Integer did) { - return Result.success(linkBasicInformationService.selectLinkByid(bid, did)); } -- Gitblit v1.9.3