客户回调接口

master
Caps 6 years ago
parent 854f49c81c
commit 681f7659a0

@ -16,6 +16,8 @@ public class CompanyStoreDO {
*/ */
private String orgId; private String orgId;
private String parentId;
private String companyName; private String companyName;
/** /**

@ -465,7 +465,7 @@ public class RetailCompanyService {
list.stream().parallel().forEach(li -> { list.stream().parallel().forEach(li -> {
QueryWrapper<PrivilageOrganizational> wrapperx = new QueryWrapper<>(); QueryWrapper<PrivilageOrganizational> wrapperx = new QueryWrapper<>();
wrapperx.eq("id",li.getOrgId()).eq("level",2).last("limit 1"); wrapperx.eq("id",li.getParentId()).eq("level",2).last("limit 1");
PrivilageOrganizational privilageOrganizational = retailCompanyMapper.selectOne(wrapperx); PrivilageOrganizational privilageOrganizational = retailCompanyMapper.selectOne(wrapperx);
StoreOrganizationalVO storeOrganizationalVO = new StoreOrganizationalVO(); StoreOrganizationalVO storeOrganizationalVO = new StoreOrganizationalVO();

@ -6,15 +6,17 @@
</insert> </insert>
<select id="selectShopIdByRetail" resultType="com.kiisoo.ic.generalize.entity.CompanyStoreDO"> <select id="selectShopIdByRetail" resultType="com.kiisoo.ic.generalize.entity.CompanyStoreDO">
select t3.entity_id as shopId,t1.parent_id as orgId select t3.entity_id as shopId,t1.id as orgId,t1.parent_id as parentId
from privilage_organizational t1, from privilage_organizational t,
privilage_organizational t1,
privilage_organizational_domain t2, privilage_organizational_domain t2,
privilage_domain_entity t3 privilage_domain_entity t3
where t1.id = t2.org_id where t1.id = t2.org_id
and t.id = t1.parent_id
and t2.domain_id = t3.domain_id and t2.domain_id = t3.domain_id
and t3.type = 3 and t3.type = 3
<if test="orgId != null"> <if test="orgId != null">
and t1.id = #{orgId} and t.id = #{orgId}
</if> </if>
<if test="shopId != null"> <if test="shopId != null">
and t3.entity_id = #{shopId} and t3.entity_id = #{shopId}

Loading…
Cancel
Save