rosewiper 2024-08-26
거래명세서 및 사용내역서 팩스 데이터 처리 오류 수정 - 팩스 성공 건수가 없는 경우 Max/Min 날짜 처리 오류 수정 - 팩스 데이터가 없음에도 화면에는 0건에 대한 데이터가 표시되어 표시 안되도록 수정 처리
 - 팩스 성공 건수가 없는 경우 Max/Min 날짜 처리 오류 수정
 - 팩스 데이터가 없음에도 화면에는 0건에 대한 데이터가 표시되어 표시 안되도록 수정 처리
@b2f07dd85779f9c730b88c21d45c9588a2139965
src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgData_SQL_mysql.xml
@@ -3622,10 +3622,10 @@
 	<select id="mjonMsgDAO.selectPayUserSumFaxList" parameterClass="mjonMsgVO" resultClass="mjonMsgVO">
 		/* 2024.08.23 팩스 데이터 누락으로 추가  */
 		SELECT
-			MAX(DATE_FORMAT(M.REQ_DATE, '%Y-%m-%d' )) AS maxRegDate
-			, MIN(DATE_FORMAT(M.REQ_DATE, '%Y-%m-%d' )) AS minRegDate 
+			IFNULL(MAX(DATE_FORMAT(M.REQ_DATE, '%Y-%m-%d' )), 0) AS maxRegDate
+			, IFNULL(MIN(DATE_FORMAT(M.REQ_DATE, '%Y-%m-%d' )), 0) AS minRegDate 
 			, M.msgTypeName
-			, SUM(SentEA) AS ftSendCount
+			, IFNULL(SUM(SentEA), 0) AS ftSendCount
 			, ifnull(TRUNCATE(SUM(supplyPrice) , 0), 0) AS supplyPrice
 			, 0 AS vatPrice
 			, ifnull(TRUNCATE(SUM(M.TOT_PRICE) , 0), 0) AS totalPrice
src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintStatementPopUp.jsp
--- src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintStatementPopUp.jsp
+++ src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintStatementPopUp.jsp
@@ -199,22 +199,24 @@
                             	</c:if>			
                             	
                             	<c:if test="${empty pageType || pageType == 'fax'}">
-									<c:forEach var="resultFax" items="${payUserSumFaxList}" varStatus="status">
-										<tr>
-		                            		<td>${resultFax.msgTypeName}</td>
-		                            		<td>
-                            					<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.ftSendCount}" var="ftSendCount" />
-												<c:out value="${ftSendCount}"/>
-		                            		</td>
-		                            		<td>
-			                            		<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.supplyPrice}" var="supplyPrice" />
-												<c:out value="${supplyPrice}"/>
-	                            			</td>
-		                            		<td>
-		                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.totalPrice}" var="totalPrice" />
-												<c:out value="${totalPrice}"/>
-	                            			</td>
-		                            	</tr>
+									<c:forEach var="resultFax" items="${payUserSumFaxList}" varStatus="status">	
+										<c:if test="${resultFax.ftSendCount > 0}">
+											<tr>
+			                            		<td>${resultFax.msgTypeName}</td>
+			                            		<td>
+	                            					<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.ftSendCount}" var="ftSendCount" />
+													<c:out value="${ftSendCount}"/>
+			                            		</td>
+			                            		<td>
+				                            		<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.supplyPrice}" var="supplyPrice" />
+													<c:out value="${supplyPrice}"/>
+		                            			</td>
+			                            		<td>
+			                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.totalPrice}" var="totalPrice" />
+													<c:out value="${totalPrice}"/>
+		                            			</td>
+			                            	</tr>
+		                            	</c:if>
 									</c:forEach>
 								</c:if>
 								<c:if test="${empty resultList && empty payUserSumFaxList}">
src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintUsageDetailsPopUp.jsp
--- src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintUsageDetailsPopUp.jsp
+++ src/main/webapp/WEB-INF/jsp/web/pay/MsgPrintUsageDetailsPopUp.jsp
@@ -157,21 +157,23 @@
 								</c:if>
 								<c:if test="${empty pageType || pageType == 'fax'}">
 									<c:forEach var="resultFax" items="${payUserSumFaxList}" varStatus="status">
-										<tr>
-		                            		<td>${resultFax.msgTypeName}</td>
-		                            		<td>
-                            					<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.ftSendCount}" var="ftSendCount" />
-												<c:out value="${ftSendCount}"/>
-		                            		</td>
-		                            		<td>
-		                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.supplyPrice}" var="supplyPrice" />
-												<c:out value="${supplyPrice}"/>		                            		
-	                            			</td>
-		                            		<td>
-		                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.totalPrice}" var="totalPrice" />
-												<c:out value="${totalPrice}"/>
-	                            			</td>
-		                            	</tr>		
+										<c:if test="${resultFax.ftSendCount > 0}">
+											<tr>
+			                            		<td>${resultFax.msgTypeName}</td>
+			                            		<td>
+	                            					<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.ftSendCount}" var="ftSendCount" />
+													<c:out value="${ftSendCount}"/>
+			                            		</td>
+			                            		<td>
+			                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.supplyPrice}" var="supplyPrice" />
+													<c:out value="${supplyPrice}"/>		                            		
+		                            			</td>
+			                            		<td>
+			                            			<fmt:formatNumber type="number" maxFractionDigits="3" value="${resultFax.totalPrice}" var="totalPrice" />
+													<c:out value="${totalPrice}"/>
+		                            			</td>
+			                            	</tr>		
+		                            	</c:if>
 		                            </c:forEach>
 								</c:if>
 								<c:if test="${ empty resultList && empty payUserSumFaxList}">
Add a comment
List