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
cb078cf5
Commit
cb078cf5
authored
Jun 17, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-17-2提交
parent
84e75508
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
36 deletions
+38
-36
CustomerMapper.xml
...ore/src/main/resources/mapper/customer/CustomerMapper.xml
+37
-35
CustomerController.java
...ustomer/controller/admin/customer/CustomerController.java
+1
-1
No files found.
yudao-module-customer/yudao-module-customer-core/src/main/resources/mapper/customer/CustomerMapper.xml
View file @
cb078cf5
...
...
@@ -11,10 +11,10 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s
where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
c.name as default_contact_name
2
,
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -67,9 +67,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -108,9 +108,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -149,9 +149,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -186,6 +186,8 @@
from (select a.*,
c.name as default_contact_name,
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone2,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -219,7 +221,7 @@
AND contact.name LIKE concat('%', concat( #{query.name}, '%' ))
</if>
<if
test=
"query.defaultContactPhone != null and query.defaultContactPhone != '' "
>
AND contact.default_contact_phone LIKE concat('%', concat( #{query.defaultContactPhone}, '%' ))
AND contact.default_contact_phone
2
LIKE concat('%', concat( #{query.defaultContactPhone}, '%' ))
</if>
<if
test=
"query.defaultContactName != null and query.defaultContactName != '' "
>
AND contact.all_contact_phone LIKE concat('%', concat( #{query.defaultContactName}, '%' ))
...
...
@@ -408,9 +410,9 @@
where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -440,9 +442,9 @@
select count(1)
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -473,7 +475,7 @@
AND contact.name LIKE concat('%', concat( #{query.name}, '%' ))
</if>
<if
test=
"query.defaultContactPhone != null and query.defaultContactPhone != '' "
>
AND contact.default_contact_phone LIKE concat('%', concat( #{query.defaultContactPhone}, '%' ))
AND contact.default_contact_phone
2
LIKE concat('%', concat( #{query.defaultContactPhone}, '%' ))
</if>
<if
test=
"query.defaultContactName != null and query.defaultContactName != '' "
>
AND contact.all_contact_phone LIKE concat('%', concat( #{query.defaultContactName}, '%' ))
...
...
@@ -670,9 +672,9 @@
credit.name_en as credit_level_name_en
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.social as default_social,
c.email as default_email,
c.social_number as default_social_number
...
...
@@ -1378,9 +1380,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1412,9 +1414,9 @@
select count(1)
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1450,9 +1452,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1487,9 +1489,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1522,9 +1524,9 @@
select count(1)
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1558,9 +1560,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1594,9 +1596,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!-- concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1631,9 +1633,9 @@
select count(1)
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
@@ -1669,9 +1671,9 @@
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts s where s.deleted = 0 and s.customer_id=contact.id) as all_contact_phone
from (select a.*,
c.name as default_contact_name,
<!--concat(c.area_code, c.phone_new, '') as default_contact_phone,-->
concat(c.area_code, c.phone_new, '') as default_contact_phone,
(select GROUP_CONCAT(s.phone_new) from ecw_customer_contacts
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone,
s where s.deleted = 0 and s.customer_id=a.id) as default_contact_phone
2
,
c.phone_new as contactPhone,
c.id as defaultContactId,
c.social as default_social,
...
...
yudao-module-customer/yudao-module-customer-rest/src/main/java/cn/iocoder/yudao/module/customer/controller/admin/customer/CustomerController.java
View file @
cb078cf5
...
...
@@ -406,7 +406,7 @@ public class CustomerController {
@GetMapping
(
"/get-wait-for-distribution"
)
@ApiOperation
(
"获得待分配客户列表"
)
//
@PreAuthorize("@ss.hasPermission('ecw:customer:query')")
//
@PreAuthorize("@ss.hasPermission('ecw:customer:query')")
public
CommonResult
<
PageResult
<
CustomerRespVO
>>
getWaitForDistributionList
(
@Valid
CustomerPageReqDTO
customerPageReqVO
,
PageVO
page
)
{
//lanbm 2024-05-26 添加注释
PageResult
<
CustomerDO
>
pageResult
=
...
...
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