From d175d9c401fb97ebe6a580005a8c9ad5fedccb6b Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期一, 29 七月 2024 17:02:41 +0800
Subject: [PATCH] add other method
---
pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/proTestItems/ProTestItemsCtrl.java | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 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 21aa27d..5bcf5e9 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
@@ -29,13 +29,13 @@
}
/**
- * 淇濆瓨浜у搧鍝佽川妫�鏌ラ」鐩�
+ * 淇濆瓨浜у搧娴嬭瘯妫�鏌ラ」鐩�
* @param item
* @return
*/
@PostMapping(path="save")
@SsoPowerAop(power = "10300003")
- @Log("淇濆瓨浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
+ @Log("淇濆瓨浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�")
public BaseResponse<Boolean> save(@RequestBody @Valid PltProductTestInspectionItems item){
item.deleted = false;
item.disabled = false;
@@ -49,13 +49,13 @@
/**
- * 鏇存柊浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�
+ * 鏇存柊浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�
* @param item
* @return
*/
@PostMapping(path="update")
@SsoPowerAop(power = "10300003")
- @Log("鏇存柊浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
+ @Log("鏇存柊浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�")
public BaseResponse<Boolean> update(@RequestBody @Valid PltProductTestInspectionItems item){
int count = sv.update(item);
if (count <= 0) {
@@ -66,13 +66,13 @@
}
/**
- * 鍒犻櫎浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�
+ * 鍒犻櫎浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�
* @param id
* @return
*/
@GetMapping(path="delete")
@SsoPowerAop(power = "10300003")
- @Log("鍒犻櫎浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
+ @Log("鍒犻櫎浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�")
public BaseResponse<Boolean> delete(String id){
int count = sv.delete(Long.parseLong(id));
@@ -86,25 +86,25 @@
/**
- * 鏍规嵁ID鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�
+ * 鏍规嵁ID鏌ヨ浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�
* @return
*/
@GetMapping(path="one")
@SsoPowerAop(power = "10300002") //鐧诲綍涓庢潈闄愬悓鏃堕獙璇�
- @Log("鏍规嵁ID鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
+ @Log("鏍规嵁ID鏌ヨ浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�")
public BaseResponse<PltProductTestInspectionItems> one(String id){
PltProductTestInspectionItems item=sv.selectById(id);
return BaseResponseUtils.buildSuccess(JSON.toJSON(item));
}
/**
- * 鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�
+ * 鏌ヨ浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�
* @param vo
* @return
*/
@PostMapping(path="some")
@SsoPowerAop(power = "10300002")
- @Log("鏌ヨ浜у搧鍝佽川妫�鏌ラ」鐩俊鎭�")
+ @Log("鏌ヨ浜у搧娴嬭瘯妫�鏌ラ」鐩俊鎭�")
public BaseResponse<QueryResultVo<List<PltProductTestInspectionItems>>> some(@RequestBody QueryVo vo){
QueryResultVo<List<PltProductTestInspectionItems>> list = sv.selectSome(vo) ;
return BaseResponseUtils.buildSuccess(list);
@@ -116,8 +116,8 @@
*/
@PostMapping(path="disabled")
@SsoPowerAop(power = "10100011")
- @Log("绂佺敤鎴栧惎鐢ㄨ川妫�椤圭洰")
- public BaseResponse<Boolean> disabled(@RequestBody PltProductUnqualifiedReason reason){
+ @Log("绂佺敤鎴栧惎鐢ㄦ祴璇曢」鐩�")
+ public BaseResponse<Boolean> disabled(@RequestBody PltProductTestInspectionItems reason){
int count = sv.disabled(reason.id,reason.disabled);
if (count <= 0) {
--
Gitblit v1.8.0