Commit 3c4fdeb8 by wenyang Committed by jianan

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

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