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
9c1203b0
Commit
9c1203b0
authored
Sep 05, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新头像
parent
3a8770a1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
1 deletions
+31
-1
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+1
-0
StaffMapper.java
...com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
+3
-1
StaffService.java
...a/com/gic/haoban/manage/service/service/StaffService.java
+2
-0
StaffServiceImpl.java
.../haoban/manage/service/service/impl/StaffServiceImpl.java
+5
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+5
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+6
-0
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+9
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
9c1203b0
...
@@ -358,4 +358,5 @@ public interface StaffApiService {
...
@@ -358,4 +358,5 @@ public interface StaffApiService {
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
StaffActiveAllocationDTO
>
staffActiveAllocation
(
String
wxEnterpriseId
,
String
staffIds
);
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
StaffActiveAllocationDTO
>
staffActiveAllocation
(
String
wxEnterpriseId
,
String
staffIds
);
void
updateStaffHead
(
String
staffId
,
String
headUrl
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/StaffMapper.java
View file @
9c1203b0
...
@@ -190,5 +190,6 @@ public interface StaffMapper {
...
@@ -190,5 +190,6 @@ public interface StaffMapper {
TabHaobanStaff
getNumByActiveCode
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"activeCode"
)
String
activeCode
);
TabHaobanStaff
getNumByActiveCode
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"activeCode"
)
String
activeCode
);
void
updateOccupyFlagByStaffId
(
@Param
(
"staffId"
)
String
staffId
);
void
updateOccupyFlagByStaffId
(
@Param
(
"staffId"
)
String
staffId
);
void
updateStaffHead
(
@Param
(
"staffId"
)
String
staffId
,
@Param
(
"headUrl"
)
String
headUrl
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffService.java
View file @
9c1203b0
...
@@ -154,4 +154,6 @@ public interface StaffService {
...
@@ -154,4 +154,6 @@ public interface StaffService {
* @return
* @return
*/
*/
List
<
String
>
queryStaffIdsWithEnterpriseId
(
List
<
String
>
wxEnterpriseIds
);
List
<
String
>
queryStaffIdsWithEnterpriseId
(
List
<
String
>
wxEnterpriseIds
);
void
updateStaffHead
(
String
staffId
,
String
headUrl
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffServiceImpl.java
View file @
9c1203b0
...
@@ -296,4 +296,9 @@ public class StaffServiceImpl implements StaffService {
...
@@ -296,4 +296,9 @@ public class StaffServiceImpl implements StaffService {
}
}
return
this
.
mapper
.
queryStaffIdsWithEnterpriseId
(
wxEnterpriseIds
);
return
this
.
mapper
.
queryStaffIdsWithEnterpriseId
(
wxEnterpriseIds
);
}
}
@Override
public
void
updateStaffHead
(
String
staffId
,
String
headUrl
)
{
this
.
mapper
.
updateStaffHead
(
staffId
,
headUrl
)
;
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
9c1203b0
...
@@ -1388,4 +1388,9 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1388,4 +1388,9 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"-9999"
,
"成员不存在"
);
return
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
.
failure
(
"-9999"
,
"成员不存在"
);
}
}
@Override
public
void
updateStaffHead
(
String
staffId
,
String
headUrl
)
{
this
.
staffService
.
updateStaffHead
(
staffId
,
headUrl
)
;
}
}
}
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
9c1203b0
...
@@ -664,4 +664,9 @@
...
@@ -664,4 +664,9 @@
where staff_id= #{staffId}
where staff_id= #{staffId}
</update>
</update>
<update
id=
"updateStaffHead"
>
update tab_haoban_staff set head_img = #{headUrl}, update_time= now()
where staff_id= #{staffId}
</update>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
9c1203b0
...
@@ -1906,4 +1906,13 @@ public class WxStaffController extends WebBaseController {
...
@@ -1906,4 +1906,13 @@ public class WxStaffController extends WebBaseController {
}
}
return
RestResponse
.
successResult
(
vo
);
return
RestResponse
.
successResult
(
vo
);
}
}
@RequestMapping
(
"update-staff-head"
)
public
RestResponse
<
Object
>
updateStaffHead
(
String
staffId
,
String
headUrl
){
if
(
StrUtil
.
isBlank
(
headUrl
)){
return
RestResponse
.
failure
(
"-1"
,
"参数不能为空!!!"
);
}
this
.
staffApiService
.
updateStaffHead
(
staffId
,
headUrl
)
;
return
RestResponse
.
successResult
()
;
}
}
}
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