Browse Source

리스크점검사유등록 대책 만 있어도 사유 유무 체크되게 변경

SBK 1 year ago
parent
commit
601551fb47
1 changed files with 12 additions and 3 deletions
  1. 12 3
      src/main/resources/sqlmap/mappers/co/co0102/CO01020001UMapper.xml

+ 12 - 3
src/main/resources/sqlmap/mappers/co/co0102/CO01020001UMapper.xml

@@ -56,14 +56,23 @@
 		     			 , A.EMP_PE_NM --PE
 		     			 , A.EMP_PS_NM --공무
 					     , E.NPYRQ_RSN
-					     , DECODE(NVL(E.NPYRQ_RSN,''),'','N','Y') NPYRQ_RSN_YN
+					     , CASE WHEN E.NPYRQ_RSN IS NULL
+					     		 AND E.NPYRQ_MEASR IS NULL THEN 'N'
+					     		ELSE 'Y'
+					        END NPYRQ_RSN_YN
 					     , E.NPYRQ_MEASR
 					     , E.RCAMT_RSN
 					     , E.RCAMT_MEASR
-					     , DECODE(NVL(E.RCAMT_RSN,''),'','N','Y') RCAMT_RSN_YN
+					     , CASE WHEN E.RCAMT_RSN IS NULL
+					     		 AND E.RCAMT_MEASR IS NULL THEN 'N'
+					     		ELSE 'Y'
+					        END RCAMT_RSN_YN
 					     , E.PROG_ACT_RT_RSN
 					     , E.PROG_ACT_RT_MEASR
-					     , DECODE(NVL(E.PROG_ACT_RT_RSN,''),'','N','Y') PROG_ACT_RT_RSN_YN		 
+					     , CASE WHEN E.PROG_ACT_RT_RSN IS NULL
+					     		 AND E.PROG_ACT_RT_MEASR IS NULL THEN 'N'
+					     		ELSE 'Y'
+					        END PROG_ACT_RT_RSN_YN	 
 					     , ROUND(NVL(A.PROG_ACT_PLAN_O_RT,0),2) PROG_ACT_PLAN_O_RT --공정율계획
 					     , ROUND(NVL(A.PROG_ACT_O_RT,0),2) PROG_ACT_O_RT --공정율  
 					     , RTRIM(TO_CHAR(ROUND(NVL(A.PROG_ACT_PLAN_O_RT - A.PROG_ACT_O_RT,0),2), 'FM990.99'),'.') PROG_ACT_O_RT_DIFF --공정율 GAP