Commit eba2528a by songyinghui

feat: 互动记录

parent e705ed57
package com.gic.haoban.manage.service.dao.mapper.content;
import com.gic.haoban.manage.service.entity.content.TabHaobanInteractRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 互动记录明细(TabHaobanInteractRecord)表数据库访问层
*
* @author makejava
* @since 2023-03-28 10:32:47
*/
public interface TabHaobanInteractRecordMapper {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanInteractRecord queryById(Long id);
/**
* 查询指定行数据
*
* @param tabHaobanInteractRecord 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanInteractRecord> queryAllByLimit(TabHaobanInteractRecord tabHaobanInteractRecord, @Param("pageable") Pageable pageable);
/**
* 统计总行数
*
* @param tabHaobanInteractRecord 查询条件
* @return 总行数
*/
long count(TabHaobanInteractRecord tabHaobanInteractRecord);
/**
* 新增数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 影响行数
*/
int insert(TabHaobanInteractRecord tabHaobanInteractRecord);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanInteractRecord> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanInteractRecord> entities);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanInteractRecord> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<TabHaobanInteractRecord> entities);
/**
* 修改数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 影响行数
*/
int update(TabHaobanInteractRecord tabHaobanInteractRecord);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 影响行数
*/
int deleteById(Long id);
}
package com.gic.haoban.manage.service.dao.mapper.content;
import com.gic.haoban.manage.service.entity.content.TabHaobanPotentialCustomer;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import java.util.List;
/**
* 销售线索(TabHaobanPotentialCustomer)表数据库访问层
*
* @author makejava
* @since 2023-03-28 09:48:07
*/
public interface TabHaobanPotentialCustomerMapper {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanPotentialCustomer queryById(Long id);
/**
* 查询指定行数据
*
* @param tabHaobanPotentialCustomer 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TabHaobanPotentialCustomer> queryAllByLimit(TabHaobanPotentialCustomer tabHaobanPotentialCustomer, @Param("pageable") Pageable pageable);
/**
* 统计总行数
*
* @param tabHaobanPotentialCustomer 查询条件
* @return 总行数
*/
long count(TabHaobanPotentialCustomer tabHaobanPotentialCustomer);
/**
* 新增数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 影响行数
*/
int insert(TabHaobanPotentialCustomer tabHaobanPotentialCustomer);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanPotentialCustomer> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanPotentialCustomer> entities);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanPotentialCustomer> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<TabHaobanPotentialCustomer> entities);
/**
* 修改数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 影响行数
*/
int update(TabHaobanPotentialCustomer tabHaobanPotentialCustomer);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 影响行数
*/
int deleteById(Long id);
}
package com.gic.haoban.manage.service.entity.content;
import java.util.Date;
import java.io.Serializable;
/**
* 互动记录明细(TabHaobanInteractRecord)实体类
*
* @author makejava
* @since 2023-03-28 10:32:47
*/
public class TabHaobanInteractRecord implements Serializable {
private static final long serialVersionUID = 518532274984830043L;
private Long id;
private String enterpriseId;
/**
* 会员id
*/
private String memberId;
/**
* 会员微信公众号id
*/
private String unionId;
/**
* 导购id
*/
private String clerkId;
/**
* 埋点traceId
*/
private String traceId;
/**
* 销售线索-业务id
*/
private String bizId;
/**
* 业务类型 1 素材
*/
private Integer bizType;
/**
* 门店id
*/
private String storeId;
/**
* 线索来源 1朋友圈; 2客户群; 3 对话框; 0其他
*/
private Integer channelSource;
/**
* 事件类型 1浏览商品;2浏览并点击; 3浏览并查看; 4 浏览并购买; 5查看并购买
*/
private Integer eventType;
/**
* 停留时长 单位秒
*/
private Integer durationTime;
/**
* 第几次访问
*/
private Integer times;
/**
* 状态 1 删除; 0正常
*/
private Integer deleteFlag;
/**
* 扩展信息 查看的商品,关联的订单号
*/
private String extendInfo;
/**
* 创建时间
*/
private Date createTime;
private Date updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUnionId() {
return unionId;
}
public void setUnionId(String unionId) {
this.unionId = unionId;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getTraceId() {
return traceId;
}
public void setTraceId(String traceId) {
this.traceId = traceId;
}
public String getBizId() {
return bizId;
}
public void setBizId(String bizId) {
this.bizId = bizId;
}
public Integer getBizType() {
return bizType;
}
public void setBizType(Integer bizType) {
this.bizType = bizType;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
public Integer getChannelSource() {
return channelSource;
}
public void setChannelSource(Integer channelSource) {
this.channelSource = channelSource;
}
public Integer getEventType() {
return eventType;
}
public void setEventType(Integer eventType) {
this.eventType = eventType;
}
public Integer getDurationTime() {
return durationTime;
}
public void setDurationTime(Integer durationTime) {
this.durationTime = durationTime;
}
public Integer getTimes() {
return times;
}
public void setTimes(Integer times) {
this.times = times;
}
public Integer getDeleteFlag() {
return deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public String getExtendInfo() {
return extendInfo;
}
public void setExtendInfo(String extendInfo) {
this.extendInfo = extendInfo;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}
package com.gic.haoban.manage.service.entity.content;
import java.util.Date;
import java.io.Serializable;
/**
* 销售线索(TabHaobanPotentialCustomer)实体类
*
* @author makejava
* @since 2023-03-28 09:48:07
*/
public class TabHaobanPotentialCustomer implements Serializable {
private static final long serialVersionUID = -28370046858269747L;
private Long id;
/**
* 企业id
*/
private String enterpriseId;
/**
* 会员id
*/
private String memberId;
/**
* 会员微信公众号id
*/
private String unionId;
/**
* 导购id
*/
private String clerkId;
/**
* 销售线索-业务id
*/
private String bizId;
/**
* 业务类型 1 素材
*/
private Integer bizType;
/**
* 门店id
*/
private String storeId;
/**
* 线索来源 1朋友圈; 2客户群; 3 对话框; 0其他
*/
private Integer channelSource;
/**
* 事件类型 1访问素材;2访问商品; 3购买商品;
*/
private Integer eventType;
/**
* 停留时长 单位秒
*/
private Integer durationTime;
/**
* 访问次数
*/
private Integer times;
/**
* 会员名称
*/
private String memberName;
/**
* 会员昵称
*/
private String memberNickName;
/**
* 会员手机号
*/
private String memberPhone;
/**
* 成交数量
*/
private Integer dealRecordNum;
/**
* 是否导购星标客户 1是; 0否
*/
private Integer starFlag;
/**
* 是否看过 1 看过; 0未看过
*/
private Integer seeFlag;
/**
* 最新访问时间
*/
private Date lastAccessTime;
/**
* 状态 1 删除; 0正常
*/
private Integer deleteFlag;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getMemberId() {
return memberId;
}
public void setMemberId(String memberId) {
this.memberId = memberId;
}
public String getUnionId() {
return unionId;
}
public void setUnionId(String unionId) {
this.unionId = unionId;
}
public String getClerkId() {
return clerkId;
}
public void setClerkId(String clerkId) {
this.clerkId = clerkId;
}
public String getBizId() {
return bizId;
}
public void setBizId(String bizId) {
this.bizId = bizId;
}
public Integer getBizType() {
return bizType;
}
public void setBizType(Integer bizType) {
this.bizType = bizType;
}
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
public Integer getChannelSource() {
return channelSource;
}
public void setChannelSource(Integer channelSource) {
this.channelSource = channelSource;
}
public Integer getEventType() {
return eventType;
}
public void setEventType(Integer eventType) {
this.eventType = eventType;
}
public Integer getDurationTime() {
return durationTime;
}
public void setDurationTime(Integer durationTime) {
this.durationTime = durationTime;
}
public String getMemberName() {
return memberName;
}
public void setMemberName(String memberName) {
this.memberName = memberName;
}
public String getMemberNickName() {
return memberNickName;
}
public void setMemberNickName(String memberNickName) {
this.memberNickName = memberNickName;
}
public String getMemberPhone() {
return memberPhone;
}
public void setMemberPhone(String memberPhone) {
this.memberPhone = memberPhone;
}
public Integer getDealRecordNum() {
return dealRecordNum;
}
public void setDealRecordNum(Integer dealRecordNum) {
this.dealRecordNum = dealRecordNum;
}
public Integer getStarFlag() {
return starFlag;
}
public void setStarFlag(Integer starFlag) {
this.starFlag = starFlag;
}
public Integer getSeeFlag() {
return seeFlag;
}
public void setSeeFlag(Integer seeFlag) {
this.seeFlag = seeFlag;
}
public Date getLastAccessTime() {
return lastAccessTime;
}
public void setLastAccessTime(Date lastAccessTime) {
this.lastAccessTime = lastAccessTime;
}
public Integer getDeleteFlag() {
return deleteFlag;
}
public void setDeleteFlag(Integer deleteFlag) {
this.deleteFlag = deleteFlag;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Integer getTimes() {
return times;
}
public void setTimes(Integer times) {
this.times = times;
}
}
package com.gic.haoban.manage.service.service.content;
import com.gic.haoban.manage.service.entity.content.TabHaobanInteractRecord;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
/**
* 互动记录明细(TabHaobanInteractRecord)表服务接口
*
* @author makejava
* @since 2023-03-28 10:32:48
*/
public interface TabHaobanInteractRecordService {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanInteractRecord queryById(Long id);
/**
* 分页查询
*
* @param tabHaobanInteractRecord 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
Page<TabHaobanInteractRecord> queryByPage(TabHaobanInteractRecord tabHaobanInteractRecord, PageRequest pageRequest);
/**
* 新增数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 实例对象
*/
TabHaobanInteractRecord insert(TabHaobanInteractRecord tabHaobanInteractRecord);
/**
* 修改数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 实例对象
*/
TabHaobanInteractRecord update(TabHaobanInteractRecord tabHaobanInteractRecord);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
boolean deleteById(Long id);
}
package com.gic.haoban.manage.service.service.content;
import com.gic.haoban.manage.service.entity.content.TabHaobanPotentialCustomer;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
/**
* 销售线索(TabHaobanPotentialCustomer)表服务接口
*
* @author makejava
* @since 2023-03-28 09:48:08
*/
public interface TabHaobanPotentialCustomerService {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TabHaobanPotentialCustomer queryById(Long id);
/**
* 分页查询
*
* @param tabHaobanPotentialCustomer 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
Page<TabHaobanPotentialCustomer> queryByPage(TabHaobanPotentialCustomer tabHaobanPotentialCustomer, PageRequest pageRequest);
/**
* 新增数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 实例对象
*/
TabHaobanPotentialCustomer insert(TabHaobanPotentialCustomer tabHaobanPotentialCustomer);
/**
* 修改数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 实例对象
*/
TabHaobanPotentialCustomer update(TabHaobanPotentialCustomer tabHaobanPotentialCustomer);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
boolean deleteById(Long id);
}
package com.gic.haoban.manage.service.service.content.impl;
import com.gic.haoban.manage.service.entity.content.TabHaobanInteractRecord;
import com.gic.haoban.manage.service.dao.mapper.content.TabHaobanInteractRecordMapper;
import com.gic.haoban.manage.service.service.content.TabHaobanInteractRecordService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import javax.annotation.Resource;
/**
* 互动记录明细(TabHaobanInteractRecord)表服务实现类
*
* @author makejava
* @since 2023-03-28 10:32:48
*/
@Service("tabHaobanInteractRecordService")
public class TabHaobanInteractRecordServiceImpl implements TabHaobanInteractRecordService {
@Resource
private TabHaobanInteractRecordMapper tabHaobanInteractRecordMapper;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public TabHaobanInteractRecord queryById(Long id) {
return this.tabHaobanInteractRecordMapper.queryById(id);
}
/**
* 分页查询
*
* @param tabHaobanInteractRecord 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
@Override
public Page<TabHaobanInteractRecord> queryByPage(TabHaobanInteractRecord tabHaobanInteractRecord, PageRequest pageRequest) {
long total = this.tabHaobanInteractRecordMapper.count(tabHaobanInteractRecord);
return new PageImpl<>(this.tabHaobanInteractRecordMapper.queryAllByLimit(tabHaobanInteractRecord, pageRequest), pageRequest, total);
}
/**
* 新增数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 实例对象
*/
@Override
public TabHaobanInteractRecord insert(TabHaobanInteractRecord tabHaobanInteractRecord) {
this.tabHaobanInteractRecordMapper.insert(tabHaobanInteractRecord);
return tabHaobanInteractRecord;
}
/**
* 修改数据
*
* @param tabHaobanInteractRecord 实例对象
* @return 实例对象
*/
@Override
public TabHaobanInteractRecord update(TabHaobanInteractRecord tabHaobanInteractRecord) {
this.tabHaobanInteractRecordMapper.update(tabHaobanInteractRecord);
return this.queryById(tabHaobanInteractRecord.getId());
}
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long id) {
return this.tabHaobanInteractRecordMapper.deleteById(id) > 0;
}
}
package com.gic.haoban.manage.service.service.content.impl;
import com.gic.haoban.manage.service.entity.content.TabHaobanPotentialCustomer;
import com.gic.haoban.manage.service.dao.mapper.content.TabHaobanPotentialCustomerMapper;
import com.gic.haoban.manage.service.service.content.TabHaobanPotentialCustomerService;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.PageRequest;
import javax.annotation.Resource;
/**
* 销售线索(TabHaobanPotentialCustomer)表服务实现类
*
* @author makejava
* @since 2023-03-28 09:48:08
*/
@Service("tabHaobanPotentialCustomerService")
public class TabHaobanPotentialCustomerServiceImpl implements TabHaobanPotentialCustomerService {
@Resource
private TabHaobanPotentialCustomerMapper tabHaobanPotentialCustomerMapper;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public TabHaobanPotentialCustomer queryById(Long id) {
return this.tabHaobanPotentialCustomerMapper.queryById(id);
}
/**
* 分页查询
*
* @param tabHaobanPotentialCustomer 筛选条件
* @param pageRequest 分页对象
* @return 查询结果
*/
@Override
public Page<TabHaobanPotentialCustomer> queryByPage(TabHaobanPotentialCustomer tabHaobanPotentialCustomer, PageRequest pageRequest) {
long total = this.tabHaobanPotentialCustomerMapper.count(tabHaobanPotentialCustomer);
return new PageImpl<>(this.tabHaobanPotentialCustomerMapper.queryAllByLimit(tabHaobanPotentialCustomer, pageRequest), pageRequest, total);
}
/**
* 新增数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 实例对象
*/
@Override
public TabHaobanPotentialCustomer insert(TabHaobanPotentialCustomer tabHaobanPotentialCustomer) {
this.tabHaobanPotentialCustomerMapper.insert(tabHaobanPotentialCustomer);
return tabHaobanPotentialCustomer;
}
/**
* 修改数据
*
* @param tabHaobanPotentialCustomer 实例对象
* @return 实例对象
*/
@Override
public TabHaobanPotentialCustomer update(TabHaobanPotentialCustomer tabHaobanPotentialCustomer) {
this.tabHaobanPotentialCustomerMapper.update(tabHaobanPotentialCustomer);
return this.queryById(tabHaobanPotentialCustomer.getId());
}
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long id) {
return this.tabHaobanPotentialCustomerMapper.deleteById(id) > 0;
}
}
<?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.gic.haoban.manage.service.dao.mapper.content.TabHaobanInteractRecordMapper">
<resultMap type="com.gic.haoban.manage.service.entity.content.TabHaobanInteractRecord" id="TabHaobanInteractRecordMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="enterpriseId" column="enterprise_id" jdbcType="VARCHAR"/>
<result property="memberId" column="member_id" jdbcType="VARCHAR"/>
<result property="unionId" column="union_id" jdbcType="VARCHAR"/>
<result property="clerkId" column="clerk_id" jdbcType="VARCHAR"/>
<result property="traceId" column="trace_id" jdbcType="VARCHAR"/>
<result property="bizId" column="biz_id" jdbcType="VARCHAR"/>
<result property="bizType" column="biz_type" jdbcType="INTEGER"/>
<result property="storeId" column="store_id" jdbcType="VARCHAR"/>
<result property="channelSource" column="channel_source" jdbcType="INTEGER"/>
<result property="eventType" column="event_type" jdbcType="INTEGER"/>
<result property="durationTime" column="duration_time" jdbcType="INTEGER"/>
<result property="times" column="times" jdbcType="INTEGER"/>
<result property="deleteFlag" column="delete_flag" jdbcType="INTEGER"/>
<result property="extendInfo" column="extend_info" jdbcType="VARCHAR"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanInteractRecordMap">
select id,
enterprise_id,
member_id,
union_id,
clerk_id,
trace_id,
biz_id,
biz_type,
store_id,
channel_source,
event_type,
duration_time,
times,
delete_flag,
extend_info,
create_time,
update_time
from tab_haoban_interact_record
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanInteractRecordMap">
select
id, enterprise_id, member_id, union_id, clerk_id, trace_id, biz_id, biz_type, store_id, channel_source,
event_type, duration_time, times, delete_flag, extend_info, create_time, update_time
from tab_haoban_interact_record
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="enterpriseId != null and enterpriseId != ''">
and enterprise_id = #{enterpriseId}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="unionId != null and unionId != ''">
and union_id = #{unionId}
</if>
<if test="clerkId != null and clerkId != ''">
and clerk_id = #{clerkId}
</if>
<if test="traceId != null and traceId != ''">
and trace_id = #{traceId}
</if>
<if test="bizId != null and bizId != ''">
and biz_id = #{bizId}
</if>
<if test="bizType != null">
and biz_type = #{bizType}
</if>
<if test="storeId != null and storeId != ''">
and store_id = #{storeId}
</if>
<if test="channelSource != null">
and channel_source = #{channelSource}
</if>
<if test="eventType != null">
and event_type = #{eventType}
</if>
<if test="durationTime != null">
and duration_time = #{durationTime}
</if>
<if test="times != null">
and times = #{times}
</if>
<if test="deleteFlag != null">
and delete_flag = #{deleteFlag}
</if>
<if test="extendInfo != null and extendInfo != ''">
and extend_info = #{extendInfo}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from tab_haoban_interact_record
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="enterpriseId != null and enterpriseId != ''">
and enterprise_id = #{enterpriseId}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="unionId != null and unionId != ''">
and union_id = #{unionId}
</if>
<if test="clerkId != null and clerkId != ''">
and clerk_id = #{clerkId}
</if>
<if test="traceId != null and traceId != ''">
and trace_id = #{traceId}
</if>
<if test="bizId != null and bizId != ''">
and biz_id = #{bizId}
</if>
<if test="bizType != null">
and biz_type = #{bizType}
</if>
<if test="storeId != null and storeId != ''">
and store_id = #{storeId}
</if>
<if test="channelSource != null">
and channel_source = #{channelSource}
</if>
<if test="eventType != null">
and event_type = #{eventType}
</if>
<if test="durationTime != null">
and duration_time = #{durationTime}
</if>
<if test="times != null">
and times = #{times}
</if>
<if test="deleteFlag != null">
and delete_flag = #{deleteFlag}
</if>
<if test="extendInfo != null and extendInfo != ''">
and extend_info = #{extendInfo}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_interact_record(enterprise_id, member_id, union_id, clerk_id, trace_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, delete_flag,
extend_info, create_time, update_time)
values (#{enterpriseId}, #{memberId}, #{unionId}, #{clerkId}, #{traceId}, #{bizId}, #{bizType}, #{storeId},
#{channelSource}, #{eventType}, #{durationTime}, #{times}, #{deleteFlag}, #{extendInfo}, #{createTime},
#{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_interact_record(enterprise_id, member_id, union_id, clerk_id, trace_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, delete_flag, extend_info, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.traceId},
#{entity.bizId}, #{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType},
#{entity.durationTime}, #{entity.times}, #{entity.deleteFlag}, #{entity.extendInfo}, #{entity.createTime},
#{entity.updateTime})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_interact_record(enterprise_id, member_id, union_id, clerk_id, trace_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, times, delete_flag, extend_info, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.traceId},
#{entity.bizId}, #{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType},
#{entity.durationTime}, #{entity.times}, #{entity.deleteFlag}, #{entity.extendInfo}, #{entity.createTime},
#{entity.updateTime})
</foreach>
on duplicate key update
enterprise_id = values(enterprise_id),
member_id = values(member_id),
union_id = values(union_id),
clerk_id = values(clerk_id),
trace_id = values(trace_id),
biz_id = values(biz_id),
biz_type = values(biz_type),
store_id = values(store_id),
channel_source = values(channel_source),
event_type = values(event_type),
duration_time = values(duration_time),
times = values(times),
delete_flag = values(delete_flag),
extend_info = values(extend_info),
create_time = values(create_time),
update_time = values(update_time)
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_interact_record
<set>
<if test="enterpriseId != null and enterpriseId != ''">
enterprise_id = #{enterpriseId},
</if>
<if test="memberId != null and memberId != ''">
member_id = #{memberId},
</if>
<if test="unionId != null and unionId != ''">
union_id = #{unionId},
</if>
<if test="clerkId != null and clerkId != ''">
clerk_id = #{clerkId},
</if>
<if test="traceId != null and traceId != ''">
trace_id = #{traceId},
</if>
<if test="bizId != null and bizId != ''">
biz_id = #{bizId},
</if>
<if test="bizType != null">
biz_type = #{bizType},
</if>
<if test="storeId != null and storeId != ''">
store_id = #{storeId},
</if>
<if test="channelSource != null">
channel_source = #{channelSource},
</if>
<if test="eventType != null">
event_type = #{eventType},
</if>
<if test="durationTime != null">
duration_time = #{durationTime},
</if>
<if test="times != null">
times = #{times},
</if>
<if test="deleteFlag != null">
delete_flag = #{deleteFlag},
</if>
<if test="extendInfo != null and extendInfo != ''">
extend_info = #{extendInfo},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_interact_record
where id = #{id}
</delete>
</mapper>
<?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.gic.haoban.manage.service.dao.mapper.content.TabHaobanPotentialCustomerMapper">
<resultMap type="com.gic.haoban.manage.service.entity.content.TabHaobanPotentialCustomer"
id="TabHaobanPotentialCustomerMap">
<result property="id" column="id" jdbcType="INTEGER"/>
<result property="enterpriseId" column="enterprise_id" jdbcType="VARCHAR"/>
<result property="memberId" column="member_id" jdbcType="VARCHAR"/>
<result property="unionId" column="union_id" jdbcType="VARCHAR"/>
<result property="clerkId" column="clerk_id" jdbcType="VARCHAR"/>
<result property="bizId" column="biz_id" jdbcType="VARCHAR"/>
<result property="bizType" column="biz_type" jdbcType="INTEGER"/>
<result property="storeId" column="store_id" jdbcType="VARCHAR"/>
<result property="channelSource" column="channel_source" jdbcType="INTEGER"/>
<result property="eventType" column="event_type" jdbcType="INTEGER"/>
<result property="durationTime" column="duration_time" jdbcType="INTEGER"/>
<result property="times" column="times" jdbcType="INTEGER"/>
<result property="memberName" column="member_name" jdbcType="VARCHAR"/>
<result property="memberNickName" column="member_nick_name" jdbcType="VARCHAR"/>
<result property="memberPhone" column="member_phone" jdbcType="VARCHAR"/>
<result property="dealRecordNum" column="deal_record_num" jdbcType="INTEGER"/>
<result property="starFlag" column="star_flag" jdbcType="INTEGER"/>
<result property="seeFlag" column="see_flag" jdbcType="INTEGER"/>
<result property="lastAccessTime" column="last_access_time" jdbcType="TIMESTAMP"/>
<result property="deleteFlag" column="delete_flag" jdbcType="INTEGER"/>
<result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
<result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="baseSql">
id
, enterprise_id, member_id,
union_id,
clerk_id,
biz_id,
biz_type,
store_id,
channel_source,
event_type,
duration_time,
times,
member_name,
member_nick_name,
member_phone,
deal_record_num,
star_flag,
see_flag,
last_access_time,
delete_flag,
create_time,
update_time
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanPotentialCustomerMap">
select id,
enterprise_id,
member_id,
union_id,
clerk_id,
biz_id,
biz_type,
store_id,
channel_source,
event_type,
duration_time,
times,
member_name,
member_nick_name,
member_phone,
deal_record_num,
star_flag,
see_flag,
last_access_time,
delete_flag,
create_time,
update_time
from tab_haoban_potential_customer
where id = #{id}
</select>
<!--查询指定行数据-->
<select id="queryAllByLimit" resultMap="TabHaobanPotentialCustomerMap">
select
id, enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type, store_id, channel_source, event_type,
duration_time, member_name, member_nick_name, member_phone, deal_record_num, star_flag, see_flag,
last_access_time, delete_flag, create_time, update_time
from tab_haoban_potential_customer
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="enterpriseId != null and enterpriseId != ''">
and enterprise_id = #{enterpriseId}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="unionId != null and unionId != ''">
and union_id = #{unionId}
</if>
<if test="clerkId != null and clerkId != ''">
and clerk_id = #{clerkId}
</if>
<if test="bizId != null and bizId != ''">
and biz_id = #{bizId}
</if>
<if test="bizType != null">
and biz_type = #{bizType}
</if>
<if test="storeId != null and storeId != ''">
and store_id = #{storeId}
</if>
<if test="channelSource != null">
and channel_source = #{channelSource}
</if>
<if test="eventType != null">
and event_type = #{eventType}
</if>
<if test="durationTime != null">
and duration_time = #{durationTime}
</if>
<if test="memberName != null and memberName != ''">
and member_name = #{memberName}
</if>
<if test="memberNickName != null and memberNickName != ''">
and member_nick_name = #{memberNickName}
</if>
<if test="memberPhone != null and memberPhone != ''">
and member_phone = #{memberPhone}
</if>
<if test="dealRecordNum != null">
and deal_record_num = #{dealRecordNum}
</if>
<if test="starFlag != null">
and star_flag = #{starFlag}
</if>
<if test="seeFlag != null">
and see_flag = #{seeFlag}
</if>
<if test="lastAccessTime != null">
and last_access_time = #{lastAccessTime}
</if>
<if test="deleteFlag != null">
and delete_flag = #{deleteFlag}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
limit #{pageable.offset}, #{pageable.pageSize}
</select>
<!--统计总行数-->
<select id="count" resultType="java.lang.Long">
select count(1)
from tab_haoban_potential_customer
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="enterpriseId != null and enterpriseId != ''">
and enterprise_id = #{enterpriseId}
</if>
<if test="memberId != null and memberId != ''">
and member_id = #{memberId}
</if>
<if test="unionId != null and unionId != ''">
and union_id = #{unionId}
</if>
<if test="clerkId != null and clerkId != ''">
and clerk_id = #{clerkId}
</if>
<if test="bizId != null and bizId != ''">
and biz_id = #{bizId}
</if>
<if test="bizType != null">
and biz_type = #{bizType}
</if>
<if test="storeId != null and storeId != ''">
and store_id = #{storeId}
</if>
<if test="channelSource != null">
and channel_source = #{channelSource}
</if>
<if test="eventType != null">
and event_type = #{eventType}
</if>
<if test="durationTime != null">
and duration_time = #{durationTime}
</if>
<if test="memberName != null and memberName != ''">
and member_name = #{memberName}
</if>
<if test="memberNickName != null and memberNickName != ''">
and member_nick_name = #{memberNickName}
</if>
<if test="memberPhone != null and memberPhone != ''">
and member_phone = #{memberPhone}
</if>
<if test="dealRecordNum != null">
and deal_record_num = #{dealRecordNum}
</if>
<if test="starFlag != null">
and star_flag = #{starFlag}
</if>
<if test="seeFlag != null">
and see_flag = #{seeFlag}
</if>
<if test="lastAccessTime != null">
and last_access_time = #{lastAccessTime}
</if>
<if test="deleteFlag != null">
and delete_flag = #{deleteFlag}
</if>
<if test="createTime != null">
and create_time = #{createTime}
</if>
<if test="updateTime != null">
and update_time = #{updateTime}
</if>
</where>
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_potential_customer(enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, member_name,
member_nick_name, member_phone, deal_record_num, star_flag, see_flag,
last_access_time, delete_flag, create_time, update_time)
values (#{enterpriseId}, #{memberId}, #{unionId}, #{clerkId}, #{bizId}, #{bizType}, #{storeId},
#{channelSource}, #{eventType}, #{durationTime}, #{memberName}, #{memberNickName}, #{memberPhone},
#{dealRecordNum}, #{starFlag}, #{seeFlag}, #{lastAccessTime}, #{deleteFlag}, #{createTime},
#{updateTime})
</insert>
<insert id="insertBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_potential_customer(enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, member_name, member_nick_name, member_phone,
deal_record_num, star_flag, see_flag, last_access_time, delete_flag, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.bizId},
#{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType}, #{entity.durationTime},
#{entity.memberName}, #{entity.memberNickName}, #{entity.memberPhone}, #{entity.dealRecordNum},
#{entity.starFlag}, #{entity.seeFlag}, #{entity.lastAccessTime}, #{entity.deleteFlag}, #{entity.createTime},
#{entity.updateTime})
</foreach>
</insert>
<insert id="insertOrUpdateBatch" keyProperty="id" useGeneratedKeys="true">
insert into tab_haoban_potential_customer(enterprise_id, member_id, union_id, clerk_id, biz_id, biz_type,
store_id, channel_source, event_type, duration_time, member_name, member_nick_name, member_phone,
deal_record_num, star_flag, see_flag, last_access_time, delete_flag, create_time, update_time)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.enterpriseId}, #{entity.memberId}, #{entity.unionId}, #{entity.clerkId}, #{entity.bizId},
#{entity.bizType}, #{entity.storeId}, #{entity.channelSource}, #{entity.eventType}, #{entity.durationTime},
#{entity.memberName}, #{entity.memberNickName}, #{entity.memberPhone}, #{entity.dealRecordNum},
#{entity.starFlag}, #{entity.seeFlag}, #{entity.lastAccessTime}, #{entity.deleteFlag}, #{entity.createTime},
#{entity.updateTime})
</foreach>
on duplicate key update
enterprise_id = values(enterprise_id),
member_id = values(member_id),
union_id = values(union_id),
clerk_id = values(clerk_id),
biz_id = values(biz_id),
biz_type = values(biz_type),
store_id = values(store_id),
channel_source = values(channel_source),
event_type = values(event_type),
duration_time = values(duration_time),
member_name = values(member_name),
member_nick_name = values(member_nick_name),
member_phone = values(member_phone),
deal_record_num = values(deal_record_num),
star_flag = values(star_flag),
see_flag = values(see_flag),
last_access_time = values(last_access_time),
delete_flag = values(delete_flag),
create_time = values(create_time),
update_time = values(update_time)
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_potential_customer
<set>
<if test="enterpriseId != null and enterpriseId != ''">
enterprise_id = #{enterpriseId},
</if>
<if test="memberId != null and memberId != ''">
member_id = #{memberId},
</if>
<if test="unionId != null and unionId != ''">
union_id = #{unionId},
</if>
<if test="clerkId != null and clerkId != ''">
clerk_id = #{clerkId},
</if>
<if test="bizId != null and bizId != ''">
biz_id = #{bizId},
</if>
<if test="bizType != null">
biz_type = #{bizType},
</if>
<if test="storeId != null and storeId != ''">
store_id = #{storeId},
</if>
<if test="channelSource != null">
channel_source = #{channelSource},
</if>
<if test="eventType != null">
event_type = #{eventType},
</if>
<if test="durationTime != null">
duration_time = #{durationTime},
</if>
<if test="memberName != null and memberName != ''">
member_name = #{memberName},
</if>
<if test="memberNickName != null and memberNickName != ''">
member_nick_name = #{memberNickName},
</if>
<if test="memberPhone != null and memberPhone != ''">
member_phone = #{memberPhone},
</if>
<if test="dealRecordNum != null">
deal_record_num = #{dealRecordNum},
</if>
<if test="starFlag != null">
star_flag = #{starFlag},
</if>
<if test="seeFlag != null">
see_flag = #{seeFlag},
</if>
<if test="lastAccessTime != null">
last_access_time = #{lastAccessTime},
</if>
<if test="deleteFlag != null">
delete_flag = #{deleteFlag},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where id = #{id}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
from tab_haoban_potential_customer
where id = #{id}
</delete>
</mapper>
package com.gic.haoban.manage.web.controller.content;
import com.gic.api.base.commons.Page;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.manage.web.qo.content.InteractRecordQO;
import com.gic.haoban.manage.web.vo.content.InteractRecordVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 好办-互动记录
**/
@Slf4j
@RestController
@RequestMapping(path = "/interact/record")
public class InteractRecordController {
/**
* 会员互动记录列表
* @return
*/
@RequestMapping(path = "/list")
public RestResponse<Page<InteractRecordVO>> queryInteractRecordList(@RequestBody InteractRecordQO interactRecordQO){
return RestResponse.successResult();
}
}
package com.gic.haoban.manage.web.controller.content;
import com.gic.api.base.commons.Page;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.haoban.manage.web.qo.content.potential.PotentialCustomerMarkRecordVO;
import com.gic.haoban.manage.web.qo.content.potential.PotentialCustomerQO;
import com.gic.haoban.manage.web.vo.content.potential.PotentialCustomerVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* 好办小程序-销售线索
**/
@Slf4j
@RestController
@RequestMapping(path = "/potential/customer")
public class PotentialCustomerController {
/**
* 销售线索列表
* @param potentialCustomerQO
* @return
*/
@RequestMapping(path = "/list")
public RestResponse<Page<PotentialCustomerVO>> queryPotentialCustomerList(@RequestBody PotentialCustomerQO potentialCustomerQO){
return RestResponse.successResult();
}
/**
* 标记销售线索为已看
* @return
*/
@RequestMapping(path = "/mark/record/see")
public RestResponse<?> markRecordSee(@RequestBody PotentialCustomerMarkRecordVO potentialCustomerMarkRecordVO){
return RestResponse.successResult();
}
/**
* 标记客户为星标客户
* @return
*/
@RequestMapping(path = "/mark/member/star")
public RestResponse<?> markMemberStar(@RequestBody PotentialCustomerMarkRecordVO potentialCustomerMarkRecordVO){
return RestResponse.successResult();
}
}
package com.gic.haoban.manage.web.qo.content;
import com.gic.haoban.base.api.common.BasePageInfo;
import lombok.Data;
/**
* @Author MUSI
* @Date 2023/3/28 10:36 AM
* @Description
* @Version
**/
@Data
public class InteractRecordQO extends BasePageInfo {
/**
* 企业id
*/
private String enterpriseId;
/**
* 微信企业id
*/
private String wxEnterpriseId;
/**
* 会员id
*/
private String memberId;
/**
* 导购id
*/
private String clerkId;
}
package com.gic.haoban.manage.web.qo.content.potential;
import com.gic.haoban.base.api.common.BasePageInfo;
import lombok.Data;
/**
* @Author MUSI
* @Date 2023/3/28 10:05 AM
* @Description
* @Version
**/
@Data
public class PotentialCustomerMarkRecordVO extends BasePageInfo {
private static final long serialVersionUID = -5811402077258900090L;
/**
* 企业id
*/
private String enterpriseId;
/**
* 微信企业id
*/
private String wxEnterpriseId;
/**
* 会员id
*/
private String memberId;
/**
* 导购id
*/
private String clerkId;
/**
* 导购是否看过
* 1已看过
* 0未看过
*/
private Integer seeFlag;
/**
* 是否导购星标客户
* 1 与导购是星标 0 取消星标
*/
private Integer starFlag;
}
package com.gic.haoban.manage.web.qo.content.potential;
import com.gic.haoban.base.api.common.BasePageInfo;
import lombok.Data;
/**
* @Author MUSI
* @Date 2023/3/28 10:05 AM
* @Description
* @Version
**/
@Data
public class PotentialCustomerQO extends BasePageInfo {
private static final long serialVersionUID = -5811402077258900090L;
/**
* 企业id
*/
private String enterpriseId;
/**
* 微信企业id
*/
private String wxEnterpriseId;
/**
* 导购id
*/
private String clerkId;
/**
* 搜索字段
*/
private String search;
/**
* 导购是否看过
* 1已看过
* 0未看过
*/
private Integer seeFlag;
/**
* 是否导购星标客户
* 1 与导购是星标
*/
private Integer starFlag;
/**
* 导购与会员是否 企微好友
* 1 是好友; 0不是
*/
private Integer hasMemberRelation;
/**
* 会员是否有过成交
* 1 有过成交
*/
private Integer dealRecord;
/**
* 1 会员有手机号
*/
private Integer hasMemberPhone;
}
package com.gic.haoban.manage.web.vo.content;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @Author MUSI
* @Date 2023/3/28 10:37 AM
* @Description
* @Version
**/
@Data
public class InteractRecordVO implements Serializable {
/**
* 记录描述
* 通过XXX访问XXXX
*/
private String recordDesc;
/**
* 第几次访问
*/
private Integer times;
/**
* 停留时长 单位秒
*/
private Integer durationTime;
/**
* 记录生成时间
*/
private Date createTime;
/**
* 记录事件类型
* 1浏览素材;2 查看商品; 3 购买商品
*/
private Integer eventType;
/**
* 素材信息
* null 代表素材被删除
*/
private ContentMaterialInfoVO contentMaterialInfoVO;
/**
* 记录关联的商品信息
*/
private List<SimpleGoodsInfoVO> relationGoodsInfo;
/**
* 订单信息
*/
private OrderInfo orderInfo;
@Data
public static class OrderInfo {
/**
* 订单编号
*/
private String orderNumber;
/**
* 订单创建时间
*/
private Date orderCreateTime;
/**
* 订单商品项总数
*/
private Integer orderTotalNum;
/**
* 订单应付
*/
private BigDecimal orderPay;
/**
* 订单实付
*/
private BigDecimal realPay;
/**
* 订单商品信息
*/
private List<OrderItemGoodsInfo> orderItemGoodsInfos;
}
@Data
public static class OrderItemGoodsInfo {
/**
* 商品名称
*/
private String goodsName;
/**
* 商品主图
*/
private String goodsImageUrl;
/**
* 商品货号
*/
private String goodsCode;
/**
* 商品规格
*/
private String goodsNorm;
/**
* 订单项数量
*/
private Integer orderNum;
/**
* 订单项单价
*/
private BigDecimal orderItemPrice;
}
}
package com.gic.haoban.manage.web.vo.content;
import lombok.Data;
import java.io.Serializable;
/**
......@@ -8,6 +10,7 @@ import java.io.Serializable;
* @Description
* @Version
**/
@Data
public class SimpleGoodsInfoVO implements Serializable {
private static final long serialVersionUID = 55351872009970484L;
......@@ -50,68 +53,12 @@ public class SimpleGoodsInfoVO implements Serializable {
*/
private String salePrice;
public String getGoodsId() {
return goodsId;
}
public void setGoodsId(String goodsId) {
this.goodsId = goodsId;
}
public String getGoodsCode() {
return goodsCode;
}
public void setGoodsCode(String goodsCode) {
this.goodsCode = goodsCode;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public Integer getSpuStock() {
return spuStock;
}
public void setSpuStock(Integer spuStock) {
this.spuStock = spuStock;
}
public String getGoodsImg() {
return goodsImg;
}
public void setGoodsImg(String goodsImg) {
this.goodsImg = goodsImg;
}
public String getGoodsCategory() {
return goodsCategory;
}
public void setGoodsCategory(String goodsCategory) {
this.goodsCategory = goodsCategory;
}
public String getBrandName() {
return brandName;
}
public void setBrandName(String brandName) {
this.brandName = brandName;
}
public String getSalePrice() {
return salePrice;
}
/**
* 商品状态
* 0 商品被删除
*
*/
private Integer status;
public void setSalePrice(String salePrice) {
this.salePrice = salePrice;
}
}
package com.gic.haoban.manage.web.vo.content.potential;
import com.gic.haoban.manage.web.vo.content.ContentMaterialInfoVO;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
/**
* @Author MUSI
* @Date 2023/3/28 9:53 AM
* @Description
* @Version
**/
@Data
public class PotentialCustomerVO implements Serializable {
/**
* 会员昵称
*/
private String memberName;
/**
* 会员头像
*/
private String memberImageUrl;
/**
* 会员id
*/
private String memberId;
/**
* 最后访问时间
*/
private Date lastAccessTime;
/**
* 会员手机号
*/
private String memberPhone;
/**
* 是否导购星标客户
* 1 是; 0否
*/
private Integer starFlag;
/**
* 导购是否查看
* 1 已查看 0 未查看;
*/
private Integer seeFlag;
/**
* 销售线索描述
* 通过XXX访问XXX
*/
private String desc;
/**
* 最近30天访问次数
*/
private Integer visitNum;
/**
* 导购与会员是否有好友
* 1 是好友; 0不是
*/
private Integer hasMemberRelation;
/**
* 会员全渠道成交
* 1 有过成交; 0 没有成交
*/
private Integer dealRecord;
/**
* 素材信息
*/
private ContentMaterialInfoVO contentMaterialInfoVO;
/**
* 第几次访问
*/
private Integer times;
/**
* 停留时长 单位秒
*/
private Integer durationTime;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment