Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
45923591
Commit
45923591
authored
Oct 27, 2024
by
yanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task: #615 客户跟进记录,少了查询条件,添加跟进列表菜单
parent
e0a4527c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
22 deletions
+68
-22
CustomerFollowupQueryVO.java
...customer/vo/customerFollowup/CustomerFollowupQueryVO.java
+30
-2
CustomerFollowupMapper.xml
...main/resources/mapper/customer/CustomerFollowupMapper.xml
+38
-20
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/java/cn/iocoder/yudao/module/customer/vo/customerFollowup/CustomerFollowupQueryVO.java
View file @
45923591
...
@@ -21,15 +21,25 @@ public class CustomerFollowupQueryVO extends PageParam {
...
@@ -21,15 +21,25 @@ public class CustomerFollowupQueryVO extends PageParam {
@ApiModelProperty
(
value
=
"状态 字典customer_followup_status"
)
@ApiModelProperty
(
value
=
"状态 字典customer_followup_status"
)
private
Integer
status
;
private
Integer
status
;
@ApiModelProperty
(
value
=
"客户
编号
"
)
@ApiModelProperty
(
value
=
"客户
id
"
)
private
Long
customerId
;
private
Long
customerId
;
@ApiModelProperty
(
value
=
"客户编号"
)
private
String
customerNumber
;
@ApiModelProperty
(
value
=
"客户编号"
)
@ApiModelProperty
(
value
=
"客户编号"
)
private
Long
customerDetailId
;
private
Long
customerDetailId
;
@ApiModelProperty
(
value
=
"报价单"
)
@ApiModelProperty
(
value
=
"报价单
id
"
)
private
Long
offerId
;
private
Long
offerId
;
@ApiModelProperty
(
value
=
"报价单id列表"
)
private
List
<
Long
>
offerIds
;
@ApiModelProperty
(
value
=
"报价单编号"
)
private
String
offerNumber
;
@ApiModelProperty
(
value
=
"跟进类型 字典customer_followup_type"
)
@ApiModelProperty
(
value
=
"跟进类型 字典customer_followup_type"
)
private
Integer
followType
;
private
Integer
followType
;
...
@@ -85,6 +95,15 @@ public class CustomerFollowupQueryVO extends PageParam {
...
@@ -85,6 +95,15 @@ public class CustomerFollowupQueryVO extends PageParam {
@ApiModelProperty
(
value
=
"结束创建时间"
)
@ApiModelProperty
(
value
=
"结束创建时间"
)
private
Date
endCreateTime
;
private
Date
endCreateTime
;
// 更新时间
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@ApiModelProperty
(
value
=
"开始更新时间"
)
private
Date
beginUpdateTime
;
@DateTimeFormat
(
pattern
=
FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND
)
@ApiModelProperty
(
value
=
"结束更新时间"
)
private
Date
endUpdateTime
;
@ApiModelProperty
(
value
=
"跟进类型,下拉多选"
)
@ApiModelProperty
(
value
=
"跟进类型,下拉多选"
)
private
List
<
Integer
>
followTypes
;
private
List
<
Integer
>
followTypes
;
...
@@ -96,4 +115,13 @@ public class CustomerFollowupQueryVO extends PageParam {
...
@@ -96,4 +115,13 @@ public class CustomerFollowupQueryVO extends PageParam {
@ApiModelProperty
(
value
=
"跟进状态,下拉多选"
)
@ApiModelProperty
(
value
=
"跟进状态,下拉多选"
)
private
List
<
Integer
>
statuses
;
private
List
<
Integer
>
statuses
;
@ApiModelProperty
(
value
=
"客户经理/跟进业务员ids"
)
private
List
<
Long
>
followUserIds
;
@ApiModelProperty
(
value
=
"联系人电话"
)
private
String
contactPhone
;
}
}
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerFollowupMapper.xml
View file @
45923591
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<if
test=
"query.customerId != null"
>
<if
test=
"query.customerId != null"
>
AND a.customer_id = #{query.customerId}
AND a.customer_id = #{query.customerId}
</if>
</if>
<if
test=
"query.offerId
!= null
"
>
<if
test=
"query.offerId
s != null and query.offerIds.size() > 0
"
>
AND
a.offer_id = #{query.offerId}
AND
FIND_IN_SET(a.offer_id, #{query.offerIds})
</if>
</if>
<if
test=
"query.followType != null"
>
<if
test=
"query.followType != null"
>
...
@@ -38,35 +38,53 @@
...
@@ -38,35 +38,53 @@
AND a.result_type = #{query.resultType}
AND a.result_type = #{query.resultType}
</if>
</if>
<if
test=
"query.followTypes != null and query.followTypes.size() > 0"
>
<if
test=
"query.followTypes != null and query.followTypes.size()>0"
>
AND FIND_IN_SET(a.follow_type, #{query.followTypes})
AND
<foreach
item=
'item'
index=
"index"
collection=
'query.followTypes'
open=
'('
separator=
'or'
close=
')'
>
FIND_IN_SET(#{item}, a.follow_type)
</foreach>
</if>
</if>
<if
test=
"query.followMethods != null and query.followMethods.size()>0"
>
<if
test=
"query.followMethods != null and query.followMethods.size()>0"
>
AND
AND FIND_IN_SET(a.follow_method, #{query.followMethods})
<foreach
item=
'item'
index=
"index"
collection=
'query.followMethods'
open=
'('
separator=
'or'
close=
')'
>
FIND_IN_SET(#{item}, a.follow_method)
</foreach>
</if>
</if>
<if
test=
"query.resultTypes != null and query.resultTypes.size()>0"
>
<if
test=
"query.resultTypes != null and query.resultTypes.size()>0"
>
AND
AND FIND_IN_SET(a.result_type, #{query.resultTypes})
<foreach
item=
'item'
index=
"index"
collection=
'query.resultTypes'
open=
'('
separator=
'or'
close=
')'
>
FIND_IN_SET(#{item}, a.result_type)
</foreach>
</if>
</if>
<if
test=
"query.statuses != null and query.statuses.size()>0"
>
<if
test=
"query.statuses != null and query.statuses.size()>0"
>
AND
AND FIND_IN_SET(a.status, #{query.statuses})
<foreach
item=
'item'
index=
"index"
collection=
'query.statuses'
open=
'('
separator=
'or'
close=
')'
>
</if>
FIND_IN_SET(#{item}, a.status)
</foreach>
<if
test=
"query.followUserIds!= null and query.followUserIds.size() > 0"
>
AND FIND_IN_SET(a.follow_user_id, #{query.followUserIds})
</if>
<if
test=
"query.beginFollowTime != null and query.endFollowTime != null"
>
AND ( a.follow_time BETWEEN #{query.beginFollowTime} AND #{query.endFollowTime} )
</if>
<if
test=
"query.beginNextTime!= null and query.endNextTime!= null"
>
AND ( a.next_time BETWEEN #{query.beginNextTime} AND #{query.endNextTime} )
</if>
<if
test=
"query.beginCreateTime!= null and query.endCreateTime!= null"
>
AND ( a.create_time BETWEEN #{query.beginCreateTime} AND #{query.endCreateTime} )
</if>
<if
test=
"query.beginUpdateTime!= null and query.endUpdateTime!= null"
>
AND ( a.update_time BETWEEN #{query.beginUpdateTime} AND #{query.endUpdateTime} )
</if>
<if
test=
"query.contactPhone != null and query.contactPhone != '' "
>
AND concat('+', g.area_code, g.phone_new, '') LIKE concat('%', concat( #{query.contactPhone}, '%' ))
</if>
<if
test=
"query.customerNumber != null and query.customerNumber != '' "
>
AND b.number LIKE concat('%', concat( #{query.customerNumber}, '%' ))
</if>
</if>
<if
test=
"query.offerNumber != null and query.offerNumber != '' "
>
AND c.number LIKE concat('%', concat( #{query.offerNumber}, '%' ))
</if>
</sql>
</sql>
<select
id=
"selectPage1"
resultType=
"cn.iocoder.yudao.module.customer.dal.dataobject.customerFollowup.CustomerFollowupDO"
>
<select
id=
"selectPage1"
resultType=
"cn.iocoder.yudao.module.customer.dal.dataobject.customerFollowup.CustomerFollowupDO"
>
...
...
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