Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-mindworkplate
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a21375aa
authored
Jan 12, 2026
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]客户手机号筛选以及脱敏处理
1 parent
1f739b5b
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
12 deletions
rpc-dj-mindworkplate-api/pom.xml
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/dto/EmployeeBadgeDTO.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/ConversationBatchService.java
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeService.java
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/EmployeeBadgeMapper.xml
rpc-dj-mindworkplate/src/main/resources/templates/rec_template2.xlsx
rpc-dj-mindworkplate/src/test/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeServiceTest.java
rpc-dj-mindworkplate-api/pom.xml
View file @
a21375a
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx
</groupId>
<groupId>
cn.com.glsx
</groupId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<version>
5.
3.0
-SNAPSHOT
</version>
<version>
5.
5.3
-SNAPSHOT
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</plugin>
</plugin>
...
...
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/dto/EmployeeBadgeDTO.java
View file @
a21375a
...
@@ -209,4 +209,10 @@ public class EmployeeBadgeDTO extends EmployeeBadge implements Serializable {
...
@@ -209,4 +209,10 @@ public class EmployeeBadgeDTO extends EmployeeBadge implements Serializable {
@ApiModelProperty
(
notes
=
"接待手机号"
)
@ApiModelProperty
(
notes
=
"接待手机号"
)
private
List
<
String
>
phoneList
;
private
List
<
String
>
phoneList
;
/**
* 客户手机号
*/
@ApiModelProperty
(
notes
=
"客户手机号"
)
private
String
customerPhone
;
}
}
\ No newline at end of file
\ No newline at end of file
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/ConversationBatchService.java
View file @
a21375a
...
@@ -101,12 +101,21 @@ public class ConversationBatchService {
...
@@ -101,12 +101,21 @@ public class ConversationBatchService {
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
merchantRopResponses
))
{
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
merchantRopResponses
))
{
merchantDTO
.
setMerchantName
(
merchantRopResponses
.
get
(
0
).
getMerchantName
());
merchantDTO
.
setMerchantName
(
merchantRopResponses
.
get
(
0
).
getMerchantName
());
}
}
merchantDTO
.
setPhoneNumber
(
maskPhoneNumber
(
merchantDTO
.
getPhoneNumber
()));
}
}
}
}
}
}
return
res
;
return
res
;
}
}
public
static
String
maskPhoneNumber
(
String
phone
)
{
if
(
phone
==
null
||
phone
.
length
()
!=
11
)
{
return
phone
;
// 或抛出异常、返回空字符串等,根据业务需求处理
}
return
phone
.
substring
(
0
,
3
)
+
"****"
+
phone
.
substring
(
7
);
}
public
String
generateFileUrlShortLink
(
ReceptionDetailRequestDTO
request
){
public
String
generateFileUrlShortLink
(
ReceptionDetailRequestDTO
request
){
ConversationBatch
conversationBatch
=
conversationBatchMapper
.
findHisFlagByBatchId
(
ConversationBatch
conversationBatch
=
conversationBatchMapper
.
findHisFlagByBatchId
(
request
.
getBatchId
());
request
.
getBatchId
());
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeService.java
View file @
a21375a
...
@@ -299,10 +299,20 @@ public class EmployeeBadgeService {
...
@@ -299,10 +299,20 @@ public class EmployeeBadgeService {
long
a
=
duration
==
null
?
0
l
:
Long
.
parseLong
(
duration
)
/
1000
;
long
a
=
duration
==
null
?
0
l
:
Long
.
parseLong
(
duration
)
/
1000
;
dto
.
setDuration
(
String
.
valueOf
(
a
));
dto
.
setDuration
(
String
.
valueOf
(
a
));
dto
.
setDefencePoint
(
formatDefenceScore
(
dto
.
getDefencePoint
()));
dto
.
setDefencePoint
(
formatDefenceScore
(
dto
.
getDefencePoint
()));
// phoneNumber脱敏显示为 139****8888 格式
dto
.
setPhoneNumber
(
maskPhoneNumber
(
dto
.
getPhoneNumber
()));
}
}
return
page
;
return
page
;
}
}
public
static
String
maskPhoneNumber
(
String
phone
)
{
if
(
phone
==
null
||
phone
.
length
()
!=
11
)
{
return
phone
;
// 或抛出异常、返回空字符串等,根据业务需求处理
}
return
phone
.
substring
(
0
,
3
)
+
"****"
+
phone
.
substring
(
7
);
}
public
String
formatDefenceScore
(
String
defenceScore
)
{
public
String
formatDefenceScore
(
String
defenceScore
)
{
if
(
defenceScore
==
null
||
defenceScore
.
trim
().
isEmpty
())
{
if
(
defenceScore
==
null
||
defenceScore
.
trim
().
isEmpty
())
{
return
null
;
return
null
;
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/EmployeeBadgeMapper.xml
View file @
a21375a
...
@@ -125,11 +125,9 @@
...
@@ -125,11 +125,9 @@
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"condition.storePhoneList != null and condition.storePhoneList.size>0"
>
AND t1.phone_number in
<if
test=
"condition.customerPhone != null"
>
<foreach
close=
")"
collection=
"condition.storePhoneList"
item=
"item"
open=
"("
separator=
","
>
AND t1.phone_number like concat('%', #{condition.customerPhone}, '%')
#{item}
</foreach>
</if>
</if>
<if
test=
"condition.recDevList != null and condition.recDevList.size>0"
>
<if
test=
"condition.recDevList != null and condition.recDevList.size>0"
>
AND t1.badge_id in
AND t1.badge_id in
...
@@ -459,6 +457,9 @@
...
@@ -459,6 +457,9 @@
<if
test=
"condition.enterpriseCustomerFlag != null and condition.enterpriseCustomerFlag ==1 "
>
<if
test=
"condition.enterpriseCustomerFlag != null and condition.enterpriseCustomerFlag ==1 "
>
and t1.customer_name like concat('%','公司','%')
and t1.customer_name like concat('%','公司','%')
</if>
</if>
<if
test=
"condition.customerPhone != null and condition.customerPhone != ''"
>
and t1.phone_number like concat('%',#{condition.phone},'%')
</if>
and t2.badge_id is not null
and t2.badge_id is not null
</select>
</select>
...
...
rpc-dj-mindworkplate/src/main/resources/templates/rec_template2.xlsx
View file @
a21375a
No preview for this file type
rpc-dj-mindworkplate/src/test/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeServiceTest.java
View file @
a21375a
...
@@ -117,12 +117,6 @@ public class EmployeeBadgeServiceTest extends BaseServiceTest{
...
@@ -117,12 +117,6 @@ public class EmployeeBadgeServiceTest extends BaseServiceTest{
employeeBadgeDTO
.
setSearchStartDate
(
"2024-06-01"
);
employeeBadgeDTO
.
setSearchStartDate
(
"2024-06-01"
);
employeeBadgeDTO
.
setSearchEndDate
(
"2024-06-30"
);
employeeBadgeDTO
.
setSearchEndDate
(
"2024-06-30"
);
employeeBadgeDTO
.
setBussinessType
(
1
);
employeeBadgeDTO
.
setBussinessType
(
1
);
employeeBadgeDTO
.
setQualityTestScoreBegin
(
1
);
employeeBadgeDTO
.
setQualityTestScoreEnd
(
30
);
employeeBadgeDTO
.
setOrderTransactionFlag
(
1
);
employeeBadgeDTO
.
setOrderAxbTransactionFlag
(
1
);
employeeBadgeDTO
.
setOrderTransactionAmount
(
new
BigDecimal
(
10
));
employeeBadgeDTO
.
setCarBrandIds
(
Arrays
.
asList
(
1
,
2
));
String
s
=
employeeBadgeService
.
customerBaseListExportV2
(
employeeBadgeDTO
);
String
s
=
employeeBadgeService
.
customerBaseListExportV2
(
employeeBadgeDTO
);
log
.
info
(
"返回结果{}"
,
JSONObject
.
toJSONString
(
s
));
log
.
info
(
"返回结果{}"
,
JSONObject
.
toJSONString
(
s
));
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment