master
wyj2080 6 years ago
parent 56f4e40702
commit 55cb9521a4

@ -33,6 +33,7 @@ public class CustomerViewZeroExtendVO {
private Long companyId; private Long companyId;
private String company; private String company;
/**客户*/ /**客户*/
private Long customerId;
private String customer; private String customer;
/**推广数*/ /**推广数*/
private Integer numb; private Integer numb;

@ -370,6 +370,9 @@ public class CustomerViewService {
* @param shopList list * @param shopList list
*/ */
public void getShopRegionInfo(List<CustomerViewZeroExtendVO> shopList){ public void getShopRegionInfo(List<CustomerViewZeroExtendVO> shopList){
if(shopList.size() == 0){
return;
}
//零售公司信息 //零售公司信息
List<Long> orgIds = shopList.stream().map(CustomerViewZeroExtendVO::getParentId).collect(Collectors.toList()); List<Long> orgIds = shopList.stream().map(CustomerViewZeroExtendVO::getParentId).collect(Collectors.toList());
if(orgIds.size() == 0){ if(orgIds.size() == 0){

@ -115,7 +115,7 @@
<!--店铺ids→零售公司信息--> <!--店铺ids→零售公司信息-->
<select id="selectOrgInfoByShopIds" resultType="com.kiisoo.ic.customer.entity.CustomerViewZeroExtendVO"> <select id="selectOrgInfoByShopIds" resultType="com.kiisoo.ic.customer.entity.CustomerViewZeroExtendVO">
select t1.id as orgId,t1.`name` as customer, t3.entity_id as shopId, t4.name as shopName, t4.code as shopCode, t1.parent_id as parentId select t1.id as customerId,t1.`name` as customer, t3.entity_id as shopId, t4.name as shopName, t4.code as shopCode, t1.parent_id as parentId
from privilage_organizational t1, privilage_organizational_domain t2, privilage_domain_entity t3, poi_store t4 from privilage_organizational t1, privilage_organizational_domain t2, privilage_domain_entity t3, poi_store t4
where t1.id = t2.org_id where t1.id = t2.org_id
and t2.domain_id = t3.domain_id and t2.domain_id = t3.domain_id

Loading…
Cancel
Save