|
@@ -12,6 +12,8 @@ import com.caimei365.order.model.dto.CartDto;
|
|
|
import com.caimei365.order.model.dto.InvoiceDto;
|
|
|
import com.caimei365.order.model.dto.InvoiceOrganizeDto;
|
|
|
import com.caimei365.order.model.po.CartPo;
|
|
|
+import com.caimei365.order.model.po.CmBehaviorInfoPo;
|
|
|
+import com.caimei365.order.model.po.ProductInfoPo;
|
|
|
import com.caimei365.order.model.vo.*;
|
|
|
import com.caimei365.order.service.CartClubService;
|
|
|
import com.caimei365.order.service.RemoteCallService;
|
|
@@ -747,6 +749,22 @@ public class CartClubServiceImpl implements CartClubService {
|
|
|
cart.setAddTime(new Date());
|
|
|
cartClubMapper.insertCart(cart);
|
|
|
}
|
|
|
+ // 行为记录
|
|
|
+ try {
|
|
|
+ // 获取商品信息
|
|
|
+ ProductInfoPo productInfo = baseMapper.getProductInfo(cartDto.getProductId());
|
|
|
+ if (null != productInfo) {
|
|
|
+ // 机构协销Id
|
|
|
+ CmBehaviorInfoPo behaviorInfo = baseMapper.getClubSpId(cartDto.getUserId());
|
|
|
+ behaviorInfo.setOperateObject(1);
|
|
|
+ behaviorInfo.setType(7);
|
|
|
+ behaviorInfo.setProductId(null != productInfo.getProductId() ? productInfo.getProductId().toString() : "");
|
|
|
+ behaviorInfo.setLabel(StringUtils.isNotBlank(productInfo.getRelatedLabels()) ? productInfo.getRelatedLabels() : "");
|
|
|
+ baseMapper.insertBehaviorInfo(behaviorInfo);
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|