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 23dbcdb7
authored
Jan 12, 2026
by
杨卫
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/V5.5.3' into V5.5.3
2 parents
f84fb3c2
a21375aa
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 @
23dbcdb
...
...
@@ -33,7 +33,7 @@
<dependency>
<groupId>
cn.com.glsx
</groupId>
<artifactId>
rpc-dj-mindworkplate-api
</artifactId>
<version>
5.
3.0
-SNAPSHOT
</version>
<version>
5.
5.3
-SNAPSHOT
</version>
</dependency>
</dependencies>
</plugin>
...
...
rpc-dj-mindworkplate-api/src/main/java/cn/com/glsx/dj/mindworkplate/dto/EmployeeBadgeDTO.java
View file @
23dbcdb
...
...
@@ -209,4 +209,10 @@ public class EmployeeBadgeDTO extends EmployeeBadge implements Serializable {
@ApiModelProperty
(
notes
=
"接待手机号"
)
private
List
<
String
>
phoneList
;
/**
* 客户手机号
*/
@ApiModelProperty
(
notes
=
"客户手机号"
)
private
String
customerPhone
;
}
\ No newline at end of file
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/ConversationBatchService.java
View file @
23dbcdb
...
...
@@ -101,12 +101,21 @@ public class ConversationBatchService {
if
(
org
.
apache
.
commons
.
collections4
.
CollectionUtils
.
isNotEmpty
(
merchantRopResponses
))
{
merchantDTO
.
setMerchantName
(
merchantRopResponses
.
get
(
0
).
getMerchantName
());
}
merchantDTO
.
setPhoneNumber
(
maskPhoneNumber
(
merchantDTO
.
getPhoneNumber
()));
}
}
}
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
){
ConversationBatch
conversationBatch
=
conversationBatchMapper
.
findHisFlagByBatchId
(
request
.
getBatchId
());
...
...
rpc-dj-mindworkplate/src/main/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeService.java
View file @
23dbcdb
...
...
@@ -299,10 +299,20 @@ public class EmployeeBadgeService {
long
a
=
duration
==
null
?
0
l
:
Long
.
parseLong
(
duration
)
/
1000
;
dto
.
setDuration
(
String
.
valueOf
(
a
));
dto
.
setDefencePoint
(
formatDefenceScore
(
dto
.
getDefencePoint
()));
// phoneNumber脱敏显示为 139****8888 格式
dto
.
setPhoneNumber
(
maskPhoneNumber
(
dto
.
getPhoneNumber
()));
}
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
)
{
if
(
defenceScore
==
null
||
defenceScore
.
trim
().
isEmpty
())
{
return
null
;
...
...
rpc-dj-mindworkplate/src/main/resources/META-INF/orm/EmployeeBadgeMapper.xml
View file @
23dbcdb
...
...
@@ -125,11 +125,9 @@
#{item}
</foreach>
</if>
<if
test=
"condition.storePhoneList != null and condition.storePhoneList.size>0"
>
AND t1.phone_number in
<foreach
close=
")"
collection=
"condition.storePhoneList"
item=
"item"
open=
"("
separator=
","
>
#{item}
</foreach>
<if
test=
"condition.customerPhone != null"
>
AND t1.phone_number like concat('%', #{condition.customerPhone}, '%')
</if>
<if
test=
"condition.recDevList != null and condition.recDevList.size>0"
>
AND t1.badge_id in
...
...
@@ -459,6 +457,9 @@
<if
test=
"condition.enterpriseCustomerFlag != null and condition.enterpriseCustomerFlag ==1 "
>
and t1.customer_name like concat('%','公司','%')
</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
</select>
...
...
rpc-dj-mindworkplate/src/main/resources/templates/rec_template2.xlsx
View file @
23dbcdb
No preview for this file type
rpc-dj-mindworkplate/src/test/java/cn/com/glsx/dj/mindworkplate/service/EmployeeBadgeServiceTest.java
View file @
23dbcdb
...
...
@@ -117,12 +117,6 @@ public class EmployeeBadgeServiceTest extends BaseServiceTest{
employeeBadgeDTO
.
setSearchStartDate
(
"2024-06-01"
);
employeeBadgeDTO
.
setSearchEndDate
(
"2024-06-30"
);
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
);
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