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
42f19f51
Commit
42f19f51
authored
Feb 03, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
成员信息查询sql
parent
ee35946f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+8
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+1
-1
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+10
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
42f19f51
...
@@ -19,7 +19,14 @@ public interface StaffMapper {
...
@@ -19,7 +19,14 @@ public interface StaffMapper {
TabHaobanStaff
selectByNationcodeAndPhoneNumber
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"nationCode"
)
String
nationcode
,
@Param
(
"phoneNumber"
)
String
phoneNumber
);
TabHaobanStaff
selectByNationcodeAndPhoneNumber
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"nationCode"
)
String
nationcode
,
@Param
(
"phoneNumber"
)
String
phoneNumber
);
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
/**
* 特殊查询,可以查询出被删除的成员信息
* @param staffIds
* @return
*/
List
<
TabHaobanStaff
>
listByStaffIdList
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
TabHaobanStaff
selectByUserIdAndEnterpriseId
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
TabHaobanStaff
selectByUserIdAndEnterpriseId
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
);
TabHaobanStaff
getDeleteUser
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
)
;
TabHaobanStaff
getDeleteUser
(
@Param
(
"userId"
)
String
userId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
42f19f51
...
@@ -948,7 +948,7 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -948,7 +948,7 @@ public class StaffApiServiceImpl implements StaffApiService {
staffIds
.
add
(
a
.
getHandoverStaffId
());
staffIds
.
add
(
a
.
getHandoverStaffId
());
staffIds
.
add
(
a
.
getTakeoverStaffId
());
staffIds
.
add
(
a
.
getTakeoverStaffId
());
});
});
List
<
TabHaobanStaff
>
tabHaobanStaffs
=
staffMapper
.
listBy
Ids
(
staffIds
);
List
<
TabHaobanStaff
>
tabHaobanStaffs
=
staffMapper
.
listBy
StaffIdList
(
staffIds
);
if
(
CollUtil
.
isEmpty
(
tabHaobanStaffs
)){
if
(
CollUtil
.
isEmpty
(
tabHaobanStaffs
)){
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"-9999"
,
"通讯录成员不存在!"
,
result
);
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"-9999"
,
"通讯录成员不存在!"
,
result
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
42f19f51
...
@@ -364,6 +364,16 @@
...
@@ -364,6 +364,16 @@
</foreach>
</foreach>
</select>
</select>
<select
id=
"listByStaffIdList"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
where staff_id IN
<foreach
collection=
"staffIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id,jdbcType=VARCHAR}
</foreach>
</select>
<select
id=
"listLikeName"
resultMap=
"BaseResultMap"
>
<select
id=
"listLikeName"
resultMap=
"BaseResultMap"
>
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
...
...
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