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
8299cc95
Commit
8299cc95
authored
Mar 23, 2022
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复员工全表查询问题
parent
7f808b9a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+1
-1
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+1
-1
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+6
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
8299cc95
...
@@ -22,7 +22,7 @@ public interface StaffMapper {
...
@@ -22,7 +22,7 @@ public interface StaffMapper {
List
<
TabHaobanStaff
>
listByWxUserId
(
@Param
(
"wxUserId"
)
String
wxUserId
);
List
<
TabHaobanStaff
>
listByWxUserId
(
@Param
(
"wxUserId"
)
String
wxUserId
);
List
<
TabHaobanStaff
>
listLikeName
(
@Param
(
"staffName"
)
String
staffName
);
List
<
TabHaobanStaff
>
listLikeName
(
@Param
(
"staffName"
)
String
staffName
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
Page
<
TabHaobanStaff
>
pageStaff
(
@Param
(
"staffIds"
)
Set
<
String
>
staffIds
,
@Param
(
"activeFlag"
)
Integer
activeFlag
,
@Param
(
"keyword"
)
String
keyword
);
Page
<
TabHaobanStaff
>
pageStaff
(
@Param
(
"staffIds"
)
Set
<
String
>
staffIds
,
@Param
(
"activeFlag"
)
Integer
activeFlag
,
@Param
(
"keyword"
)
String
keyword
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
8299cc95
...
@@ -99,7 +99,7 @@ public class AuditApiServiceImpl implements AuditApiService {
...
@@ -99,7 +99,7 @@ public class AuditApiServiceImpl implements AuditApiService {
storeIds
.
addAll
(
storeIds1
);
storeIds
.
addAll
(
storeIds1
);
}
}
//模糊查staffName
//模糊查staffName
List
<
TabHaobanStaff
>
staffList
=
staffMapper
.
listLikeName
(
search
);
List
<
TabHaobanStaff
>
staffList
=
staffMapper
.
listLikeName
(
search
,
wxEnterpriseId
);
if
(
CollectionUtil
.
isNotEmpty
(
staffList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
staffList
))
{
List
<
String
>
staffIds2
=
staffList
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
staffIds2
=
staffList
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
staffIds
.
addAll
(
staffIds2
);
staffIds
.
addAll
(
staffIds2
);
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
8299cc95
...
@@ -316,7 +316,12 @@
...
@@ -316,7 +316,12 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
from tab_haoban_staff
where status_flag = 1
where status_flag = 1
and staff_name like CONCAT('%',#{staffName,jdbcType=VARCHAR},'%')
<if
test=
"wxEnterpriseId != null and wxEnterpriseId != ''"
>
and wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
</if>
<if
test=
"staffName != null and staffName != ''"
>
and staff_name like CONCAT('%',#{staffName,jdbcType=VARCHAR},'%')
</if>
</select>
</select>
<select
id=
"selectByUserIdAndEnterpriseId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
<select
id=
"selectByUserIdAndEnterpriseId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
...
...
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