Commit 9c1203b0 by 徐高华

更新头像

parent 3a8770a1
...@@ -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);
} }
...@@ -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
...@@ -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);
} }
...@@ -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) ;
}
} }
...@@ -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) ;
}
} }
...@@ -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
...@@ -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() ;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment