Browse Source

求购bug处理

liusw 8 years ago
parent
commit
88d2068af7

+ 2 - 5
src/main/java/com/uas/platform/b2c/trade/seek/model/SeekPurchase.java

@@ -143,11 +143,8 @@ public class SeekPurchase {
     @Column(name = "sp_boughtAmount")
     private Double boughtAmount;
 
-    /**
-     * 剩余时间
-     */
-    @Transient
-    private Long remainingTime;
+
+
 
     /**
      * Bom清单id

+ 1 - 1
src/main/java/com/uas/platform/b2c/trade/seek/service/impl/SeekPurchaseBomServiceImpl.java

@@ -375,7 +375,7 @@ public class SeekPurchaseBomServiceImpl implements SeekPurchaseBomService{
                 if (codeWord != null && codeWord.size() > 0) {
                     seekPurchaseByBatchList.get(i).setCodeWord(codeWord);
                 }
-                List<Map<String, Object>> brandWord = searcherService.getSimilarComponents(seekPurchaseByBatchList.get(i).getBrand());
+                List<Map<String, Object>> brandWord = searcherService.getSimilarBrands(seekPurchaseByBatchList.get(i).getBrand());
                 if (codeWord != null && codeWord.size() > 0) {
                     seekPurchaseByBatchList.get(i).setBrandWord(brandWord);
                 }

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

@@ -488,7 +488,8 @@
                                     <option value="RMB">¥</option>
                                     <option value="USD">$</option>
                                 </select>
-                                <div ng-if="seek.currency" ng-model="offer.currency">¥</div>
+                                <div ng-if="seek.currency == 'RMB'" ng-model="offer.currency">¥</div>
+                                <div ng-if="seek.currency == 'USD'" ng-model="offer.currency">$</div>
                                 <input type="number" class="form-control" ng-blur="onUnitPriceBlur()" ng-change="onUnitPriceChange()" ng-model="offer.unitPrice">
                             </div>
                             <div>