From 4035c8d78b0ccdc70f806894489058d94069af01 Mon Sep 17 00:00:00 2001 From: myname Date: Tue, 15 Nov 2022 10:05:48 +0900 Subject: [PATCH] =?UTF-8?q?2022-11-15=2010:05=20=EB=90=98=EB=8F=8C?= =?UTF-8?q?=EB=A6=AC=EA=B8=B0=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adjPgrMgr/dnt/service/impl/DntServiceImpl.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/kcc/kccadr/adjPgrMgr/dnt/service/impl/DntServiceImpl.java b/src/main/java/kcc/kccadr/adjPgrMgr/dnt/service/impl/DntServiceImpl.java index 6a75b787..3999232e 100644 --- a/src/main/java/kcc/kccadr/adjPgrMgr/dnt/service/impl/DntServiceImpl.java +++ b/src/main/java/kcc/kccadr/adjPgrMgr/dnt/service/impl/DntServiceImpl.java @@ -465,10 +465,12 @@ public class DntServiceImpl implements DntService { //String s_updateQuery = ""; - /* - dntVOTmp.getApprYn()!=null - , " SET APPR_YN = '"+((dntVOTmp.getApprYn()!=null)?dntVOTmp.getApprYn():null)+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery - */ + String s_updateQuery = ""; + if (dntVOTmp.getApprYn()!=null) { + s_updateQuery = " SET APPR_YN = '"+dntVOTmp.getApprYn()+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' "; //, String p_updateQuery + }else { + s_updateQuery = " SET APPR_YN = null WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' "; //, String p_updateQuery + } //이력관리를 위한 adr_hstry_mgr 데이터 관리 추가 - 2022-08-09 @@ -486,7 +488,8 @@ public class DntServiceImpl implements DntService { , "U" //, String p_useCd I/U/UI/II/RE , "ADR_APP_MGR" //, String p_tableName - , " SET APPR_YN = '"+dntVOTmp.getApprYn()+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery + , s_updateQuery + //, " SET APPR_YN = '"+dntVOTmp.getApprYn()+"' WHERE ADR_SEQ='"+dntVO.getAdrSeq()+"' AND ADR_SN='"+dntVO.getAdrSn()+"' AND APP_SEQ='"+dntVO.getAppSeq()+"' " //, String p_updateQuery ); //adr_hstry_mgr에 값 넣기 - 끝