fix: 폐기신청 마스터 정보 변경 처리 추가

dev
Jonguk. Lim 5 months ago
parent b734e89830
commit e278286ab2

@ -48,15 +48,27 @@ public interface BizNimsMapper extends AbstractMapper {
// NIMS BIZ // NIMS BIZ
//------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------
Optional<Map<String,String>> selectApiInfInfoByUserId(Map<String,String> map); Optional<Map<String,String>> selectApiInfInfoByUserId(Map<String,String> map);
int insertDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto); int insertDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto);
int updateDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto);
int updateDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto); int updateDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto);
int insertDsuseMgt(final BizNimsDto.DsuseMgt dto); int insertDsuseMgt(final BizNimsDto.DsuseMgt dto);
int insertDsuseMgtDtl(final BizNimsDto.DsuseMgtDtl dto); int insertDsuseMgtDtl(final BizNimsDto.DsuseMgtDtl dto);
List<BizNimsResponse.DsuseMgtRes> selectDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto); List<BizNimsResponse.DsuseMgtRes> selectDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto);
List<BizNimsResponse.DsuseMgtDtlRes> selectDsuseMgtDtls(final Map<String, String> map); List<BizNimsResponse.DsuseMgtDtlRes> selectDsuseMgtDtls(final Map<String, String> map);
int updateMappingDsuseMgt(final BizNimsRequest.DsuseMgtMappingReq mgtDto); int updateMappingDsuseMgt(final BizNimsRequest.DsuseMgtMappingReq mgtDto);
int updateForceMappingDsuseMgt(final BizNimsResponse.DsuseMgtRes mgtDto); int updateForceMappingDsuseMgt(final BizNimsResponse.DsuseMgtRes mgtDto);
int insertDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto); int insertDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto);
int insertDsuseRptInfoDtl(final NimsApiDto.DsuseRptInfoDtl dto); int insertDsuseRptInfoDtl(final NimsApiDto.DsuseRptInfoDtl dto);
int updateCancelDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto); int updateCancelDsuseRptInfo(final NimsApiDto.DsuseRptInfo dto);

@ -42,9 +42,15 @@ public interface BizNimsService {
// NIMS BIZ // NIMS BIZ
//------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------
BizNimsRequest.DsuseMgtReceiptReq saveDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto, final List<BizNimsDto.DsuseMgtDtl> dtls, List<MultipartFile> files); BizNimsRequest.DsuseMgtReceiptReq saveDsuseMgtReceipt(final BizNimsRequest.DsuseMgtReceiptReq dto, final List<BizNimsDto.DsuseMgtDtl> dtls, List<MultipartFile> files);
BizNimsRequest.DsuseMgtReceiptReq modifyDsuseMgtReceiptMstInfo(final BizNimsRequest.DsuseMgtReceiptReq reqDto);
BizNimsRequest.DsuseMgtRsltReq saveDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto, final List<MultipartFile> files, final String fileChangeYn); BizNimsRequest.DsuseMgtRsltReq saveDsuseMgtRslt(final BizNimsRequest.DsuseMgtRsltReq dto, final List<MultipartFile> files, final String fileChangeYn);
List<BizNimsResponse.DsuseMgtRes> getDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto, final boolean isForDoc); List<BizNimsResponse.DsuseMgtRes> getDsuseMgts(final BizNimsRequest.DsuseMgtInqReq dto, final boolean isForDoc);
void modifyPrgsSttsOfDsuseMgt(final BizNimsDto.DsuseMgt dto); void modifyPrgsSttsOfDsuseMgt(final BizNimsDto.DsuseMgt dto);
NimsApiDto.ProductInfoKd getPrdMnfSeqInfoOfBarcode(final String barcodeStr); NimsApiDto.ProductInfoKd getPrdMnfSeqInfoOfBarcode(final String barcodeStr);

@ -298,6 +298,12 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe
return reqDto; return reqDto;
} }
@Override
public BizNimsRequest.DsuseMgtReceiptReq modifyDsuseMgtReceiptMstInfo(BizNimsRequest.DsuseMgtReceiptReq reqDto) {
bizNimsMapper.updateDsuseMgtReceipt(reqDto);
return reqDto;
}
/** /**
* <pre> * <pre>
* [] * []

@ -141,6 +141,14 @@ public class BizNimsController {
return ApiBaseResponse.of(bizNimsService.saveDsuseMgtReceipt(receiptDto, dsuseMgtDtls, dsusePrdImgFiles)); return ApiBaseResponse.of(bizNimsService.saveDsuseMgtReceipt(receiptDto, dsuseMgtDtls, dsusePrdImgFiles));
} }
@Operation(summary = "사고 마약류 폐기 관리 폐기 신청서 마스터 정보 변경", description = "사고 마약류 폐기 관리 폐기 신청서 접수 마스터 정보 변경", tags = { "BIZ API" })
@PostMapping(value = "/modifyDsuseMgtReceiptMstInfo")
public ApiBaseResponse<BizNimsRequest.DsuseMgtReceiptReq> modifyDsuseMgtReceiptMstInfo(
@RequestBody BizNimsRequest.DsuseMgtReceiptReq reqDto
) {
return ApiBaseResponse.of(bizNimsService.modifyDsuseMgtReceiptMstInfo(reqDto));
}
/** /**
* [] * []
* @param dsuseMgtRsltJsonStr [] JSON String * @param dsuseMgtRsltJsonStr [] JSON String

@ -279,6 +279,15 @@
) )
</insert> </insert>
<update id="updateDsuseMgtReceipt" parameterType="cokr.xit.adds.biz.nims.model.BizNimsRequest$DsuseMgtRsltReq">
/** 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}
</update>
<update id="updateDsuseMgtRslt" parameterType="cokr.xit.adds.biz.nims.model.BizNimsRequest$DsuseMgtRsltReq"> <update id="updateDsuseMgtRslt" parameterType="cokr.xit.adds.biz.nims.model.BizNimsRequest$DsuseMgtRsltReq">
/** nims-mysql-mapper|updateDsuseMgtRslt-폐기관리 정보 변경|julim */ /** nims-mysql-mapper|updateDsuseMgtRslt-폐기관리 정보 변경|julim */
UPDATE tb_dsuse_mgt UPDATE tb_dsuse_mgt

Loading…
Cancel
Save