Commit a900e5c4 by bilingfeng

feat: 新增API方法, 查询好办关联的所有企业id

parent c17a93d4
......@@ -9,6 +9,13 @@ import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.manage.api.dto.*;
public interface WxEnterpriseRelatedApiService {
/**
* 查询好办所有的企业id
* @return : 返回好办关联的所有企业id
*/
List<String> findAllEnterpriseId();
List<EnterpriseDetailDTO> listEnterpriseByWxEnterpriseId(String wxEnterpriseId);
......
......@@ -46,4 +46,10 @@ public interface WxEnterpriseRelatedMapper {
* @return
*/
TabHaobanWxEnterpriseRelated findRootWxEnterpriseByEnterpriseId(@Param("enterpriseId") String enterpriseId);
/**
* 查询好办所有的企业id
* @return : 返回好办关联的所有企业id
*/
List<String> findAllEnterpriseId();
}
\ No newline at end of file
......@@ -77,6 +77,15 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
private static final int DELAY_TIME = 10;
/**
* 查询好办所有的企业id
* @return : 返回好办关联的所有企业id
*/
@Override
public List<String> findAllEnterpriseId(){
return wxEnterpriseRelatedMapper.findAllEnterpriseId();
}
//获取门店详情
public boolean isEnterpriseOver(String eid) {
......
......@@ -219,4 +219,11 @@
and status_flag = 1
and wx_enterprise_type = 0
</select>
<select id="findAllEnterpriseId" resultType="java.lang.String">
select
distinct enterprise_id
from tab_haoban_wx_enterprise_related
where status_flag = 1
</select>
</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