feat: 导入到SAP时,如果项目类型为Z,则修改为L
This commit is contained in:
parent
92b57a06f0
commit
5984358ff6
|
|
@ -24,10 +24,7 @@ import org.springframework.stereotype.Service;
|
|||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Service
|
||||
|
|
@ -154,9 +151,18 @@ public class SapOpUtilService {
|
|||
params.setInputParams(parentMap);
|
||||
|
||||
Map<String, List<Map<String, String>>> inputTables = new HashMap<>();
|
||||
List<Map<String, String>> childMapList = Convert.convert(new TypeReference<List<Map<String, String>>>() {
|
||||
}
|
||||
, impartSapParamDTO.getT1());
|
||||
// List<Map<String, String>> childMapList = Convert.convert(new TypeReference<List<Map<String, String>>>() {
|
||||
// }
|
||||
// , 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);
|
||||
params.setInputTables(inputTables);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue