sowon4187 5 anni fa
parent
commit
2281d1256e

+ 1 - 0
src/main/java/com/style24/persistence/mybatis/shop/TsaFaq.xml

@@ -32,6 +32,7 @@
 		        LOWER(ANSWER) LIKE CONCAT('%',LOWER(#{searchTxt}),'%')
 		       )
 		</if>
+		ORDER BY REG_DT DESC
 	</select>
 
 	<!-- FAQ 등록/수정 -->

+ 2 - 2
src/main/webapp/WEB-INF/views/board/FaqForm.html

@@ -101,8 +101,8 @@
 	// specify the columns
 	let columnDefs = [
 		{
-			headerName: "No", width: 60, cellClass: 'text-center',
-			valueGetter: function(params) { return params.node.rowIndex + 1 }
+			headerName: "FAQ번호", field: "faqSq" ,width: 70, cellClass: 'text-center',
+			cellRenderer: function (params) { return gagaAgGrid.toAddComma(params.value); }
 		},
 		{
 			headerName: "사이트", field: "siteCd", width: 150, cellClass: 'text-center',