Commit 3c4fdeb8 by wenyang Committed by jianan

可回溯录频3,查询列表增加客户姓名,查询条件也增加客户姓名模糊查询

parent d8e952d1
......@@ -14,6 +14,11 @@ public class QueryTrackListRequestVO {
* 用户ID
*/
private Long customerId;
/**
* 用户名称
*/
private String customerName;
/**
* 规则层级 1-insurer 2-product 3-plan
......
......@@ -107,6 +107,11 @@ public class AgAclCustomerBehaviorTrackVideo implements Serializable {
* 录屏数据
*/
private String data;
/**
* 客户名称
*/
private String customerName;
private static final long serialVersionUID = 1L;
......@@ -269,6 +274,14 @@ public class AgAclCustomerBehaviorTrackVideo implements Serializable {
public void setData(String data) {
this.data = data;
}
public String getCustomerName() {
return customerName;
}
public void setCustomerName(String customerName) {
this.customerName = customerName;
}
@Override
public boolean equals(Object that) {
......
......@@ -21,6 +21,7 @@
<result column="created_by" jdbcType="BIGINT" property="createdBy" />
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
<result column="updated_by" jdbcType="BIGINT" property="updatedBy" />
<result column="customer_name" jdbcType="VARCHAR" property="customerName" />
</resultMap>
<sql id="Base_Column_List">
id, serials_no,customer_id,config_level, product_id, plan_id, order_no, token, page_type, page_name, url, data_oss_path, customer_ip,
......@@ -246,16 +247,21 @@
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByRecord" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
<select id="selectByRecord" resultMap="BaseResultMap" parameterType="com.yd.api.customer.vo.trackvideo.QueryTrackListRequestVO">
select t.id, t.serials_no,t.customer_id,t.config_level, t.product_id, t.plan_id, t.order_no, t.token, t.page_type, t.page_name, t.url, t.data_oss_path, t.customer_ip,
t.is_active, t.remark, t.created_at, t.created_by, t.updated_at, t.updated_by,
c.name customer_name
from ag_acl_customer_behavior_track_video t
left join ag_acl_customer c on c.id = t.customer_id
where 1=1
<if test="serialsNo != null">
and serials_no = #{serialsNo,jdbcType=VARCHAR}
and t.serials_no = #{serialsNo,jdbcType=VARCHAR}
</if>
<if test="customerId != null">
and customer_id = #{customerId,jdbcType=BIGINT}
and t.customer_id = #{customerId,jdbcType=BIGINT}
</if>
<if test="customerName != null">
and c.name like concat(concat('%',#{customerName,jdbcType=VARCHAR}),'%')
</if>
<if test="configLevel != null">
and t.config_level = #{configLevel,jdbcType=BIGINT}
......
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