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
QianQiXiang
haoban-manage3.0
Commits
b4a84349
Commit
b4a84349
authored
Feb 17, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
63c0081e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
4 deletions
+28
-4
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+3
-0
StaffService.java
...a/com/gic/haoban/manage/service/service/StaffService.java
+2
-0
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+6
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+8
-4
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+9
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
b4a84349
...
...
@@ -26,4 +26,6 @@ public interface StaffMapper {
List
<
TabHaobanStaff
>
listByIds
(
@Param
(
"staffIds"
)
List
<
String
>
staffIds
);
Page
<
TabHaobanStaff
>
pageStaff
(
@Param
(
"staffIds"
)
Set
<
String
>
staffIds
,
@Param
(
"activeFlag"
)
Integer
activeFlag
,
@Param
(
"keyword"
)
String
keyword
);
TabHaobanStaff
selectByUserId
(
@Param
(
"userId"
)
String
userId
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffService.java
View file @
b4a84349
...
...
@@ -15,4 +15,6 @@ public interface StaffService {
Page
<
TabHaobanStaff
>
pageStaff
(
Set
<
String
>
staffIds
,
Integer
activeFlag
,
String
keyword
);
TabHaobanStaff
selectByUserId
(
String
userId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
b4a84349
...
...
@@ -45,4 +45,10 @@ public class StaffServiceImpl implements StaffService {
return
mapper
.
pageStaff
(
staffIds
,
activeFlag
,
keyword
);
}
@Override
public
TabHaobanStaff
selectByUserId
(
String
userId
)
{
return
mapper
.
selectByUserId
(
userId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
b4a84349
...
...
@@ -130,11 +130,15 @@ public class StaffApiServiceImpl implements StaffApiService {
public
void
wxGetAdd
(
String
userId
,
String
wxEnterpriseId
)
{
//获取微信用户信息
TabHaobanStaff
staff
=
new
TabHaobanStaff
();
staffService
.
add
(
staff
);
TabHaobanStaff
staff
=
staffService
.
selectByUserId
(
userId
);
if
(
staff
==
null
)
{
TabHaobanStaff
tab
=
new
TabHaobanStaff
();
staffService
.
add
(
tab
);
StaffDepartmentRelatedDTO
dto
=
new
StaffDepartmentRelatedDTO
();
staffDepartmentRelatedService
.
add
(
dto
);
}
StaffDepartmentRelatedDTO
dto
=
new
StaffDepartmentRelatedDTO
();
staffDepartmentRelatedService
.
add
(
dto
);
}
...
...
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
b4a84349
...
...
@@ -260,4 +260,12 @@
</if>
</select>
<select
id=
"selectByUserId"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_staff
where user_id = #{userId,jdbcType=VARCHAR}
and staus_flag = 1
</select>
</mapper>
\ No newline at end of file
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