Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
3c4fdeb8
Commit
3c4fdeb8
authored
Feb 11, 2022
by
wenyang
Committed by
jianan
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可回溯录频3,查询列表增加客户姓名,查询条件也增加客户姓名模糊查询
parent
d8e952d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
5 deletions
+29
-5
yd-api/src/main/java/com/yd/api/customer/vo/trackvideo/QueryTrackListRequestVO.java
+5
-0
yd-api/src/main/java/com/yd/dal/entity/customer/trackvideo/AgAclCustomerBehaviorTrackVideo.java
+13
-0
yd-api/src/main/resources/mapper/trackvideo/AgAclCustomerBehaviorTrackVideoMapper.xml
+11
-5
No files found.
yd-api/src/main/java/com/yd/api/customer/vo/trackvideo/QueryTrackListRequestVO.java
View file @
3c4fdeb8
...
@@ -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
...
...
yd-api/src/main/java/com/yd/dal/entity/customer/trackvideo/AgAclCustomerBehaviorTrackVideo.java
View file @
3c4fdeb8
...
@@ -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
)
{
...
...
yd-api/src/main/resources/mapper/trackvideo/AgAclCustomerBehaviorTrackVideoMapper.xml
View file @
3c4fdeb8
...
@@ -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}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment