Browse Source

정렬순서 변경

SH 9 months ago
parent
commit
f9f0f6f768

+ 1 - 1
src/main/resources/sqlmap/mappers/cw/cw1001/CW10010001UMapper.xml

@@ -48,7 +48,7 @@
 		   	   		OR FIELD_ADDRESS LIKE '%' || #{searchNm} || '%'
 		   	   		)
               </if>
-             ORDER BY DEPT_GROUP_CD, GB_NM, SITE_NM
+             ORDER BY NVL2(LATITUDE, 0, 1), DEPT_GROUP_CD, GB_NM, SITE_NM
    	</select>
    	
     <insert id="insertSiteAddress" parameterType="map">

+ 1 - 1
src/main/resources/sqlmap/mappers/cw/cw1002/CW10020001UMapper.xml

@@ -46,6 +46,6 @@
 		   	   		OR FIELD_ADDRESS LIKE '%' || #{searchNm} || '%'
 		   	   		)
               </if>
-             ORDER BY DEPT_GROUP_CD, GB_NM, SITE_NM
+             ORDER BY NVL2(LATITUDE, 0, 1), DEPT_GROUP_CD, GB_NM, SITE_NM
    	</select>
 </mapper>