Commit 5ffc4d7f by huluobin

# 更新

parent d48541d6
......@@ -30,7 +30,7 @@ public class BaseServeServiceImpl extends ServiceImpl<BaseServeMapper, BaseServe
param.setDepartmentId(departmentId);
IPage<BaseServe> result = baseServeMapper.listServeForPage(page, param,SessionUtils.getSourceFrom());
IPage<BaseServe> result = baseServeMapper.listServeForPage(page, param, SessionUtils.getSourceFrom());
List<Integer> serveIdList = result.getRecords().stream().map(BaseServe::getId).collect(Collectors.toList());
......@@ -39,7 +39,7 @@ public class BaseServeServiceImpl extends ServiceImpl<BaseServeMapper, BaseServe
.in(ServiceStorePrice::getServiceId, serveIdList));
Map<Integer, ServiceStorePrice> map = serviceStorePriceList.stream()
.collect(Collectors.toMap(ServiceStorePrice::getServiceId, serviceStorePrice -> serviceStorePrice));
.collect(Collectors.toMap(ServiceStorePrice::getServiceId, serviceStorePrice -> serviceStorePrice, (o1, o2) -> o1));
result.getRecords().forEach(baseServe -> {
ServiceStorePrice serviceStorePrice = map.get(baseServe.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment