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
b95b9255
Commit
b95b9255
authored
May 08, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
73d40d8a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletions
+19
-1
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+2
-1
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+2
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+6
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+9
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
b95b9255
...
...
@@ -18,7 +18,8 @@ public interface StaffApiService {
public
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
public
List
<
StaffDTO
>
listByWxUserId
(
String
wxUserId
);
public
StaffDTO
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
public
ServiceResponse
add
(
StaffDTO
staff
,
String
departmentIds
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
b95b9255
...
...
@@ -25,6 +25,8 @@ public interface StaffMapper {
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
List
<
TabHaobanStaff
>
listByWxUserId
(
@Param
(
"wxUserId"
)
String
wxUserId
);
List
<
TabHaobanStaff
>
listLikeName
(
@Param
(
"staffName"
)
String
staffName
);
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/StaffApiServiceImpl.java
View file @
b95b9255
...
...
@@ -21,6 +21,7 @@ import com.gic.redis.data.anno.RedisCache;
import
com.gic.thirdparty.api.dto.PicUploadResDTO
;
import
com.gic.thirdparty.api.service.QQCloudPicService
;
import
com.vdurmont.emoji.EmojiParser
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.io.IOUtils
;
import
org.apache.commons.lang.StringUtils
;
...
...
@@ -1217,6 +1218,11 @@ public class StaffApiServiceImpl implements StaffApiService {
}
return
resp
;
}
@Override
public
List
<
StaffDTO
>
listByWxUserId
(
String
wxUserId
)
{
List
<
TabHaobanStaff
>
list
=
staffMapper
.
listByWxUserId
(
wxUserId
);
return
EntityUtil
.
changeEntityListByJSON
(
StaffDTO
.
class
,
list
);
}
// private String getMobile(String phoneNumber,String nationcode){
// String mobile = nationcode + phoneNumber;
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
b95b9255
...
...
@@ -291,6 +291,15 @@
</foreach>
</if>
</select>
<select
id=
"listByWxUserId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
where status_flag = 1
<if
test=
"wxUserId != null"
>
and wx_user_id = #{wxUserId,jdbcType=VARCHAR}
</if>
</select>
<select
id=
"listLikeName"
resultMap=
"BaseResultMap"
>
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