CRM项目后端映射线索备注信息返回前台接收------CRM项目

package com.alatus.service.impl;

import com.alatus.constant.Constants;
import com.alatus.mapper.TClueRemarkMapper;
import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.alatus.service.ClueRemarkService;
import com.alatus.util.JWTUtils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ClueRemarkServiceImpl implements ClueRemarkService {
    @Resource
    private TClueRemarkMapper tClueRemarkMapper;
    @Override
    public int saveClueRemark(ClueRemarkQuery clueRemarkQuery) {
        TClueRemark tClueRemark = new TClueRemark();
        tClueRemark.setCreateBy(JWTUtils.parseUserFromJWT(clueRemarkQuery.getToken()).getId());
        tClueRemark.setCreateTime(new Date());
        BeanUtils.copyProperties(clueRemarkQuery,tClueRemark);
        return tClueRemarkMapper.insert(tClueRemark);
    }

    @Override
    public PageInfo<TClueRemark> getClueRemarkByPage(Integer current, ClueRemarkQuery clueRemarkQuery) {
//        设置PageHelper和分页情况
        PageHelper.startPage(current, Constants.PAGE_SIZE);
        List<TClueRemark> list = tClueRemarkMapper.selectClueRemarkByPage(clueRemarkQuery);
        PageInfo<TClueRemark> info = new PageInfo<>(list);
        return info;
    }
}
package com.alatus.service.impl;

import com.alatus.constant.Constants;
import com.alatus.mapper.TClueRemarkMapper;
import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.alatus.service.ClueRemarkService;
import com.alatus.util.JWTUtils;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class ClueRemarkServiceImpl implements ClueRemarkService {
    @Resource
    private TClueRemarkMapper tClueRemarkMapper;
    @Override
    public int saveClueRemark(ClueRemarkQuery clueRemarkQuery) {
        TClueRemark tClueRemark = new TClueRemark();
        tClueRemark.setCreateBy(JWTUtils.parseUserFromJWT(clueRemarkQuery.getToken()).getId());
        tClueRemark.setCreateTime(new Date());
        BeanUtils.copyProperties(clueRemarkQuery,tClueRemark);
        return tClueRemarkMapper.insert(tClueRemark);
    }

    @Override
    public PageInfo<TClueRemark> getClueRemarkByPage(Integer current, ClueRemarkQuery clueRemarkQuery) {
//        设置PageHelper和分页情况
        PageHelper.startPage(current, Constants.PAGE_SIZE);
        List<TClueRemark> list = tClueRemarkMapper.selectClueRemarkByPage(clueRemarkQuery);
        PageInfo<TClueRemark> info = new PageInfo<>(list);
        return info;
    }
}
package com.alatus.service;

import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.github.pagehelper.PageInfo;

public interface ClueRemarkService {
    int saveClueRemark(ClueRemarkQuery clueRemarkQuery);

    PageInfo<TClueRemark> getClueRemarkByPage(Integer current, ClueRemarkQuery clueRemarkQuery);
}
package com.alatus.service;

import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.github.pagehelper.PageInfo;

public interface ClueRemarkService {
    int saveClueRemark(ClueRemarkQuery clueRemarkQuery);

    PageInfo<TClueRemark> getClueRemarkByPage(Integer current, ClueRemarkQuery clueRemarkQuery);
}
package com.alatus.web;

import com.alatus.constant.Constants;
import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.alatus.result.Result;
import com.alatus.service.ClueRemarkService;
import com.github.pagehelper.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
public class ClueRemarkController {
    @Resource
    private ClueRemarkService clueRemarkService;

    @PostMapping(value = "/api/clue/remark/add")
    public Result addClueRemark(@RequestBody ClueRemarkQuery clueRemarkQuery, @RequestHeader(value = Constants.TOKEN_NAME)String token){
        clueRemarkQuery.setToken(token);
        int save = clueRemarkService.saveClueRemark(clueRemarkQuery);
        return save >= 1 ? Result.OK() : Result.FAIL();
    }
    @GetMapping(value = "/api/clue/remark/page")
    public Result getClueRemarkPage(@RequestParam(value = Constants.CURRENT,required = false)Integer current, @RequestParam(value = Constants.ID)Integer clueId){
        if(current == null){
            current = 1;
        }
        ClueRemarkQuery clueRemarkQuery = new ClueRemarkQuery();
        clueRemarkQuery.setClueId(clueId);
        PageInfo<TClueRemark> remarkList = clueRemarkService.getClueRemarkByPage(current,clueRemarkQuery);
        return Result.OK(remarkList);
    }
}
package com.alatus.web;

