From e278286ab2dbd70303c2668990f22fa699fe28ea Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 19 Jun 2024 18:08:05 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=8F=90=EA=B8=B0=EC=8B=A0=EC=B2=AD=20?= =?UTF-8?q?=EB=A7=88=EC=8A=A4=ED=84=B0=20=EC=A0=95=EB=B3=B4=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD=20=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/adds/biz/nims/dao/BizNimsMapper.java | 12 ++++++++++++ .../xit/adds/biz/nims/service/BizNimsService.java | 6 ++++++ .../biz/nims/service/bean/BizNimsServiceBean.java | 6 ++++++ .../xit/adds/biz/nims/web/BizNimsController.java | 8 ++++++++ .../resources/sql/mapper/biz/nims-mysql-mapper.xml | 9 +++++++++ 5 files changed, 41 insertions(+) diff --git a/src/main/java/cokr/xit/adds/biz/nims/dao/BizNimsMapper.java b/src/main/java/cokr/xit/adds/biz/nims/dao/BizNimsMapper.java index ebb2f03..0e2d4a3 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/dao/BizNimsMapper.java +++ b/src/main/java/cokr/xit/adds/biz/nims/dao/BizNimsMapper.java @@ -48,15 +48,27 @@ public interface BizNimsMapper extends AbstractMapper { // NIMS BIZ //------------------------------------------------------------------------------------------------------ Optional> selectApiInfInfoByUserId(Map map); + int insertDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto); + int updateDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto); int updateDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto); + int insertDsuseMgt(final BizNimsDto.DsuseMgt dto); + int insertDsuseMgtDtl(final BizNimsDto.DsuseMgtDtl dto); + List selectDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto); + List selectDsuseMgtDtls(final Map map); + int updateMappingDsuseMgt(final BizNimsRequest.DsuseMgtMappingReq mgtDto); + int updateForceMappingDsuseMgt(final BizNimsResponse.DsuseMgtRes mgtDto); + + + + int insertDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto); int insertDsuseRptInfoDtl(final NimsApiDto.DsuseRptInfoDtl dto); int updateCancelDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto); diff --git a/src/main/java/cokr/xit/adds/biz/nims/service/BizNimsService.java b/src/main/java/cokr/xit/adds/biz/nims/service/BizNimsService.java index f5d5a3f..3e873a0 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/service/BizNimsService.java +++ b/src/main/java/cokr/xit/adds/biz/nims/service/BizNimsService.java @@ -42,9 +42,15 @@ public interface BizNimsService { // NIMS BIZ //------------------------------------------------------------------------------------------------------ BizNimsRequest.DsuseMgtReceiptReq saveDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto, final List dtls, List files); + + BizNimsRequest.DsuseMgtReceiptReq modifyDsuseMgtReceiptMstInfo(final BizNimsRequest.DsuseMgtReceiptReq reqDto); + BizNimsRequest.DsuseMgtRsltReq saveDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto, final List files, final String fileChangeYn); + List getDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto, final boolean isForDoc); + void modifyPrgsSttsOfDsuseMgt(final BizNimsDto.DsuseMgt dto); + NimsApiDto.ProductInfoKd getPrdMnfSeqInfoOfBarcode(final String barcodeStr); diff --git a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java index 4a0449f..dec0cf9 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java @@ -298,6 +298,12 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe return reqDto; } + @Override + public BizNimsRequest.DsuseMgtReceiptReq modifyDsuseMgtReceiptMstInfo(BizNimsRequest.DsuseMgtReceiptReq reqDto) { + bizNimsMapper.updateDsuseMgtReceipt(reqDto); + return reqDto; + } + /** *
 	 * 사고마약류폐기 통보[결과]처리
diff --git a/src/main/java/cokr/xit/adds/biz/nims/web/BizNimsController.java b/src/main/java/cokr/xit/adds/biz/nims/web/BizNimsController.java
index 06f2641..b0e8e61 100644
--- a/src/main/java/cokr/xit/adds/biz/nims/web/BizNimsController.java
+++ b/src/main/java/cokr/xit/adds/biz/nims/web/BizNimsController.java
@@ -141,6 +141,14 @@ public class BizNimsController {
         return ApiBaseResponse.of(bizNimsService.saveDsuseMgtReceipt(receiptDto, dsuseMgtDtls, dsusePrdImgFiles));
     }
 
+    @Operation(summary = "사고 마약류 폐기 관리 폐기 신청서 마스터 정보 변경", description = "사고 마약류 폐기 관리 폐기 신청서 접수 마스터 정보 변경", tags = { "BIZ API" })
+    @PostMapping(value = "/modifyDsuseMgtReceiptMstInfo")
+    public ApiBaseResponse modifyDsuseMgtReceiptMstInfo(
+        @RequestBody BizNimsRequest.DsuseMgtReceiptReq reqDto
+    ) {
+        return ApiBaseResponse.of(bizNimsService.modifyDsuseMgtReceiptMstInfo(reqDto));
+    }
+
     /**
      * 사고 마약류 폐기 결과[통보] 처리
      * @param dsuseMgtRsltJsonStr 폐기 결과[통보] JSON String
diff --git a/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml b/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml
index 869ca97..8a62bab 100644
--- a/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml
+++ b/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml
@@ -279,6 +279,15 @@
         )
     
 
+    
+        /** nims-mysql-mapper|updateDsuseMgtReceipt-폐기관리 정보 변경|julim  */
+        UPDATE tb_dsuse_mgt
+           SET dsuse_prv_cd = #{dsusePrvCd}
+             , mdfcn_dt = DATE_FORMAT(now(), '%Y%m%d%H%i%s')
+             , mdfr = #{rgtr}
+        WHERE dscdmng_id = #{dscdmngId}
+    
+
     
         /** nims-mysql-mapper|updateDsuseMgtRslt-폐기관리 정보 변경|julim  */
         UPDATE tb_dsuse_mgt