Przeglądaj źródła

评价获取模版倒序bug修改

wangdy 8 lat temu
rodzic
commit
58694b3fad

+ 2 - 2
src/main/java/com/uas/platform/b2c/trade/rate/dao/RateTemplateDao.java

@@ -28,6 +28,6 @@ public interface RateTemplateDao extends JpaSpecificationExecutor<RateTemplate>,
      * @param storeId
      * @param storeId
      * @return
      * @return
      */
      */
-    @Query("select r from RateTemplate r where 1=1 order by r.createTime desc")
-    List<RateTemplate> findByStoreId(String storeId);
+    @Query("select r from RateTemplate r where r.storeId = :storeId order by r.createTime desc")
+    List<RateTemplate> findByStoreId(@Param("storeId") String storeId);
 }
 }

+ 2 - 2
src/main/webapp/resources/view/vendor/forstore/showRate.html

@@ -325,11 +325,11 @@
                 <span ng-if="sellerRateBuyer.level"><img ng-src="static/img/user/images/rate{{sellerRateBuyer.level}}.png" alt="">{{sellerRateBuyer.level == 1?'好评':sellerRateBuyer.level == 2?'中评':'差评'}}</span>
                 <span ng-if="sellerRateBuyer.level"><img ng-src="static/img/user/images/rate{{sellerRateBuyer.level}}.png" alt="">{{sellerRateBuyer.level == 1?'好评':sellerRateBuyer.level == 2?'中评':'差评'}}</span>
                 <div style="margin-left: 20px;" ng-if="sellerRateBuyer.vendorRate">
                 <div style="margin-left: 20px;" ng-if="sellerRateBuyer.vendorRate">
                     <span class="add-rate-item01">卖家初评:<span ng-bind="sellerRateBuyer.vendorRate"></span></span>
                     <span class="add-rate-item01">卖家初评:<span ng-bind="sellerRateBuyer.vendorRate"></span></span>
-                    <span class="add-rate-item02" ng-bind="sellerRateBuyer.vendorRateTime | date:'yyyy-mm-dd'"></span>
+                    <span class="add-rate-item02" ng-bind="sellerRateBuyer.vendorRateTime | date:'yyyy-MM-dd'"></span>
                 </div>
                 </div>
                 <div style="margin-left: 40px;" ng-if="sellerRateBuyer.vendorAfterRate">
                 <div style="margin-left: 40px;" ng-if="sellerRateBuyer.vendorAfterRate">
                     <span class="add-rate-item01">卖家追评:<span ng-bind="sellerRateBuyer.vendorAfterRate"></span></span>
                     <span class="add-rate-item01">卖家追评:<span ng-bind="sellerRateBuyer.vendorAfterRate"></span></span>
-                    <span class="add-rate-item02" ng-bind="sellerRateBuyer.vendorRateTime | date:'yyyy-mm-dd'"></span>
+                    <span class="add-rate-item02" ng-bind="sellerRateBuyer.vendorRateTime | date:'yyyy-MM-dd'"></span>
                 </div>
                 </div>
             </td>
             </td>
         </tr>
         </tr>