import com.alatus.constant.Constants;
import com.alatus.model.TActivityRemark;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;
import com.alatus.result.Result;
import com.alatus.service.ClueRemarkService;
import com.github.pagehelper.PageInfo;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

@RestController
public class ClueRemarkController {
    @Resource
    private ClueRemarkService clueRemarkService;

    @PostMapping(value = "/api/clue/remark/add")
    public Result addClueRemark(@RequestBody ClueRemarkQuery clueRemarkQuery, @RequestHeader(value = Constants.TOKEN_NAME)String token){
        clueRemarkQuery.setToken(token);
        int save = clueRemarkService.saveClueRemark(clueRemarkQuery);
        return save >= 1 ? Result.OK() : Result.FAIL();
    }
    @GetMapping(value = "/api/clue/remark/page")
    public Result getClueRemarkPage(@RequestParam(value = Constants.CURRENT,required = false)Integer current, @RequestParam(value = Constants.ID)Integer clueId){
        if(current == null){
            current = 1;
        }
        ClueRemarkQuery clueRemarkQuery = new ClueRemarkQuery();
        clueRemarkQuery.setClueId(clueId);
        PageInfo<TClueRemark> remarkList = clueRemarkService.getClueRemarkByPage(current,clueRemarkQuery);
        return Result.OK(remarkList);
    }
}
package com.alatus.mapper;

import com.alatus.commons.DataScope;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;

import java.util.List;

public interface TClueRemarkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TClueRemark record);

    int insertSelective(TClueRemark record);

    TClueRemark selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClueRemark record);

    int updateByPrimaryKey(TClueRemark record);

    @DataScope(tableAlias = "tcr",tableField = "create_by")
    List<TClueRemark> selectClueRemarkByPage(ClueRemarkQuery clueRemarkQuery);
}
package com.alatus.mapper;

import com.alatus.commons.DataScope;
import com.alatus.model.TClueRemark;
import com.alatus.query.ClueRemarkQuery;

import java.util.List;

public interface TClueRemarkMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TClueRemark record);

    int insertSelective(TClueRemark record);

    TClueRemark selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TClueRemark record);

    int updateByPrimaryKey(TClueRemark record);

    @DataScope(tableAlias = "tcr",tableField = "create_by")
    List<TClueRemark> selectClueRemarkByPage(ClueRemarkQuery clueRemarkQuery);
}
package com.alatus.query;

import lombok.Data;

@Data
public class ClueRemarkQuery extends BaseQuery{

    private Integer clueId;

    private String noteContent;

    private Integer noteWay;
}
package com.alatus.query;

import lombok.Data;

@Data
public class ClueRemarkQuery extends BaseQuery{

    private Integer clueId;

    private String noteContent;

