From 0d9f926ceac74c9fba899f4b76d113fd281579a5 Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期三, 19 六月 2024 13:46:47 +0800
Subject: [PATCH] work模块名称修改
---
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java | 18 ++++++++----------
1 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java
index 1c86b6f..21aa27d 100644
--- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java
+++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java
@@ -6,10 +6,8 @@
import com.dy.common.webUtil.BaseResponseUtils;
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pmsGlobal.aop.Log;
-import com.dy.pmsGlobal.pojoPlt.PltProductTestItems;
+import com.dy.pmsGlobal.pojoPlt.PltProductTestInspectionItems;
import com.dy.pmsGlobal.pojoPlt.PltProductUnqualifiedReason;
-import com.dy.pmsPlatform.proTestItems.ProTestItemsSv;
-import com.dy.pmsPlatform.proTestItems.QueryVo;
import jakarta.validation.Valid;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -21,7 +19,7 @@
*/
@Slf4j
@RestController
-@RequestMapping(path="items")
+@RequestMapping(path="testItems")
@SuppressWarnings("unchecked")
public class ProTestItemsCtrl {
private ProTestItemsSv sv;
@@ -38,7 +36,7 @@
@PostMapping(path="save")
@SsoPowerAop(power = "10300003")
@Log("淇濆瓨浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
- public BaseResponse<Boolean> save(@RequestBody @Valid PltProductTestItems item){
+ public BaseResponse<Boolean> save(@RequestBody @Valid PltProductTestInspectionItems item){
item.deleted = false;
item.disabled = false;
int count =sv.save(item);
@@ -58,7 +56,7 @@
@PostMapping(path="update")
@SsoPowerAop(power = "10300003")
@Log("鏇存柊浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
- public BaseResponse<Boolean> update(@RequestBody @Valid PltProductTestItems item){
+ public BaseResponse<Boolean> update(@RequestBody @Valid PltProductTestInspectionItems item){
int count = sv.update(item);
if (count <= 0) {
return BaseResponseUtils.buildFail("鏁版嵁搴撳瓨鍌ㄥけ璐�");
@@ -94,8 +92,8 @@
@GetMapping(path="one")
@SsoPowerAop(power = "10300002") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
@Log("鏍规嵁ID鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
- public BaseResponse<PltProductTestItems> one(String id){
- PltProductTestItems item=sv.selectById(id);
+ public BaseResponse<PltProductTestInspectionItems> one(String id){
+ PltProductTestInspectionItems item=sv.selectById(id);
return BaseResponseUtils.buildSuccess(JSON.toJSON(item));
}
@@ -107,8 +105,8 @@
@PostMapping(path="some")
@SsoPowerAop(power = "10300002")
@Log("鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
- public BaseResponse<QueryResultVo<List<PltProductTestItems>>> some(@RequestBody QueryVo vo){
- QueryResultVo<List<PltProductTestItems>> list = sv.selectSome(vo) ;
+ public BaseResponse<QueryResultVo<List<PltProductTestInspectionItems>>> some(@RequestBody QueryVo vo){
+ QueryResultVo<List<PltProductTestInspectionItems>> list = sv.selectSome(vo) ;
return BaseResponseUtils.buildSuccess(list);
}
/**
--
Gitblit v1.8.0