|
@@ -1367,26 +1367,9 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
1367
|
1367
|
}
|
1368
|
1368
|
|
1369
|
1369
|
@Override
|
1370
|
|
- public IPage<TaRecommendCustomerPO> getCustomersRecommended(int pageNumber, int pageSize, String customerId, Integer orgId, List<TaPersonBuilding> taPersonBuildingList, LocalDateTime startDate,LocalDateTime endDate,Integer status) {
|
1371
|
|
-
|
1372
|
|
-// QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper<>();
|
1373
|
|
- // todo
|
1374
|
|
- // 此处可能不是 person_id 而是 recommend_person
|
1375
|
|
- IPage<TaRecommendCustomerPO> page = new Page<>(pageNumber, pageSize);
|
1376
|
|
- IPage<TaRecommendCustomerPO> customersIRecommended = taRecommendCustomerMapper.getCustomersRecommended(page, customerId, status, orgId, taPersonBuildingList, startDate, endDate);
|
1377
|
|
- List<TaRecommendCustomerPO> records = customersIRecommended.getRecords();
|
1378
|
|
- records.forEach(e -> {
|
1379
|
|
- LambdaQueryWrapper<BuildingChannel> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
1380
|
|
- lambdaQueryWrapper.eq(BuildingChannel::getBuildingId,e.getBuildingId());
|
1381
|
|
- lambdaQueryWrapper.last("limit 1");
|
1382
|
|
- BuildingChannel buildingChannel = buildingChannelMapper.selectOne(lambdaQueryWrapper);
|
1383
|
|
-
|
1384
|
|
- if (null != buildingChannel) {
|
1385
|
|
- Integer expirationDay = buildingChannel.getExpirationDate();
|
1386
|
|
- LocalDateTime expirationDate = e.getCreateDate().plusDays(expirationDay);
|
1387
|
|
- e.setExpirationDate(expirationDate);
|
1388
|
|
- }
|
1389
|
|
- });
|
|
1370
|
+ public IPage<TaRecommendCustomer> getCustomersRecommended(int pageNumber, int pageSize, String customerId, Integer orgId, List<TaPersonBuilding> taPersonBuildingList, LocalDateTime startDate,LocalDateTime endDate,Integer status) {
|
|
1371
|
+ IPage<TaRecommendCustomer> page = new Page<>(pageNumber, pageSize);
|
|
1372
|
+ IPage<TaRecommendCustomer> customersIRecommended = taRecommendCustomerMapper.getCustomersRecommended(page, customerId, status, orgId, taPersonBuildingList, startDate, endDate);
|
1390
|
1373
|
return customersIRecommended;
|
1391
|
1374
|
}
|
1392
|
1375
|
|