瀏覽代碼

用户行为优化1.0.5

huangzhiguo 1 年之前
父節點
當前提交
e0d9185828

+ 1 - 1
src/main/java/com/caimei365/order/model/po/CmBehaviorInfoPo.java

@@ -43,7 +43,7 @@ public class CmBehaviorInfoPo {
     /**
     /**
      * 商品Id
      * 商品Id
      */
      */
-    private String productId;
+    private Integer productId;
     /**
     /**
      * 子订单Id, 多个使用逗号隔开
      * 子订单Id, 多个使用逗号隔开
      */
      */

+ 1 - 1
src/main/java/com/caimei365/order/service/impl/CartClubServiceImpl.java

@@ -758,7 +758,7 @@ public class CartClubServiceImpl implements CartClubService {
                 CmBehaviorInfoPo behaviorInfo = baseMapper.getClubSpId(cartDto.getUserId());
                 CmBehaviorInfoPo behaviorInfo = baseMapper.getClubSpId(cartDto.getUserId());
                 behaviorInfo.setOperateObject(1);
                 behaviorInfo.setOperateObject(1);
                 behaviorInfo.setType(7);
                 behaviorInfo.setType(7);
-                behaviorInfo.setProductId(null != productInfo.getProductId() ? productInfo.getProductId().toString() : "");
+                behaviorInfo.setProductId(null != productInfo.getProductId() ? productInfo.getProductId() : null);
                 behaviorInfo.setLabel(StringUtils.isNotBlank(productInfo.getRelatedLabels()) ? productInfo.getRelatedLabels() : "");
                 behaviorInfo.setLabel(StringUtils.isNotBlank(productInfo.getRelatedLabels()) ? productInfo.getRelatedLabels() : "");
                 baseMapper.insertBehaviorInfo(behaviorInfo);
                 baseMapper.insertBehaviorInfo(behaviorInfo);
             }
             }

+ 0 - 1
src/main/java/com/caimei365/order/service/impl/SubmitServiceImpl.java

@@ -1890,7 +1890,6 @@ public class SubmitServiceImpl implements SubmitService {
                         behaviorInfo.setOperateObject(2);
                         behaviorInfo.setOperateObject(2);
                     }
                     }
                     behaviorInfo.setType(5);
                     behaviorInfo.setType(5);
-                    behaviorInfo.setProductId(StringUtils.strip(productIds.toString(), "[]"));
                     behaviorInfo.setShopOrderId(mainOrder.getShopOrderIds());
                     behaviorInfo.setShopOrderId(mainOrder.getShopOrderIds());
                     behaviorInfo.setLabel(StringUtils.strip(labels.toString(), "[]"));
                     behaviorInfo.setLabel(StringUtils.strip(labels.toString(), "[]"));
                     baseMapper.insertBehaviorInfo(behaviorInfo);
                     baseMapper.insertBehaviorInfo(behaviorInfo);