提交 a90b6219 编写于 作者: 1 1539136324@qq.com

提交客户画像轨迹相关基础接口

上级 1ec8e7dd
package com.linkwechat.web.controller.wecom;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.linkwechat.common.core.controller.BaseController;
import com.linkwechat.common.core.domain.AjaxResult;
import com.linkwechat.common.core.page.TableDataInfo;
import com.linkwechat.wecom.domain.WeCustomerPortrait;
import com.linkwechat.wecom.domain.WeCustomerTrajectory;
import com.linkwechat.wecom.domain.WeFlowerCustomerTagRel;
import com.linkwechat.wecom.domain.WeTagGroup;
import com.linkwechat.wecom.domain.vo.WeMakeCustomerTag;
import com.linkwechat.wecom.service.IWeCustomerService;
import com.linkwechat.wecom.service.IWeGroupService;
import com.linkwechat.wecom.service.IWeTagGroupService;
import com.linkwechat.wecom.service.IWeUserService;
import com.linkwechat.wecom.service.*;
import org.aspectj.weaver.loadtime.Aj;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -41,6 +42,11 @@ public class WeCustomerPortraitController extends BaseController {
private IWeGroupService iWeGroupService;
@Autowired
private IWeCustomerTrajectoryService iWeCustomerTrajectoryService;
/**
* 根据客户id和当前企业员工id获取员工详细信息
* @param externalUserid
......@@ -138,6 +144,25 @@ public class WeCustomerPortraitController extends BaseController {
}
/**
* 获取轨迹信息
* @param trajectoryType
* @return
*/
@GetMapping(value = "/findTrajectory")
public TableDataInfo findTrajectory(Integer trajectoryType){
startPage();
return getDataTable(
iWeCustomerTrajectoryService.list(new LambdaQueryWrapper<WeCustomerTrajectory>()
.eq(WeCustomerTrajectory::getTrajectoryType,trajectoryType))
);
}
......
package com.linkwechat.wecom.domain;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.sql.Time;
import java.util.Date;
/**
* 活动轨迹相关
*/
@Data
@TableName("we_customer_trajectory")
public class WeCustomerTrajectory {
@TableId
private Long id;
//轨迹类型(1:信息动态;2:社交动态;3:活动规则;4:待办动态)
private Integer trajectoryType;
//外部联系人id
private String externalUserid;
//文案内容
private String content;
//处理日期
private Date createDate;
//处理时间
private Time createTime;
//0:正常;1:删除;2:完成
private Integer status;
}
package com.linkwechat.wecom.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.linkwechat.wecom.domain.WeCustomerTrajectory;
public interface WeCustomerTrajectoryMapper extends BaseMapper<WeCustomerTrajectory> {
}
package com.linkwechat.wecom.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.linkwechat.wecom.domain.WeCustomerTrajectory;
public interface IWeCustomerTrajectoryService extends IService<WeCustomerTrajectory> {
}
package com.linkwechat.wecom.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linkwechat.wecom.domain.WeCustomerTrajectory;
import com.linkwechat.wecom.mapper.WeCustomerTrajectoryMapper;
import com.linkwechat.wecom.service.IWeCustomerTrajectoryService;
import org.springframework.stereotype.Service;
@Service
public class WeCustomerTrajectoryServiceImpl extends ServiceImpl<WeCustomerTrajectoryMapper, WeCustomerTrajectory> implements IWeCustomerTrajectoryService {
}
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.linkwechat.wecom.mapper.WeCustomerTrajectoryMapper">
</mapper>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册