Commit 4f1e46e3 authored by duanruiming's avatar duanruiming

[update] 调度参数优化

parent 9017f6d8
...@@ -168,8 +168,7 @@ public class StaticInfoServiceImpl implements StaticInfoService { ...@@ -168,8 +168,7 @@ public class StaticInfoServiceImpl implements StaticInfoService {
* @return * @return
*/ */
private Map<String, String> getCodeCrossIdMap(CrossSchedulesDTO crossSchedulesDTO) { private Map<String, String> getCodeCrossIdMap(CrossSchedulesDTO crossSchedulesDTO) {
String manufacturerCode = crossSchedulesDTO.getManufacturerCode(); Integer id = manufacturerInfoMapper.selectIdByCode("HISENSE");
Integer id = manufacturerInfoMapper.selectIdByCode(manufacturerCode);
List<CrossInfoPO> crossInfoPOList = crossInfoMapper.selectByManufacturerId(id); List<CrossInfoPO> crossInfoPOList = crossInfoMapper.selectByManufacturerId(id);
List<String> codeList = crossInfoPOList.stream().map(CrossInfoPO::getCode).collect(Collectors.toList()); List<String> codeList = crossInfoPOList.stream().map(CrossInfoPO::getCode).collect(Collectors.toList());
Map<String, String> codeCrossIdMap = crossInfoPOList.stream().collect(Collectors.toMap(CrossInfoPO::getCode, CrossInfoPO::getId)); Map<String, String> codeCrossIdMap = crossInfoPOList.stream().collect(Collectors.toMap(CrossInfoPO::getCode, CrossInfoPO::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