Jelajahi Sumber

列表 预估服务费/1000

zhaoxian 6 bulan lalu
induk
melakukan
df8ba0b1c6

+ 4 - 1
ruixuan-live/src/main/java/com/ruixuan/isc/entity/KuaishouSupplyChain.java

@@ -306,7 +306,10 @@ public class KuaishouSupplyChain {
         this.setOrderAmount(info.getLong("orderTradeAmount"));
         this.setPayAmount(info.getLong("payAmount"));
         this.setRegimentalPromotionRate(info.getLong("regimentalPromotionRate"));
-        this.setRegimentalPromotionAmount(info.getLong("regimentalPromotionAmount"));
+        Long regimentalPromotionAmount = info.getLong("regimentalPromotionAmount");
+        if (!Check.isNull(regimentalPromotionAmount)) {
+            this.setRegimentalPromotionAmount(regimentalPromotionAmount / 1000);
+        }
         JSONArray cpsOrderProductView = info.getJSONArray("cpsOrderProductView");
         if (!Check.isNull(cpsOrderProductView)) {
             JSONObject object = cpsOrderProductView.getJSONObject(0);

+ 2 - 3
ruixuan-live/src/main/java/com/ruixuan/isc/service/impl/SupplyChainServiceImpl.java

@@ -801,9 +801,7 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
             //新增
             if (1 == messageType) {
                 KuaishouSupplyChain supplyChain = new KuaishouSupplyChain(info);
-//                log.info("订单新增消息订阅,oid:{}", supplyChain.getOid());
-                log.info("新增订阅-oid:{} 消息体:\n{}", supplyChain.getOid(),eventJSon);
-
+                log.info("订单新增消息订阅,oid:{}", supplyChain.getOid());
                 String ownership = null;
                 Criteria criteria = new Criteria();
                 criteria = Criteria.where("_id").is(supplyChain.getItemId());
@@ -946,6 +944,7 @@ public class SupplyChainServiceImpl implements ISupplyChainService {
 
                 for (int i = 0; i < orderView.size(); i++) {
                     JSONObject info = orderView.getJSONObject(i);
+                    System.out.println(info);
                     KuaishouSupplyChain supplyChain = new KuaishouSupplyChain(info, "1");
 
                     String ownership = null;