客户回调接口

master
Caps 6 years ago
parent 681f7659a0
commit 00465aaba3

@ -540,10 +540,7 @@ public class RetailCompanyService {
List<Map<String, Object>> map3 = opSellerCustomerRelationDOMapper.selectAllCustomer1(sellerIds); List<Map<String, Object>> map3 = opSellerCustomerRelationDOMapper.selectAllCustomer1(sellerIds);
Map<Long, Object> collect1 = map3 == null ? new HashMap<>() : map3.stream().collect(Collectors.toMap(m -> Long.parseLong(m.get("store_id").toString()), m1 -> m1.get("count"))); Map<Long, Object> collect1 = map3 == null ? new HashMap<>() : map3.stream().collect(Collectors.toMap(m -> Long.parseLong(m.get("store_id").toString()), m1 -> m1.get("count")));
QueryWrapper<PoiStoreStaff> wrapper1 = new QueryWrapper<>(); List<PoiStoreStaff> list1 = poiStoreStaffDOMapper.selectList(null);
wrapper1.in("user_id", sellerIds);
List<PoiStoreStaff> list1 = poiStoreStaffDOMapper.selectList(wrapper1);
Map<Long, PoiStoreStaff> map2 = list1.stream().collect(Collectors.toMap(PoiStoreStaff::getId, p -> p)); Map<Long, PoiStoreStaff> map2 = list1.stream().collect(Collectors.toMap(PoiStoreStaff::getId, p -> p));
sellerIds.stream().parallel().forEach(seller -> { sellerIds.stream().parallel().forEach(seller -> {

@ -24,7 +24,7 @@
privilage_domain_entity t4, privilage_domain_entity t4,
poi_store t5 poi_store t5
where t2.id = t3.org_id where t2.id = t3.org_id
and t2.id = t3.parent_id and t2.parent_id = t6.id
and t1.store_id = t5.id and t1.store_id = t5.id
and t3.domain_id = t4.domain_id and t3.domain_id = t4.domain_id
and t4.type = 3 and t4.type = 3

@ -24,11 +24,13 @@
</select> </select>
<select id="selectSellerIdsByShop" resultType="java.lang.Long"> <select id="selectSellerIdsByShop" resultType="java.lang.Long">
select t4.user_id select t4.user_id
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,
poi_store_staff t4 poi_store_staff t4
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.entity_id = t4.store_id and t3.entity_id = t4.store_id
and t3.type = 3 and t3.type = 3

Loading…
Cancel
Save