jsshin 5 лет назад
Родитель
Сommit
84bf423aa2

+ 5 - 1
src/main/java/com/style24/persistence/mybatis/shop/TsaCustomer.xml

@@ -362,7 +362,7 @@
 		       TAB2 E
 		ON     CC.CUST_CPN_SQ = E.CPN_SQ
 		WHERE  CC.CUST_NO = #{custNo}
-		ORDER BY E.ORD_NO DESC, CC.REG_DT DESC
+		ORDER BY CC.REG_DT DESC
 	</select>
 
 	<select id="getCustomerPoint" parameterType="Integer" resultType="Point">
@@ -468,6 +468,7 @@
 		       TB_CUSTOMER C
 		ON     CGH.CUST_NO = C.CUST_NO
 		WHERE  CGH.CUST_NO = #{custNo}
+		ORDER BY CGH.REG_DT DESC
 	</select>
 
 	<!--회원 상품평내역  -->
@@ -560,6 +561,7 @@
 		ON    CS.CUST_NO = C.CUST_NO
 		WHERE CS.COUNSEL_TYPE = 'C'
 		AND   CS.CUST_NO = #{custNo}
+		ORDER BY CS.REG_DT DESC
 	</select>
 
 	<!--회원 상품문의 내역  -->
@@ -607,6 +609,7 @@
 		ON    CS.CUST_NO = C.CUST_NO
 		WHERE CS.COUNSEL_TYPE = 'G'
 		AND   CS.CUST_NO = #{custNo}
+		ORDER BY CS.REG_DT DESC
 	</select>
 
 	<!--회원등급 변경내역  -->
@@ -625,6 +628,7 @@
 		       TB_CUSTOMER C
 		ON     CGH.CUST_NO = C.CUST_NO
 		WHERE  CGH.CUST_NO = #{custNo}
+		ORDER BY CGH.REG_DT DESC
 	</select>
 
 	<!-- 회원접촉내역 -->

+ 2 - 2
src/main/webapp/WEB-INF/views/customer/CustomerDetailForm.html

@@ -767,9 +767,9 @@
 	const columnReviewDefs = [
 		{headerName: "상품코드", field: "goodsCd", width: 100, cellClass: 'text-center'},
 		{
-			headerName: "제목", field: "reviewTitle", width: 300, cellClass: 'text-center',
+			headerName: "내용", field: "reviewContent", width: 300, cellClass: 'text-center',
 			cellRenderer: function (params) {
-				return '<a href="javascript:void(0);">' + params.value + '</a>';
+				return !gagajf.isNull(params.value) ? '<a href="javascript:void(0);">' + params.value + '</a>' : '';
 			}
 		},
 		{headerName: "만족도", field: "score", width: 100, cellClass: 'text-center'},