From 6b103e2dc9db6701a2841f90fa549dfbc93ec125 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Thu, 11 Jul 2024 17:58:22 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B0=94=EC=BD=94=EB=93=9C=20=EC=9E=85?= =?UTF-8?q?=EB=A0=A5=20=EC=97=90=EB=9F=AC=20=EB=A9=94=EC=84=B8=EC=A7=80=20?= =?UTF-8?q?fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adds/biz/nims/model/BizNimsResponse.java | 2 +- .../sql/mapper/biz/nims-mysql-mapper.xml | 17 ----------------- src/main/resources/sql/work/nims_work.sql | 18 ++++++++++++++++++ 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java b/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java index d3129c3..638aedf 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java +++ b/src/main/java/cokr/xit/adds/biz/nims/model/BizNimsResponse.java @@ -263,7 +263,7 @@ public class BizNimsResponse { NimsApiDto.MnfSeqInfo mnfSeqInfo = new NimsApiDto.MnfSeqInfo(); if(barcodeStr.length() < 30){ - throw new IllegalArgumentException("Barcode는 최소 20자리 이상이어야 합니다."); + throw new IllegalArgumentException("정상적인 바코드 정보가 아닙니다.\n[Barcode(GS1-128) 정보가 30자 이상 입니다]"); } // AI상품식별코드(01)로 시작 // 01 + 088065780457311717050110A1234210000000006 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 baa7dad..11dc155 100644 --- a/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml +++ b/src/main/resources/sql/mapper/biz/nims-mysql-mapper.xml @@ -764,23 +764,6 @@ - - - - - - - - - - SELECT tdm.dscdmng_id /** 폐기관리ID */ , tdm.user_id /** 사용자ID */ diff --git a/src/main/resources/sql/work/nims_work.sql b/src/main/resources/sql/work/nims_work.sql index c3abd3a..49a92be 100644 --- a/src/main/resources/sql/work/nims_work.sql +++ b/src/main/resources/sql/work/nims_work.sql @@ -36,6 +36,24 @@ select MIN(dscdmng_id) AS dscdmngId, dsuse_de ; + +select tdm.dscdmng_id + , tdm.dsuse_mth_cd + , tdm.dsuse_de + , tf.FILE_ID + -- , tf.FILE_NM + -- , IF(tf.FILE_ID IS NULL, 'Y', 'N') AS ins_yn + -- , IFNULL(tf.FILE_ID, 'N') AS ins_yn + from tb_dsuse_mgt tdm + LEFT JOIN tb_file tf + ON tdm.dscdmng_id = tf.inf_key + AND tf.INF_TYPE = '110' + WHERE tdm.use_yn = 'Y' + AND tdm.dept_cd = '4050149' + AND tdm.dsuse_mth_cd = '3' + AND tdm.dsuse_de = '20240709' +; + select MIN(dscdmng_id) AS dscdmngId, dsuse_mth_cd, dsuse_de,