Commit 809838a8 by 墨竹

feat:门店权限所有门店返回-1

parent 6be234b3
...@@ -250,7 +250,7 @@ public interface StaffApiService { ...@@ -250,7 +250,7 @@ public interface StaffApiService {
/** /**
* 导购gic门店和好办企业门店交集 * 导购gic门店和好办企业门店交集
* 超管返回所有门店 * 所有门店返回所有门店列表
* *
* @param clerkId 职员id * @param clerkId 职员id
* @param wxEnterpriseId wx企业标识 * @param wxEnterpriseId wx企业标识
...@@ -260,6 +260,18 @@ public interface StaffApiService { ...@@ -260,6 +260,18 @@ public interface StaffApiService {
*/ */
List<String> getHaoBanStoreRolesByClerkId(String clerkId, String wxEnterpriseId); List<String> getHaoBanStoreRolesByClerkId(String clerkId, String wxEnterpriseId);
/**
* 导购gic门店和好办企业门店交集
* 所有门店返回 -1
*
* @param clerkId 职员id
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 11:04:40
*/
List<String> getHaoBanStoreIdsRolesByClerkId(String clerkId, String wxEnterpriseId);
/** /**
* 门店筛选器id和好办企业门店交集 * 门店筛选器id和好办企业门店交集
......
...@@ -104,4 +104,18 @@ public interface TabHaobanStoreRelationMapper { ...@@ -104,4 +104,18 @@ public interface TabHaobanStoreRelationMapper {
@Param("wxEnterpriseId") String wxEnterpriseId, @Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId); @Param("enterpriseId") String enterpriseId);
/**
* 查询所有门店分组id
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 10:34:17
*/
List<String> listStoreGroupIdByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId);
} }
\ No newline at end of file
...@@ -118,4 +118,15 @@ public interface StoreRangeService { ...@@ -118,4 +118,15 @@ public interface StoreRangeService {
*/ */
boolean isFlagByStoreId(String storeId, String wxEnterpriseId, String enterpriseId); boolean isFlagByStoreId(String storeId, String wxEnterpriseId, String enterpriseId);
/**
* 查询所有门店分组id
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 10:34:17
*/
List<String> listStoreGroupIdByWxEnterpriseId(String wxEnterpriseId, String enterpriseId);
} }
...@@ -272,4 +272,9 @@ public class StoreRangeServiceImpl implements StoreRangeService { ...@@ -272,4 +272,9 @@ public class StoreRangeServiceImpl implements StoreRangeService {
List<String> storeIds = tabHaobanStoreRelationMapper.listStoreIdByStoreIdWxEnterpriseId(storeId, wxEnterpriseId, enterpriseId); List<String> storeIds = tabHaobanStoreRelationMapper.listStoreIdByStoreIdWxEnterpriseId(storeId, wxEnterpriseId, enterpriseId);
return CollectionUtils.isNotEmpty(storeIds); return CollectionUtils.isNotEmpty(storeIds);
} }
@Override
public List<String> listStoreGroupIdByWxEnterpriseId(String wxEnterpriseId, String enterpriseId) {
return tabHaobanStoreRelationMapper.listStoreGroupIdByWxEnterpriseId(wxEnterpriseId,enterpriseId);
}
} }
...@@ -223,4 +223,12 @@ ...@@ -223,4 +223,12 @@
and store_id = #{storeId} and store_id = #{storeId}
and status_flag = 1 and status_flag = 1
</select> </select>
<select id="listStoreGroupIdByWxEnterpriseId" resultType="String">
select store_group_id
from tab_haoban_store_relation
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and status_flag = 1 group by store_group_id
</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