Commit f9f593c3 by 朱海

[chg]顾客批次,店内区域匹配修改逻辑

1 parent 36e83d16
...@@ -183,9 +183,9 @@ public class PersonRecordServiceImpl implements PersonRecordService { ...@@ -183,9 +183,9 @@ public class PersonRecordServiceImpl implements PersonRecordService {
}*/ }*/
List<DPersonBatch> personBatchList = dPersonBatchDao.getPersonBatchList(mallId, countDate); List<DPersonBatch> personBatchList = dPersonBatchDao.getPersonBatchList(mallId, countDate);
if (CollectionUtils.isNotEmpty(personBatchList)) { if (CollectionUtils.isNotEmpty(personBatchList)) {
Map<String, String> batchMap = personBatchList.stream().collect(Collectors.toMap(v -> v.getPersonUnid() + DateUtil.formatDateTime(v.getArriveTime()), DPersonBatch::getBatchId, (v1, v2) -> v1)); Map<String, String> batchMap = personBatchList.stream().collect(Collectors.toMap(v -> v.getPersonUnid(), DPersonBatch::getBatchId, (v1, v2) -> v1));
for (PersonInOutDetail personInOutDetail : personList) { for (PersonInOutDetail personInOutDetail : personList) {
String key = personInOutDetail.getPersonUnid() + DateUtil.formatDateTime(personInOutDetail.getArriveTime()); String key = personInOutDetail.getPersonUnid();
String batchId = batchMap.get(key); String batchId = batchMap.get(key);
if (StringUtils.hasLength(batchId)) { if (StringUtils.hasLength(batchId)) {
personInOutDetail.setGroupUnid(batchId); personInOutDetail.setGroupUnid(batchId);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!