Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
dd29a68c85
|
|
@ -24,10 +24,7 @@ import org.springframework.stereotype.Service;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.HashMap;
|
import java.util.*;
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.Objects;
|
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
|
|
@ -154,9 +151,18 @@ public class SapOpUtilService {
|
||||||
params.setInputParams(parentMap);
|
params.setInputParams(parentMap);
|
||||||
|
|
||||||
Map<String, List<Map<String, String>>> inputTables = new HashMap<>();
|
Map<String, List<Map<String, String>>> inputTables = new HashMap<>();
|
||||||
List<Map<String, String>> childMapList = Convert.convert(new TypeReference<List<Map<String, String>>>() {
|
// List<Map<String, String>> childMapList = Convert.convert(new TypeReference<List<Map<String, String>>>() {
|
||||||
}
|
// }
|
||||||
, impartSapParamDTO.getT1());
|
// , impartSapParamDTO.getT1());
|
||||||
|
List<Map<String, String>> childMapList = new ArrayList<>();
|
||||||
|
impartSapParamDTO.getT1().forEach(t -> {
|
||||||
|
// 项目类别如果是Z,则改为L
|
||||||
|
if (StrUtil.equals(t.getPOSTP(), "Z", true)) {
|
||||||
|
t.setPOSTP("L");
|
||||||
|
}
|
||||||
|
childMapList.add(Convert.convert(new TypeReference<Map<String, String>>() {
|
||||||
|
}, t));
|
||||||
|
});
|
||||||
inputTables.put("T1", childMapList);
|
inputTables.put("T1", childMapList);
|
||||||
params.setInputTables(inputTables);
|
params.setInputTables(inputTables);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue