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
a3f45228
Commit
a3f45228
authored
Jul 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活码列表修改
parent
2b0b86da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
TabHaobanHmQrcodeMapper.xml
.../src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
+1
-1
HmQrcodeController.java
...c/haoban/manage/web/controller/hm/HmQrcodeController.java
+6
-4
No files found.
haoban-manage3-service/src/main/resources/mapper/hm/TabHaobanHmQrcodeMapper.xml
View file @
a3f45228
...
...
@@ -342,7 +342,7 @@
and a.wx_enterprise_id = #{wxEnterpriseId}
</if>
<if
test=
"null != hmSelect and '' != hmSelect "
>
and (a.hm_
code=#{hmSelect} or a.name like '%${hmSelect}%' or a.creator_name like '%${hmSelect}%' )
and (a.hm_
id=#{hmSelect} or a.hm_code=#{hmSelect} or a.name like '%${hmSelect}%' or a.creator_name like '%${hmSelect}%' )
</if>
<if
test=
"null != clerkSelect and '' != clerkSelect"
>
and ( a.clerk_id = #{clerkSelect} or b.clerk_id = #{clerkSelect} )
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmQrcodeController.java
View file @
a3f45228
...
...
@@ -38,9 +38,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.*
;
import
java.util.stream.Collectors
;
/**
* 活码(TabHaobanHmQrcode)表控制层
...
...
@@ -186,7 +185,7 @@ public class HmQrcodeController {
}
else
if
(
hmType
==
2
)
{
BasePageInfo
basePageInfo
=
new
BasePageInfo
();
basePageInfo
.
setPageNum
(
1
);
basePageInfo
.
setPage
Num
(
1000
);
basePageInfo
.
setPage
Size
(
1000
);
Page
<
HmClerkRelationDTO
>
hmClerkByHmId
=
hmQrcodeApiService
.
getHmClerkByHmId
(
basePageInfo
,
hmId
);
List
<
HmClerkRelationDTO
>
hmClerkRelationDTOList
=
hmClerkByHmId
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
hmClerkRelationDTOList
))
{
...
...
@@ -211,6 +210,9 @@ public class HmQrcodeController {
if
(
hmGroupDTO
!=
null
)
{
hmQrcodeListDTO
.
setHmGroupName
(
hmGroupDTO
.
getGroupName
());
}
//门店id去重
storeDTOList
=
storeDTOList
.
stream
()
.
collect
(
Collectors
.
collectingAndThen
(
Collectors
.
toCollection
(()
->
new
TreeSet
<>(
Comparator
.
comparing
(
HmStoreDTO:
:
getStoreId
))),
ArrayList:
:
new
));
hmQrcodeListDTO
.
setClerkList
(
clerkDTOList
);
hmQrcodeListDTO
.
setStoreList
(
storeDTOList
);
}
...
...
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