From 41b3ea1bd53dbc9a34ac1fa126c26c88769a0bcf Mon Sep 17 00:00:00 2001 From: bangae1 Date: Tue, 3 Jun 2025 09:45:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=ED=91=9C=20=EC=83=9D=EC=84=B1=20sap?= =?UTF-8?q?=20=EA=B2=B0=EC=9E=AC=20=ED=86=B5=ED=95=A9=20=EC=A0=84=ED=91=9C?= =?UTF-8?q?=20=EC=A1=B0=ED=9A=8C=20=EC=83=81=EC=84=B8=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=20=ED=99=94=EB=A9=B4=20=EB=B6=84=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/sapAppr/sap결재상태 변경.http | 8 ++-- api/sapAppr/sap협조 (신규결재) 저장.http | 8 ++-- .../svcm/controller/SapApprController.java | 38 +++++++++---------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/api/sapAppr/sap결재상태 변경.http b/api/sapAppr/sap결재상태 변경.http index 48d1179..389fa50 100644 --- a/api/sapAppr/sap결재상태 변경.http +++ b/api/sapAppr/sap결재상태 변경.http @@ -1,10 +1,10 @@ PUT http://localhost:8010/api/sap/appr -sabun: 15000004 +sabun: 17131303 Content-Type: application/json { - "wkfid": "FI2025900007", - "wkfsq": 3, - "bname": "15000004", + "wkfid": "FI2025900010", + "wkfsq": 2, + "bname": "17131303", "wkfst": "A" } \ No newline at end of file diff --git a/api/sapAppr/sap협조 (신규결재) 저장.http b/api/sapAppr/sap협조 (신규결재) 저장.http index 335fbaf..f14fc01 100644 --- a/api/sapAppr/sap협조 (신규결재) 저장.http +++ b/api/sapAppr/sap협조 (신규결재) 저장.http @@ -3,7 +3,7 @@ sabun: 15000062 Content-Type: application/json { - "wkfid": "FI2025900004", + "wkfid": "FI2025900010", "apprs": [ { "label": "협조", @@ -12,19 +12,19 @@ Content-Type: application/json "lineclsf": "Q", "bname": "15000062", "abscd": "", - "grpid": 1 + "grpid": 2 }, { "lineclsf": "I", "bname": "15000057", "abscd": "", - "grpid": 1 + "grpid": 2 }, { "lineclsf": "A", "bname": "15000056", "abscd": "", - "grpid": 1 + "grpid": 2 } ] } diff --git a/src/main/java/com/kospo/svcm/controller/SapApprController.java b/src/main/java/com/kospo/svcm/controller/SapApprController.java index ba2f7a1..708c1f6 100644 --- a/src/main/java/com/kospo/svcm/controller/SapApprController.java +++ b/src/main/java/com/kospo/svcm/controller/SapApprController.java @@ -102,25 +102,25 @@ public class SapApprController { // return ResponseEntity.ok(sapService.getDetail(wfkid)); // } -// @Operation(summary = "SAP 결재 저장", description = "임시전표 + sap 결재 저장") -// @ApiResponses({ -// @ApiResponse(description = "Success", responseCode = "200", -// content = @Content(mediaType = "application/json", -// schema = @Schema(oneOf = {PageResponse.class}) -// )), -// @ApiResponse(description = "Not found", responseCode = "404", -// content = @Content(mediaType = "text/plain", schema = @Schema(oneOf = -// {String.class}))), -// @ApiResponse(description = "Internal Error", responseCode = "500", -// content = @Content(mediaType = "application/json", schema = @Schema(oneOf = -// {CustomErrorResponse.class }))) -// }) -// @PostMapping("/sap/appr") -// public ResponseEntity save( -// @RequestBody Zwf0011tSaveRequest zwf0011tSaveRequest -// ) { -// return ResponseEntity.ok(sapService.save(zwf0011tSaveRequest)); -// } + @Operation(summary = "SAP(협조) 결재 저장", description = "sap(협조) 결재 저장") + @ApiResponses({ + @ApiResponse(description = "Success", responseCode = "200", + content = @Content(mediaType = "application/json", + schema = @Schema(oneOf = {PageResponse.class}) + )), + @ApiResponse(description = "Not found", responseCode = "404", + content = @Content(mediaType = "text/plain", schema = @Schema(oneOf = + {String.class}))), + @ApiResponse(description = "Internal Error", responseCode = "500", + content = @Content(mediaType = "application/json", schema = @Schema(oneOf = + {CustomErrorResponse.class }))) + }) + @PostMapping("/sap/appr") + public ResponseEntity save( + @RequestBody Zwf0011tSaveRequest zwf0011tSaveRequest + ) { + return ResponseEntity.ok(sapService.save(zwf0011tSaveRequest)); + } @Operation(summary = "SAP 결재상태 변경", description = "sap 결재상태 변경(결재승인 A, 결재반려 S") @ApiResponses({