From 68f6642d4d1fff10c6bd898d69dd7bff27adbc16 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期日, 24 九月 2023 15:18:29 +0800
Subject: [PATCH] 修改2.0 9.24
---
base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java | 37 +++++++++++++++++--------------------
1 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java b/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
index 044cc10..d10ec7e 100644
--- a/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
+++ b/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
@@ -31,11 +31,11 @@
@ApiOperation(value = "鏌ヨ鎶�鏈寚鏍囩淮鎶ゅ垪琛�-->宸﹁竟浜岀骇灞曠ず宸ュ簭鍜屽伐鑹�")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "type", value = "绫诲瀷(涓虹┖=0姗¤兌杩炴帴鍣�)", dataTypeClass = Integer.class, required = true),
+ @ApiImplicitParam(name = "type", value = "绫诲瀷(涓虹┖=0姗¤兌杩炴帴鍣�)", dataTypeClass = String.class, required = true),
@ApiImplicitParam(name = "message", value = "鎼滅储鍐呭", dataTypeClass = String.class)
})
@GetMapping("/selectAllTechTem")
- public Result selectAllTechTem(Integer type, String message) {
+ public Result selectAllTechTem(String type, String message) {
return Result.success(technicalModelService.selectAllTechTem(type, message));
}
@@ -50,35 +50,32 @@
@ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�-->閫夋嫨宸ュ簭鍜屽伐鑹�")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "type", value = "绫诲瀷", dataTypeClass = Integer.class, required = true)
+ @ApiImplicitParam(name = "type", value = "绫诲瀷", dataTypeClass = String.class, required = true)
})
@GetMapping("/chooseTechFath")
- public Result chooseTechFath(Integer type) {
+ public Result chooseTechFath(String type) {
return Result.success(technicalModelService.chooseTechFath(type));
}
@ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�-->閫夋嫨椤圭洰鐖剁被")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
+ @ApiImplicitParam(name = "techTemId", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
})
@GetMapping("/chooseProFath")
- public Result chooseProFath(Integer id) {
- return Result.success(technicalModelService.chooseProFath(id));
+ public Result chooseProFath(Integer techTemId) {
+ return Result.success(technicalModelService.chooseProFath(techTemId));
}
@ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�")
- @ApiImplicitParams(value = {
- @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
- })
@PostMapping("/addTechMode")
- public Result addTechMode(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) {
- technicalModelService.addTechMode(id, technicalModelDto);
+ public Result addTechMode(@Validated @RequestBody TechnicalModelDto technicalModelDto) {
+ technicalModelService.addTechMode(technicalModelDto);
return Result.success("鏂板鎴愬姛!");
}
@ApiOperation(value = "鏍规嵁id鏌ヨ璇︽儏")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+ @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
})
@GetMapping("/selecTechById")
public Result selecTechById(Integer id) {
@@ -87,27 +84,27 @@
@ApiOperation(value = "缂栬緫")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+ @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
})
@PostMapping("/writeTechById")
- public Result writeTechById(Integer id,@Validated @RequestBody TechnicalModelDto technicalModelDto) {
- technicalModelService.writeTechById(id,technicalModelDto);
- return Result.success("淇敼"+id+"鎴愬姛!");
+ public Result writeTechById(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) {
+ technicalModelService.writeTechById(id, technicalModelDto);
+ return Result.success("淇敼" + id + "鎴愬姛!");
}
@ApiOperation(value = "鍒犻櫎")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+ @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
})
@PostMapping("/delTechById")
public Result delTechById(Integer id) {
technicalModelService.delTechById(id);
- return Result.success("鍒犻櫎"+id+"鎴愬姛!");
+ return Result.success("鍒犻櫎" + id + "鎴愬姛!");
}
@ApiOperation(value = "鎵归噺鍒犻櫎")
@ApiImplicitParams(value = {
- @ApiImplicitParam(name = "ids", value = "鎶�鏈寚鏍噄d", dataTypeClass = String.class,required = true)
+ @ApiImplicitParam(name = "ids", value = "鎶�鏈寚鏍噄d", dataTypeClass = String.class, required = true)
})
@PostMapping("/delAllTech")
public Result delAllTech(String ids) {
--
Gitblit v1.9.3