Procházet zdrojové kódy

顾问列表、顾问评价修改

anderx před 7 roky
rodič
revize
58dd7885a6

+ 2 - 2
src/main/java/com/goafanti/common/mapper/JtCommodityCommentMapper.xml

@@ -386,9 +386,9 @@
   a.content,a.star,u.identify_name as commenter
   a.content,a.star,u.identify_name as commenter
   from jt_commodity_comment a 
   from jt_commodity_comment a 
   left join user u on a.uid=u.id
   left join user u on a.uid=u.id
-  left join jt_consult_order b on a.order_no=b.order_no
+  <!-- left join jt_consult_order b on a.order_no=b.order_no -->
   where 1=1
   where 1=1
-  and b.seller_id= #{id,jdbcType=VARCHAR}
+  and a.commodity_id= #{id,jdbcType=VARCHAR}
   order by a.create_time desc
   order by a.create_time desc
   <if test="page_sql!=null">
   <if test="page_sql!=null">
 	${page_sql}
 	${page_sql}

+ 1 - 2
src/main/java/com/goafanti/news/controller/AdminPolicyApiController.java

@@ -175,8 +175,7 @@ public class AdminPolicyApiController extends BaseApiController {
 						result.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","未找到该政策,"));
 						result.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR,"","未找到该政策,"));
 						return result;
 						return result;
 					}
 					}
-					if(refresh!=null &&refresh==1)
-						{
+					if(refresh!=null &&refresh==1){
 						if( auditStatus!=2 && policy.getAuditStatus()!=2) {
 						if( auditStatus!=2 && policy.getAuditStatus()!=2) {
 							result.getError().add(buildError("","","当前未发布"));
 							result.getError().add(buildError("","","当前未发布"));
 							return result;
 							return result;

+ 1 - 1
src/main/webapp/WEB-INF/views/portal/adviser/adviserList.html

@@ -25,7 +25,7 @@
             </div>
             </div>
         </div>
         </div>
         <div class="sort">
         <div class="sort">
-            <a class="relTime">发布时间</a><a class="colNumber">关注量</a>
+            <a class="relTime">发布时间</a><a class="colNumber">好评率</a>
         </div>
         </div>
         <div class="adviserList">
         <div class="adviserList">
             <ul>
             <ul>