完善 添加检验数据

This commit is contained in:
liuchengqian 2022-03-11 17:07:22 +08:00
parent e86b8716d5
commit 89e75ebc62
3 changed files with 10 additions and 19 deletions

View File

@ -4,10 +4,7 @@ import com.xkrs.newpro.model.qo.QcItemQoDelete;
import com.xkrs.newpro.model.qo.QcItemQoInsert;
import com.xkrs.newpro.model.qo.QcItemQoUpdate;
import com.xkrs.newpro.service.QcItemService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -21,7 +18,7 @@ public class QcItemController {
* 添加检验项目
*/
@PostMapping("/insertQcItem")
public String insertQcItem(QcItemQoInsert insertQo) {
public String insertQcItem(@RequestBody QcItemQoInsert insertQo) {
return qcItemService.insertQcItem(insertQo);
}
@ -29,7 +26,7 @@ public class QcItemController {
* 删除检验项目
*/
@PostMapping("/deleteQcItem")
public String deleteQcItem(QcItemQoDelete deleteQo) {
public String deleteQcItem(@RequestBody QcItemQoDelete deleteQo) {
return qcItemService.deleteQcItem(deleteQo);
}
@ -37,7 +34,7 @@ public class QcItemController {
* 更新检验项目名称
*/
@PostMapping("/updateQcItem")
public String updateQcItem(QcItemQoUpdate updateQo) {
public String updateQcItem(@RequestBody QcItemQoUpdate updateQo) {
return qcItemService.updateQcItem(updateQo);
}

View File

@ -3,10 +3,7 @@ package com.xkrs.newpro.controller;
import com.xkrs.newpro.model.qo.QcSourceQoDelete;
import com.xkrs.newpro.model.qo.QcSourceQoInsert;
import com.xkrs.newpro.service.QcSourceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@ -29,7 +26,7 @@ public class QcSourceController {
* 删除检验数据
*/
@PostMapping("/deleteQcSource")
public String deleteQcSource(QcSourceQoDelete deleteQo) {
public String deleteQcSource(@RequestBody QcSourceQoDelete deleteQo) {
return qcSourceService.deleteQcSource(deleteQo);
}

View File

@ -4,10 +4,7 @@ import com.xkrs.newpro.model.qo.QcSpecQoDelete;
import com.xkrs.newpro.model.qo.QcSpecQoInsert;
import com.xkrs.newpro.model.qo.QcSpecQoUpdate;
import com.xkrs.newpro.service.QcSpecService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@ -21,7 +18,7 @@ public class QcSpecController {
* 添加检验规格
*/
@PostMapping("/insertQcSpec")
public String insertQcSpec(QcSpecQoInsert insertQo) {
public String insertQcSpec(@RequestBody QcSpecQoInsert insertQo) {
return qcSpecService.insertQcSpec(insertQo);
}
@ -29,7 +26,7 @@ public class QcSpecController {
* 删除检验规格
*/
@PostMapping("/deleteQcSpec")
public String deleteQcSpec(QcSpecQoDelete deleteQo) {
public String deleteQcSpec(@RequestBody QcSpecQoDelete deleteQo) {
return qcSpecService.deleteQcSpec(deleteQo);
}
@ -37,7 +34,7 @@ public class QcSpecController {
* 更新检验规格
*/
@PostMapping("/updateQcSpec")
public String updateQcSpec(QcSpecQoUpdate updateQo) {
public String updateQcSpec(@RequestBody QcSpecQoUpdate updateQo) {
return qcSpecService.updateQcSpec(updateQo);
}