Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoban3.0
haoban-manage3.0
Commits
c0177124
Commit
c0177124
authored
Dec 26, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
like查询
parent
ddbe5b13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
ChatHmSearchQDTO.java
...gic/haoban/manage/api/dto/qdto/chat/ChatHmSearchQDTO.java
+13
-5
GroupChatHmServiceImpl.java
...age/service/service/chat/impl/GroupChatHmServiceImpl.java
+4
-0
GroupChatHmMapper.xml
...vice/src/main/resources/mapper/chat/GroupChatHmMapper.xml
+1
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/qdto/chat/ChatHmSearchQDTO.java
View file @
c0177124
...
@@ -15,14 +15,22 @@ public class ChatHmSearchQDTO extends PageQo implements Serializable {
...
@@ -15,14 +15,22 @@ public class ChatHmSearchQDTO extends PageQo implements Serializable {
private
String
wxEnterpriseId
;
private
String
wxEnterpriseId
;
private
String
enterpriseId
;
private
String
enterpriseId
;
private
String
searchParams
;
private
String
searchParams
;
private
String
searchParamsCode
;
// 1有效 2作废
// 1有效 2作废
private
Integer
status
;
private
Integer
status
;
private
Long
linkId
;
private
Long
linkId
;
private
List
<
Long
>
chatHmIdList
;
private
List
<
Long
>
chatHmIdList
;
private
List
<
String
>
creatorIdList
;
private
List
<
String
>
creatorIdList
;
private
Integer
linkCount
;
private
Integer
linkCount
;
private
int
allFlag
;
private
int
allFlag
;
public
String
getSearchParamsCode
()
{
return
searchParamsCode
;
}
public
void
setSearchParamsCode
(
String
searchParamsCode
)
{
this
.
searchParamsCode
=
searchParamsCode
;
}
public
int
getAllFlag
()
{
public
int
getAllFlag
()
{
return
allFlag
;
return
allFlag
;
}
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/chat/impl/GroupChatHmServiceImpl.java
View file @
c0177124
...
@@ -83,6 +83,10 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
...
@@ -83,6 +83,10 @@ public class GroupChatHmServiceImpl implements GroupChatHmService {
public
Page
<
GroupChatHmBO
>
listPage
(
ChatHmSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
public
Page
<
GroupChatHmBO
>
listPage
(
ChatHmSearchQDTO
qdto
,
BasePageInfo
basePageInfo
)
{
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
String
wxEnterpriseId
=
qdto
.
getWxEnterpriseId
();
String
enterpriseId
=
qdto
.
getEnterpriseId
();
String
enterpriseId
=
qdto
.
getEnterpriseId
();
if
(
StringUtils
.
isNotBlank
(
qdto
.
getSearchParams
()))
{
qdto
.
setSearchParams
(
"%"
+
qdto
.
getSearchParams
()+
"%"
);
qdto
.
setSearchParamsCode
(
qdto
.
getSearchParams
()+
"%"
);
}
Long
linkId
=
qdto
.
getLinkId
();
Long
linkId
=
qdto
.
getLinkId
();
if
(
null
!=
linkId
)
{
if
(
null
!=
linkId
)
{
// 查询链接下的关联的活码列表
// 查询链接下的关联的活码列表
...
...
haoban-manage3-service/src/main/resources/mapper/chat/GroupChatHmMapper.xml
View file @
c0177124
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
and create_time >= #{startDate} and create_time
<![CDATA[<=]]>
#{endDate}
and create_time >= #{startDate} and create_time
<![CDATA[<=]]>
#{endDate}
</if>
</if>
<if
test=
"null != searchParams and '' !=searchParams "
>
<if
test=
"null != searchParams and '' !=searchParams "
>
and ( name like
'%${searchParams}%' or chat_hm_code like '${searchParams}%' or creator_name like '%${searchParams}%'
)
and ( name like
#{searchParams} or chat_hm_code like #{searchParamsCode} or creator_name like #{searchParams}
)
</if>
</if>
<if
test=
"null != status"
>
<if
test=
"null != status"
>
and status_flag = #{status}
and status_flag = #{status}
...
...
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