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