1.谐波溯源算法
2.北京暂降平台
This commit is contained in:
@@ -480,16 +480,9 @@ public class LedgerScaleServiceImpl implements LedgerScaleService {
|
||||
InputStream respStream = fileStorageUtil.getFileStream(respDataResult.getUserResponsibility());
|
||||
String respStr = IoUtil.readUtf8(respStream);
|
||||
List<CustomerResponsibility> respData = JSONArray.parseArray(respStr, CustomerResponsibility.class);
|
||||
List<String> userNos = respData.stream().map(it -> it.getCustomerName().substring(it.getCustomerName().indexOf("(") + 1, it.getCustomerName().indexOf(")"))).collect(Collectors.toList());
|
||||
|
||||
List<LedgerBaseInfo> ledgerBaseInfoList = lineMapper.queryMonitorByUser(userNos);
|
||||
Map<String, LedgerBaseInfo> ledgerBaseInfoMap = ledgerBaseInfoList.stream().collect(Collectors.toMap(LedgerBaseInfo::getUserNo, Function.identity()));
|
||||
respData.forEach(it -> {
|
||||
String tem = it.getCustomerName().substring(it.getCustomerName().indexOf("(") + 1, it.getCustomerName().indexOf(")"));
|
||||
if (ledgerBaseInfoMap.containsKey(tem)) {
|
||||
LedgerBaseInfo ledgerBaseInfo = ledgerBaseInfoMap.get(tem);
|
||||
it.setMonitorId(ledgerBaseInfo.getLineId());
|
||||
}
|
||||
it.setMonitorId(tem);
|
||||
});
|
||||
return respData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user