Commit b810c2db by jianan

可回溯录频1

parent 3383635e
package com.yd.api.customer;
import com.yd.api.customer.service.CustomerTrackVideoService;
import com.yd.api.customer.vo.trackvideo.AddCustomerTrackVideoRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryDetailsByIdResponseVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListResponseVO;
import com.yd.api.result.CommonResultResponseVO;
import com.yd.api.result.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@RestController
@RequestMapping("/customerTrackVideo")
public class CustomerTrackVideoController {
@Autowired
private CustomerTrackVideoService customerTrackVideoService;
/**
* 保存
* @param requestVO
* @param dataFile
* @return
*/
@RequestMapping("/add")
public Object add(AddCustomerTrackVideoRequestVO requestVO,
@RequestParam(value = "dataFile") MultipartFile dataFile){
JsonResult result = new JsonResult();
CommonResultResponseVO responseVO = customerTrackVideoService.add(requestVO, dataFile);
result.addResult(responseVO);
result.setData(responseVO);
return result;
}
@RequestMapping("/queryTrackList")
public Object queryTrackList(@RequestBody QueryTrackListRequestVO requestVO){
JsonResult result = new JsonResult();
QueryTrackListResponseVO responseVO = customerTrackVideoService.queryTrackList(requestVO);
result.addResult(responseVO);
result.setData(responseVO);
return result;
}
@RequestMapping("/queryDetailsById/{id}")
public Object queryDetailsById(@PathVariable Long id){
JsonResult result = new JsonResult();
QueryDetailsByIdResponseVO responseVO = customerTrackVideoService.queryDetailsById(id);
result.addResult(responseVO);
result.setData(responseVO);
return result;
}
}
\ No newline at end of file
package com.yd.api.customer.service;
import com.yd.api.customer.vo.trackvideo.AddCustomerTrackVideoRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryDetailsByIdResponseVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListResponseVO;
import com.yd.api.result.CommonResultResponseVO;
import org.springframework.web.multipart.MultipartFile;
public interface CustomerTrackVideoService {
CommonResultResponseVO add(AddCustomerTrackVideoRequestVO requestVO, MultipartFile dataFile);
QueryTrackListResponseVO queryTrackList(QueryTrackListRequestVO requestVO);
QueryDetailsByIdResponseVO queryDetailsById(Long id);
}
package com.yd.api.customer.service.impl;
import com.yd.api.customer.service.CustomerTrackVideoService;
import com.yd.api.customer.vo.trackvideo.AddCustomerTrackVideoRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryDetailsByIdResponseVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListRequestVO;
import com.yd.api.customer.vo.trackvideo.QueryTrackListResponseVO;
import com.yd.api.result.CommonResult;
import com.yd.api.result.CommonResultResponseVO;
import com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo;
import com.yd.dal.mapper.customer.trackvideo.AgAclCustomerBehaviorTrackVideoMapper;
import com.yd.rmi.ali.oss.service.OssService;
import com.yd.util.config.ZHBErrorConfig;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Service("CustomerTrackVideoService")
public class CustomerTrackVideoServiceImpl implements CustomerTrackVideoService {
@Autowired
private OssService ossService;
@Autowired
private AgAclCustomerBehaviorTrackVideoMapper customerBehaviorTrackVideoMapper;
@Override
public CommonResultResponseVO add(AddCustomerTrackVideoRequestVO requestVO, MultipartFile dataFile) {
CommonResultResponseVO resp = new CommonResultResponseVO();
AgAclCustomerBehaviorTrackVideo trackVideo = new AgAclCustomerBehaviorTrackVideo();
BeanUtils.copyProperties(requestVO, trackVideo);
try {
// 获取文件
String token = requestVO.getToken();
String shortToken = token.substring(token.length() - 10);
String prefix = "customerBehaviorTrackVideo/" + shortToken + "/";
SimpleDateFormat sdf = new SimpleDateFormat("yyMMddHHmmssSSS");
String filename = sdf.format(new Date());
String ossKey = prefix + filename;
// 将txt上传到oss
String fileOssPath = ossService.putFileToOss(null, ossKey, dataFile.getInputStream());
// 保存入库
trackVideo.setDataOssPath(fileOssPath);
trackVideo.setIsActive(1);
trackVideo.setCreatedAt(new Date());
trackVideo.setCreatedBy(-1L);
trackVideo.setUpdatedAt(new Date());
trackVideo.setUpdatedBy(-1L);
customerBehaviorTrackVideoMapper.insert(trackVideo);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
} catch (Exception e) {
e.printStackTrace();
resp.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("800001")));
}
return resp;
}
@Override
public QueryTrackListResponseVO queryTrackList(QueryTrackListRequestVO requestVO) {
QueryTrackListResponseVO resp = new QueryTrackListResponseVO();
try {
List<AgAclCustomerBehaviorTrackVideo> list = customerBehaviorTrackVideoMapper.selectByRecord(requestVO);
resp.setList(list);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
} catch (Exception e) {
e.printStackTrace();
resp.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("800001")));
}
return resp;
}
@Override
public QueryDetailsByIdResponseVO queryDetailsById(Long id) {
QueryDetailsByIdResponseVO resp = new QueryDetailsByIdResponseVO();
try {
AgAclCustomerBehaviorTrackVideo trackVideo = customerBehaviorTrackVideoMapper.selectByPrimaryKey(id);
resp.setTrackVideo(trackVideo);
resp.setCommonResult(new CommonResult(true, ZHBErrorConfig.getErrorInfo("800000")));
} catch (Exception e) {
e.printStackTrace();
resp.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("800001")));
}
return resp;
}
}
package com.yd.api.customer.vo.trackvideo;
import lombok.Data;
@Data
public class AddCustomerTrackVideoRequestVO {
/**
* 规则层级 1-insurer 2-product 3-plan
*/
private Integer configLevel;
/**
* 产品ID, FK ag_product.id
*/
private Long productId;
/**
* 方案ID
*/
private Long planId;
/**
* order#
*/
private String orderNo;
/**
* token
*/
private String token;
/**
* 1.保费试算 2.健康告知 3.订单确认 4.支付成功
*/
private Integer pageType;
}
package com.yd.api.customer.vo.trackvideo;
import com.yd.api.result.CommonResult;
import com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo;
import lombok.Data;
@Data
public class QueryDetailsByIdResponseVO {
private CommonResult commonResult;
private AgAclCustomerBehaviorTrackVideo trackVideo;
}
package com.yd.api.customer.vo.trackvideo;
import lombok.Data;
@Data
public class QueryTrackListRequestVO {
/**
* 规则层级 1-insurer 2-product 3-plan
*/
private Integer configLevel;
/**
* 产品ID, FK ag_product.id
*/
private Long productId;
/**
* 方案ID
*/
private Long planId;
/**
* order#
*/
private String orderNo;
/**
* token
*/
private String token;
/**
* 1.保费试算 2.健康告知 3.订单确认 4.支付成功
*/
private Integer pageType;
}
package com.yd.api.customer.vo.trackvideo;
import com.yd.api.result.CommonResult;
import com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo;
import lombok.Data;
import java.util.List;
@Data
public class QueryTrackListResponseVO {
private CommonResult commonResult;
private List<AgAclCustomerBehaviorTrackVideo> list;
}
package com.yd.api.result;
import lombok.Data;
@Data
public class CommonResultResponseVO {
private CommonResult commonResult;
}
package com.yd.dal.entity.customer.trackvideo;
import java.io.Serializable;
import java.util.Date;
/**
* ag_acl_customer_behavior_track_video
* @author
*/
public class AgAclCustomerBehaviorTrackVideo implements Serializable {
/**
* serial id
*/
private Long id;
/**
* 规则层级 1-insurer 2-product 3-plan
*/
private Integer configLevel;
/**
* 产品ID, FK ag_product.id
*/
private Long productId;
/**
* 方案ID
*/
private Long planId;
/**
* order#
*/
private String orderNo;
/**
* token
*/
private String token;
/**
* 1.保费试算 2.健康告知 3.订单确认 4.支付成功
*/
private Integer pageType;
/**
* 数据文件oss地址
*/
private String dataOssPath;
/**
* 1=active 0=inactive
*/
private Integer isActive;
/**
* 备注
*/
private String remark;
/**
* 创建时间
*/
private Date createdAt;
/**
* FK ag_acl_user.id
*/
private Long createdBy;
/**
* 修改时间
*/
private Date updatedAt;
/**
* FK ag_acl_user.id
*/
private Long updatedBy;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Integer getConfigLevel() {
return configLevel;
}
public void setConfigLevel(Integer configLevel) {
this.configLevel = configLevel;
}
public Long getProductId() {
return productId;
}
public void setProductId(Long productId) {
this.productId = productId;
}
public Long getPlanId() {
return planId;
}
public void setPlanId(Long planId) {
this.planId = planId;
}
public String getOrderNo() {
return orderNo;
}
public void setOrderNo(String orderNo) {
this.orderNo = orderNo;
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public Integer getPageType() {
return pageType;
}
public void setPageType(Integer pageType) {
this.pageType = pageType;
}
public String getDataOssPath() {
return dataOssPath;
}
public void setDataOssPath(String dataOssPath) {
this.dataOssPath = dataOssPath;
}
public Integer getIsActive() {
return isActive;
}
public void setIsActive(Integer isActive) {
this.isActive = isActive;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark;
}
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public Long getCreatedBy() {
return createdBy;
}
public void setCreatedBy(Long createdBy) {
this.createdBy = createdBy;
}
public Date getUpdatedAt() {
return updatedAt;
}
public void setUpdatedAt(Date updatedAt) {
this.updatedAt = updatedAt;
}
public Long getUpdatedBy() {
return updatedBy;
}
public void setUpdatedBy(Long updatedBy) {
this.updatedBy = updatedBy;
}
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
AgAclCustomerBehaviorTrackVideo other = (AgAclCustomerBehaviorTrackVideo) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getConfigLevel() == null ? other.getConfigLevel() == null : this.getConfigLevel().equals(other.getConfigLevel()))
&& (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId()))
&& (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId()))
&& (this.getOrderNo() == null ? other.getOrderNo() == null : this.getOrderNo().equals(other.getOrderNo()))
&& (this.getToken() == null ? other.getToken() == null : this.getToken().equals(other.getToken()))
&& (this.getPageType() == null ? other.getPageType() == null : this.getPageType().equals(other.getPageType()))
&& (this.getDataOssPath() == null ? other.getDataOssPath() == null : this.getDataOssPath().equals(other.getDataOssPath()))
&& (this.getIsActive() == null ? other.getIsActive() == null : this.getIsActive().equals(other.getIsActive()))
&& (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
&& (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
&& (this.getCreatedBy() == null ? other.getCreatedBy() == null : this.getCreatedBy().equals(other.getCreatedBy()))
&& (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
&& (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getConfigLevel() == null) ? 0 : getConfigLevel().hashCode());
result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode());
result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode());
result = prime * result + ((getOrderNo() == null) ? 0 : getOrderNo().hashCode());
result = prime * result + ((getToken() == null) ? 0 : getToken().hashCode());
result = prime * result + ((getPageType() == null) ? 0 : getPageType().hashCode());
result = prime * result + ((getDataOssPath() == null) ? 0 : getDataOssPath().hashCode());
result = prime * result + ((getIsActive() == null) ? 0 : getIsActive().hashCode());
result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
result = prime * result + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode());
result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", configLevel=").append(configLevel);
sb.append(", productId=").append(productId);
sb.append(", planId=").append(planId);
sb.append(", orderNo=").append(orderNo);
sb.append(", token=").append(token);
sb.append(", pageType=").append(pageType);
sb.append(", dataOssPath=").append(dataOssPath);
sb.append(", isActive=").append(isActive);
sb.append(", remark=").append(remark);
sb.append(", createdAt=").append(createdAt);
sb.append(", createdBy=").append(createdBy);
sb.append(", updatedAt=").append(updatedAt);
sb.append(", updatedBy=").append(updatedBy);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
package com.yd.dal.mapper.customer.trackvideo;
import com.yd.api.customer.vo.trackvideo.QueryTrackListRequestVO;
import com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo;
import java.util.List;
public interface AgAclCustomerBehaviorTrackVideoMapper {
int deleteByPrimaryKey(Long id);
int insert(AgAclCustomerBehaviorTrackVideo record);
int insertSelective(AgAclCustomerBehaviorTrackVideo record);
AgAclCustomerBehaviorTrackVideo selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(AgAclCustomerBehaviorTrackVideo record);
int updateByPrimaryKey(AgAclCustomerBehaviorTrackVideo record);
List<AgAclCustomerBehaviorTrackVideo> selectByRecord(QueryTrackListRequestVO requestVO);
}
\ No newline at end of file
<?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.yd.dal.mapper.customer.trackvideo.AgAclCustomerBehaviorTrackVideoMapper">
<resultMap id="BaseResultMap" type="com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="config_level" jdbcType="INTEGER" property="configLevel" />
<result column="product_id" jdbcType="BIGINT" property="productId" />
<result column="plan_id" jdbcType="BIGINT" property="planId" />
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
<result column="token" jdbcType="VARCHAR" property="token" />
<result column="page_type" jdbcType="INTEGER" property="pageType" />
<result column="data_oss_path" jdbcType="VARCHAR" property="dataOssPath" />
<result column="is_active" jdbcType="INTEGER" property="isActive" />
<result column="remark" jdbcType="VARCHAR" property="remark" />
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" />
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
</resultMap>
<sql id="Base_Column_List">
id, config_level, product_id, plan_id, order_no, token, page_type, data_oss_path,
is_active, remark, created_at, created_by, updated_at, updated_by
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer_behavior_track_video
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from ag_acl_customer_behavior_track_video
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo" useGeneratedKeys="true">
insert into ag_acl_customer_behavior_track_video (config_level, product_id, plan_id,
order_no, token, page_type,
data_oss_path, is_active, remark,
created_at, created_by, updated_at,
updated_by)
values (#{configLevel,jdbcType=INTEGER}, #{productId,jdbcType=BIGINT}, #{planId,jdbcType=BIGINT},
#{orderNo,jdbcType=VARCHAR}, #{token,jdbcType=VARCHAR}, #{pageType,jdbcType=INTEGER},
#{dataOssPath,jdbcType=VARCHAR}, #{isActive,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR},
#{createdAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=BIGINT}, #{updatedAt,jdbcType=TIMESTAMP},
#{updatedBy,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo" useGeneratedKeys="true">
insert into ag_acl_customer_behavior_track_video
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="configLevel != null">
config_level,
</if>
<if test="productId != null">
product_id,
</if>
<if test="planId != null">
plan_id,
</if>
<if test="orderNo != null">
order_no,
</if>
<if test="token != null">
token,
</if>
<if test="pageType != null">
page_type,
</if>
<if test="dataOssPath != null">
data_oss_path,
</if>
<if test="isActive != null">
is_active,
</if>
<if test="remark != null">
remark,
</if>
<if test="createdAt != null">
created_at,
</if>
<if test="createdBy != null">
created_by,
</if>
<if test="updatedAt != null">
updated_at,
</if>
<if test="updatedBy != null">
updated_by,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="configLevel != null">
#{configLevel,jdbcType=INTEGER},
</if>
<if test="productId != null">
#{productId,jdbcType=BIGINT},
</if>
<if test="planId != null">
#{planId,jdbcType=BIGINT},
</if>
<if test="orderNo != null">
#{orderNo,jdbcType=VARCHAR},
</if>
<if test="token != null">
#{token,jdbcType=VARCHAR},
</if>
<if test="pageType != null">
#{pageType,jdbcType=INTEGER},
</if>
<if test="dataOssPath != null">
#{dataOssPath,jdbcType=VARCHAR},
</if>
<if test="isActive != null">
#{isActive,jdbcType=INTEGER},
</if>
<if test="remark != null">
#{remark,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
#{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="createdBy != null">
#{createdBy,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
#{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
#{updatedBy,jdbcType=BIGINT},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo">
update ag_acl_customer_behavior_track_video
<set>
<if test="configLevel != null">
config_level = #{configLevel,jdbcType=INTEGER},
</if>
<if test="productId != null">
product_id = #{productId,jdbcType=BIGINT},
</if>
<if test="planId != null">
plan_id = #{planId,jdbcType=BIGINT},
</if>
<if test="orderNo != null">
order_no = #{orderNo,jdbcType=VARCHAR},
</if>
<if test="token != null">
token = #{token,jdbcType=VARCHAR},
</if>
<if test="pageType != null">
page_type = #{pageType,jdbcType=INTEGER},
</if>
<if test="dataOssPath != null">
data_oss_path = #{dataOssPath,jdbcType=VARCHAR},
</if>
<if test="isActive != null">
is_active = #{isActive,jdbcType=INTEGER},
</if>
<if test="remark != null">
remark = #{remark,jdbcType=VARCHAR},
</if>
<if test="createdAt != null">
created_at = #{createdAt,jdbcType=TIMESTAMP},
</if>
<if test="createdBy != null">
created_by = #{createdBy,jdbcType=BIGINT},
</if>
<if test="updatedAt != null">
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
</if>
<if test="updatedBy != null">
updated_by = #{updatedBy,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.yd.dal.entity.customer.trackvideo.AgAclCustomerBehaviorTrackVideo">
update ag_acl_customer_behavior_track_video
set config_level = #{configLevel,jdbcType=INTEGER},
product_id = #{productId,jdbcType=BIGINT},
plan_id = #{planId,jdbcType=BIGINT},
order_no = #{orderNo,jdbcType=VARCHAR},
token = #{token,jdbcType=VARCHAR},
page_type = #{pageType,jdbcType=INTEGER},
data_oss_path = #{dataOssPath,jdbcType=VARCHAR},
is_active = #{isActive,jdbcType=INTEGER},
remark = #{remark,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=TIMESTAMP},
created_by = #{createdBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
updated_by = #{updatedBy,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByRecord" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from ag_acl_customer_behavior_track_video t
where 1=1
<if test="configLevel != null">
and t.config_level = #{configLevel,jdbcType=BIGINT}
</if>
<if test="productId != null">
and t.product_id = #{productId,jdbcType=BIGINT}
</if>
<if test="planId != null">
and t.plan_id = #{planId,jdbcType=BIGINT}
</if>
<if test="orderNo != null">
and t.order_no = #{orderNo,jdbcType=VARCHAR}
</if>
<if test="pageType != null">
and t.page_type = #{pageType,jdbcType=BIGINT}
</if>
<if test="token != null">
and t.token = #{token,jdbcType=VARCHAR}
</if>
</select>
</mapper>
\ No newline at end of file
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