Commit d3b57d7a by 徐高华

企微托管

parent a47d5280
...@@ -108,4 +108,12 @@ public interface OpenStaffApiService { ...@@ -108,4 +108,12 @@ public interface OpenStaffApiService {
List<StaffClerkRelationDTO> listOpenStaffByStore(String wxEnterpriseId , String enterpriseIdList , List<String> storeIdList) ; List<StaffClerkRelationDTO> listOpenStaffByStore(String wxEnterpriseId , String enterpriseIdList , List<String> storeIdList) ;
List<String> listAllOnlineStaff() ; List<String> listAllOnlineStaff() ;
/**
* 查询所有托管的门店
* @param wxEnterpriseId
* @param enterpriseId
* @return
*/
List<String> listOpenStoreId(String wxEnterpriseId , String enterpriseId) ;
} }
...@@ -50,4 +50,5 @@ public interface OpenStaffMapper { ...@@ -50,4 +50,5 @@ public interface OpenStaffMapper {
List<String> listAll() ; List<String> listAll() ;
List<String> listOpenStoreId(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("enterpriseId")String enterpriseId);
} }
\ No newline at end of file
...@@ -271,4 +271,9 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService { ...@@ -271,4 +271,9 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
public List<String> listAllOnlineStaff() { public List<String> listAllOnlineStaff() {
return this.openStaffMapper.listAll(); return this.openStaffMapper.listAll();
} }
@Override
public List<String> listOpenStoreId(String wxEnterpriseId, String enterpriseId) {
return this.openStaffMapper.listOpenStoreId(wxEnterpriseId,enterpriseId);
}
} }
...@@ -216,5 +216,10 @@ ...@@ -216,5 +216,10 @@
select staff_id from tab_haoban_open_staff where status_flag = 1 select staff_id from tab_haoban_open_staff where status_flag = 1
</select> </select>
<select id="listOpenStoreId" resultType="java.lang.String">
select a.store_id from tab_haoban_staff_clerk_relation a left join tab_haoban_open_staff b on a.staff_id = b.staff_id
where a.wx_enterprise_id = #{wxEnterpriseId} and a.enterprise_id=#{enterpriseId} and a.status_flag = 1
and b.status_flag = 1
</select>
</mapper> </mapper>
\ No newline at end of file
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