Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
afanti-open-api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-ms
afanti-open-api
Commits
7ca381bc
Commit
7ca381bc
authored
Aug 19, 2025
by
潘志辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ck加上author_id走索引
parent
03201fe4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
ClueImMessageController.java
...car/afantiopenapi/controller/ClueImMessageController.java
+3
-1
OpenIdDTO.java
...java/com/afanticar/afantiopenapi/model/dto/OpenIdDTO.java
+1
-0
OpenApiClientPrincipalRelationMapper.xml
...resources/mapper/OpenApiClientPrincipalRelationMapper.xml
+1
-1
No files found.
src/main/java/com/afanticar/afantiopenapi/controller/ClueImMessageController.java
View file @
7ca381bc
...
@@ -51,7 +51,9 @@ public class ClueImMessageController extends BaseController {
...
@@ -51,7 +51,9 @@ public class ClueImMessageController extends BaseController {
Page
<
LiveCrmCustomerChat
>
page
=
new
Page
<>(
request
.
getCurrent
(),
request
.
getSize
());
Page
<
LiveCrmCustomerChat
>
page
=
new
Page
<>(
request
.
getCurrent
(),
request
.
getSize
());
LambdaQueryWrapper
<
LiveCrmCustomerChat
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
LiveCrmCustomerChat
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
openIdDTOList
.
forEach
(
openIdDTO
->
{
openIdDTOList
.
forEach
(
openIdDTO
->
{
queryWrapper
.
or
().
eq
(
LiveCrmCustomerChat:
:
getAuthorOpenId
,
openIdDTO
.
getAuthorOpenId
())
queryWrapper
.
or
()
.
eq
(
LiveCrmCustomerChat:
:
getAuthorId
,
openIdDTO
.
getAuthorId
())
.
eq
(
LiveCrmCustomerChat:
:
getAuthorOpenId
,
openIdDTO
.
getAuthorOpenId
())
.
eq
(
LiveCrmCustomerChat:
:
getFansOpenId
,
openIdDTO
.
getUserOpenId
());
.
eq
(
LiveCrmCustomerChat:
:
getFansOpenId
,
openIdDTO
.
getUserOpenId
());
});
});
...
...
src/main/java/com/afanticar/afantiopenapi/model/dto/OpenIdDTO.java
View file @
7ca381bc
...
@@ -12,6 +12,7 @@ import javax.validation.constraints.NotNull;
...
@@ -12,6 +12,7 @@ import javax.validation.constraints.NotNull;
@JsonNaming
(
value
=
com
.
fasterxml
.
jackson
.
databind
.
PropertyNamingStrategy
.
SnakeCaseStrategy
.
class
)
@JsonNaming
(
value
=
com
.
fasterxml
.
jackson
.
databind
.
PropertyNamingStrategy
.
SnakeCaseStrategy
.
class
)
@JSONType
(
naming
=
com
.
alibaba
.
fastjson
.
PropertyNamingStrategy
.
SnakeCase
)
@JSONType
(
naming
=
com
.
alibaba
.
fastjson
.
PropertyNamingStrategy
.
SnakeCase
)
public
class
OpenIdDTO
{
public
class
OpenIdDTO
{
private
String
authorId
;
private
String
authorOpenId
;
private
String
authorOpenId
;
private
String
userOpenId
;
private
String
userOpenId
;
private
int
platform
;
private
int
platform
;
...
...
src/main/resources/mapper/OpenApiClientPrincipalRelationMapper.xml
View file @
7ca381bc
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<select
id=
"getOpenIdByStoreCodeAndPhone"
<select
id=
"getOpenIdByStoreCodeAndPhone"
resultType=
"com.afanticar.afantiopenapi.model.dto.OpenIdDTO"
>
resultType=
"com.afanticar.afantiopenapi.model.dto.OpenIdDTO"
>
select distinct author_open_id ,user_open_id,platform from fhl_mkms_clue_follow_up lea
select distinct author_
id ,author_
open_id ,user_open_id,platform from fhl_mkms_clue_follow_up lea
inner join base_dealer dea on lea.dealer_id = dea.id and dea.status=1 and dea.is_deleted =0 and dea.store_code =#{storeCode}
inner join base_dealer dea on lea.dealer_id = dea.id and dea.status=1 and dea.is_deleted =0 and dea.store_code =#{storeCode}
where lea.contact =#{phone} and lea.is_deleted = 0
where lea.contact =#{phone} and lea.is_deleted = 0
</select>
</select>
...
...
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