    private Integer noteWay;
}
<?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.alatus.mapper.TClueRemarkMapper">
  <resultMap id="BaseResultMap" type="com.alatus.model.TClueRemark">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="clue_id" jdbcType="INTEGER" property="clueId" />
    <result column="note_way" jdbcType="INTEGER" property="noteWay" />
    <result column="note_content" jdbcType="VARCHAR" property="noteContent" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="INTEGER" property="createBy" />
    <result column="edit_time" jdbcType="TIMESTAMP" property="editTime" />
    <result column="edit_by" jdbcType="INTEGER" property="editBy" />
    <result column="deleted" jdbcType="INTEGER" property="deleted" />
  </resultMap>


  <resultMap id="ClueRemarkResultMap" type="com.alatus.model.TClueRemark">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="clue_id" jdbcType="INTEGER" property="clueId" />
    <result column="note_way" jdbcType="INTEGER" property="noteWay" />
    <result column="note_content" jdbcType="VARCHAR" property="noteContent" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="INTEGER" property="createBy" />
    <result column="edit_time" jdbcType="TIMESTAMP" property="editTime" />
    <result column="edit_by" jdbcType="INTEGER" property="editBy" />
    <result column="deleted" jdbcType="INTEGER" property="deleted" />
    <!--一对一关联查询-->
    <association property="createByDO" javaType="com.alatus.model.TUser">
      <id column="createById" jdbcType="INTEGER" property="id" />
      <result column="createByName" jdbcType="INTEGER" property="name" />
    </association>
    <!--一对一关联查询-->
    <association property="editByDO" javaType="com.alatus.model.TUser">
      <id column="editById" jdbcType="INTEGER" property="id" />
      <result column="editByName" jdbcType="INTEGER" property="name" />
    </association>
    <!--一对一关联查询-->
    <association property="noteWayDO" javaType="com.alatus.model.TDicValue">
      <id column="noteWayId" jdbcType="INTEGER" property="id" />
      <result column="noteWayName" jdbcType="INTEGER" property="typeValue" />
    </association>
  </resultMap>


  <sql id="Base_Column_List">
    id, clue_id, note_way, note_content, create_time, create_by, edit_time, edit_by, 
    deleted
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_clue_remark
    where id = #{id,jdbcType=INTEGER}
  </select>


  <select id="selectClueRemarkByPage" parameterType="java.lang.Integer" resultMap="ClueRemarkResultMap">
    select
    tcr.*,
    tu1.id createById, tu1.name createByName,
    tu2.id editById, tu2.name editByName,
    tdv.id noteWayId, tdv.type_value noteWayName
    from t_clue_remark tcr left join t_user tu1 on tcr.create_by  = tu1.id
    left join t_user tu2 on tcr.edit_by  = tu2.id
    left join t_dic_value tdv on tcr.note_way = tdv.id
    <where>
      tcr.clue_id = #{clueId, jdbcType=INTEGER} and (tcr.deleted is null or tcr.deleted = 0)
      ${filterSQL}
    </where>
  </select>


    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_clue_remark
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.alatus.model.TClueRemark" useGeneratedKeys="true">
    insert into t_clue_remark (clue_id, note_way, note_content, 
      create_time, create_by, edit_time, 
      edit_by, deleted)
    values (#{clueId,jdbcType=INTEGER}, #{noteWay,jdbcType=INTEGER}, #{noteContent,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, 
      #{editBy,jdbcType=INTEGER}, #{deleted,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.alatus.model.TClueRemark" useGeneratedKeys="true">
    insert into t_clue_remark
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="clueId != null">
        clue_id,
      </if>
      <if test="noteWay != null">
        note_way,
      </if>
      <if test="noteContent != null">
        note_content,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="editTime != null">
        edit_time,
      </if>
      <if test="editBy != null">
        edit_by,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="clueId != null">
        #{clueId,jdbcType=INTEGER},
      </if>
      <if test="noteWay != null">
        #{noteWay,jdbcType=INTEGER},
      </if>
      <if test="noteContent != null">
        #{noteContent,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=INTEGER},
      </if>
      <if test="editTime != null">
        #{editTime,jdbcType=TIMESTAMP},
      </if>
      <if test="editBy != null">
        #{editBy,jdbcType=INTEGER},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.alatus.model.TClueRemark">
    update t_clue_remark
    <set>
      <if test="clueId != null">
        clue_id = #{clueId,jdbcType=INTEGER},
      </if>
      <if test="noteWay != null">
        note_way = #{noteWay,jdbcType=INTEGER},
      </if>
      <if test="noteContent != null">
        note_content = #{noteContent,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=INTEGER},
      </if>
      <if test="editTime != null">
        edit_time = #{editTime,jdbcType=TIMESTAMP},
      </if>
      <if test="editBy != null">
        edit_by = #{editBy,jdbcType=INTEGER},
      </if>
      <if test="deleted != null">
        deleted = #{deleted,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.alatus.model.TClueRemark">
    update t_clue_remark
    set clue_id = #{clueId,jdbcType=INTEGER},
      note_way = #{noteWay,jdbcType=INTEGER},
      note_content = #{noteContent,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=INTEGER},
      edit_time = #{editTime,jdbcType=TIMESTAMP},
      edit_by = #{editBy,jdbcType=INTEGER},
      deleted = #{deleted,jdbcType=INTEGER}
    where id = #{id,jdbcType=INTEGER}
  </update>
</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.alatus.mapper.TClueRemarkMapper">
  <resultMap id="BaseResultMap" type="com.alatus.model.TClueRemark">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="clue_id" jdbcType="INTEGER" property="clueId" />
    <result column="note_way" jdbcType="INTEGER" property="noteWay" />
    <result column="note_content" jdbcType="VARCHAR" property="noteContent" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="INTEGER" property="createBy" />
    <result column="edit_time" jdbcType="TIMESTAMP" property="editTime" />
    <result column="edit_by" jdbcType="INTEGER" property="editBy" />
    <result column="deleted" jdbcType="INTEGER" property="deleted" />
  </resultMap>


  <resultMap id="ClueRemarkResultMap" type="com.alatus.model.TClueRemark">
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="clue_id" jdbcType="INTEGER" property="clueId" />
    <result column="note_way" jdbcType="INTEGER" property="noteWay" />
    <result column="note_content" jdbcType="VARCHAR" property="noteContent" />
    <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
    <result column="create_by" jdbcType="INTEGER" property="createBy" />
    <result column="edit_time" jdbcType="TIMESTAMP" property="editTime" />
    <result column="edit_by" jdbcType="INTEGER" property="editBy" />
    <result column="deleted" jdbcType="INTEGER" property="deleted" />
    <!--一对一关联查询-->
    <association property="createByDO" javaType="com.alatus.model.TUser">
      <id column="createById" jdbcType="INTEGER" property="id" />
      <result column="createByName" jdbcType="INTEGER" property="name" />
    </association>
    <!--一对一关联查询-->
    <association property="editByDO" javaType="com.alatus.model.TUser">
      <id column="editById" jdbcType="INTEGER" property="id" />
      <result column="editByName" jdbcType="INTEGER" property="name" />
    </association>
    <!--一对一关联查询-->
    <association property="noteWayDO" javaType="com.alatus.model.TDicValue">
      <id column="noteWayId" jdbcType="INTEGER" property="id" />
      <result column="noteWayName" jdbcType="INTEGER" property="typeValue" />
    </association>
  </resultMap>


  <sql id="Base_Column_List">
    id, clue_id, note_way, note_content, create_time, create_by, edit_time, edit_by, 
    deleted
  </sql>
  <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
    select 
    <include refid="Base_Column_List" />
    from t_clue_remark
    where id = #{id,jdbcType=INTEGER}
  </select>


  <select id="selectClueRemarkByPage" parameterType="java.lang.Integer" resultMap="ClueRemarkResultMap">
    select
    tcr.*,
    tu1.id createById, tu1.name createByName,
    tu2.id editById, tu2.name editByName,
    tdv.id noteWayId, tdv.type_value noteWayName
    from t_clue_remark tcr left join t_user tu1 on tcr.create_by  = tu1.id
    left join t_user tu2 on tcr.edit_by  = tu2.id
    left join t_dic_value tdv on tcr.note_way = tdv.id
    <where>
      tcr.clue_id = #{clueId, jdbcType=INTEGER} and (tcr.deleted is null or tcr.deleted = 0)
      ${filterSQL}
    </where>
  </select>


    <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
    delete from t_clue_remark
    where id = #{id,jdbcType=INTEGER}
  </delete>
  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.alatus.model.TClueRemark" useGeneratedKeys="true">
    insert into t_clue_remark (clue_id, note_way, note_content, 
      create_time, create_by, edit_time, 
      edit_by, deleted)
    values (#{clueId,jdbcType=INTEGER}, #{noteWay,jdbcType=INTEGER}, #{noteContent,jdbcType=VARCHAR}, 
      #{createTime,jdbcType=TIMESTAMP}, #{createBy,jdbcType=INTEGER}, #{editTime,jdbcType=TIMESTAMP}, 
      #{editBy,jdbcType=INTEGER}, #{deleted,jdbcType=INTEGER})
  </insert>
  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.alatus.model.TClueRemark" useGeneratedKeys="true">
    insert into t_clue_remark
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="clueId != null">
        clue_id,
      </if>
      <if test="noteWay != null">
        note_way,
      </if>
      <if test="noteContent != null">
        note_content,
      </if>
      <if test="createTime != null">
        create_time,
      </if>
      <if test="createBy != null">
        create_by,
      </if>
      <if test="editTime != null">
        edit_time,
      </if>
      <if test="editBy != null">
        edit_by,
      </if>
      <if test="deleted != null">
        deleted,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="clueId != null">
        #{clueId,jdbcType=INTEGER},
      </if>
      <if test="noteWay != null">
        #{noteWay,jdbcType=INTEGER},
      </if>
      <if test="noteContent != null">
        #{noteContent,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        #{createBy,jdbcType=INTEGER},
      </if>
      <if test="editTime != null">
        #{editTime,jdbcType=TIMESTAMP},
      </if>
      <if test="editBy != null">
        #{editBy,jdbcType=INTEGER},
      </if>
      <if test="deleted != null">
        #{deleted,jdbcType=INTEGER},
      </if>
    </trim>
  </insert>
  <update id="updateByPrimaryKeySelective" parameterType="com.alatus.model.TClueRemark">
    update t_clue_remark
    <set>
      <if test="clueId != null">
        clue_id = #{clueId,jdbcType=INTEGER},
      </if>
      <if test="noteWay != null">
        note_way = #{noteWay,jdbcType=INTEGER},
      </if>
      <if test="noteContent != null">
        note_content = #{noteContent,jdbcType=VARCHAR},
      </if>
      <if test="createTime != null">
        create_time = #{createTime,jdbcType=TIMESTAMP},
      </if>
      <if test="createBy != null">
        create_by = #{createBy,jdbcType=INTEGER},
      </if>
      <if test="editTime != null">
        edit_time = #{editTime,jdbcType=TIMESTAMP},
      </if>
      <if test="editBy != null">
        edit_by = #{editBy,jdbcType=INTEGER},
      </if>
      <if test="deleted != null">
        deleted = #{deleted,jdbcType=INTEGER},
      </if>
    </set>
    where id = #{id,jdbcType=INTEGER}
  </update>
  <update id="updateByPrimaryKey" parameterType="com.alatus.model.TClueRemark">
    update t_clue_remark
    set clue_id = #{clueId,jdbcType=INTEGER},
      note_way = #{noteWay,jdbcType=INTEGER},
      note_content = #{noteContent,jdbcType=VARCHAR},
      create_time = #{createTime,jdbcType=TIMESTAMP},
      create_by = #{createBy,jdbcType=INTEGER},
      edit_time = #{editTime,jdbcType=TIMESTAMP},
      edit_by = #{editBy,jdbcType=INTEGER},
      deleted = #{deleted,jdbcType=INTEGER}
    where id = #{id,jdbcType=INTEGER}
  </update>
</mapper>
package com.alatus.model;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 线索跟踪记录表
 * t_clue_remark
 */
@Data
public class TClueRemark implements Serializable {
    /**
     * 主键,自动增长,线索备注ID
     */
    private Integer id;

    /**
     * 线索ID
     */
    private Integer clueId;

    /**
     * 跟踪方式
     */
    private Integer noteWay;

    /**
     * 跟踪内容
     */
    private String noteContent;

    /**
     * 跟踪时间
     */
    private Date createTime;

    /**
     * 跟踪人
     */
    private Integer createBy;

    /**
     * 编辑时间
     */
    private Date editTime;

    /**
     * 编辑人
     */
    private Integer editBy;

    /**
     * 删除状态(0正常,1删除)
     */
    private Integer deleted;

    private static final long serialVersionUID = 1L;

    private TUser createByDO;
    private TUser editByDO;
    private TDicValue noteWayDO;
}
package com.alatus.model;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 线索跟踪记录表
 * t_clue_remark
 */
@Data
public class TClueRemark implements Serializable {
    /**
     * 主键,自动增长,线索备注ID
     */
    private Integer id;

    /**
     * 线索ID
     */
    private Integer clueId;

    /**
     * 跟踪方式
     */
    private Integer noteWay;

    /**
     * 跟踪内容
     */
    private String noteContent;

    /**
     * 跟踪时间
     */
    private Date createTime;

    /**
     * 跟踪人
     */
    private Integer createBy;

    /**
     * 编辑时间
     */
    private Date editTime;

    /**
     * 编辑人
     */
    private Integer editBy;

    /**
     * 删除状态(0正常,1删除)
     */
    private Integer deleted;

    private static final long serialVersionUID = 1L;

    private TUser createByDO;
    private TUser editByDO;
    private TDicValue noteWayDO;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值