|
@@ -974,6 +974,7 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
|
String allMaterialName = "";
|
|
|
String allMaterialNumber = "";
|
|
|
String allMaterialTheoreticalWeight = "";
|
|
|
+ String allMaterialSpecificationModel = "";
|
|
|
if (materialMessages == null || materialMessages.size() == 0) {
|
|
|
} else {
|
|
|
for (Map<String, Object> materialMap : materialMessages) {
|
|
@@ -986,11 +987,16 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
|
}
|
|
|
String saleOrderMaterialNumber = materialMap.get("saleOrderMaterialNumber").toString();
|
|
|
allMaterialNumber += saleOrderMaterialNumber + "/";
|
|
|
+ String specificationModel = materialMap.get("specificationModel").toString();
|
|
|
+ if (specificationModel != null) {
|
|
|
+ allMaterialSpecificationModel += specificationModel + "/";
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
String subMaterialName = null;
|
|
|
String subMaterialNumber = null;
|
|
|
String subMaterialTheoreticalWeight = null;
|
|
|
+ String subMaterialSpecificationModel = null;
|
|
|
if (allMaterialName.length() >= 2) {
|
|
|
subMaterialName = allMaterialName.substring(0, allMaterialName.length() - 2);
|
|
|
}
|
|
@@ -1001,17 +1007,24 @@ public class OmstruckOrderServiceImpl implements IOmstruckOrderService {
|
|
|
subMaterialNumber = allMaterialNumber.substring(0, allMaterialNumber.length() - 2);
|
|
|
}
|
|
|
if (allMaterialNumber.length() < 2) {
|
|
|
- subMaterialName = allMaterialNumber;
|
|
|
+ subMaterialNumber = allMaterialNumber;
|
|
|
}
|
|
|
if (allMaterialTheoreticalWeight.length() >= 2) {
|
|
|
subMaterialTheoreticalWeight = allMaterialTheoreticalWeight.substring(0, allMaterialTheoreticalWeight.length() - 2);
|
|
|
}
|
|
|
if (allMaterialTheoreticalWeight.length() < 2) {
|
|
|
- subMaterialName = allMaterialTheoreticalWeight;
|
|
|
+ subMaterialTheoreticalWeight = allMaterialTheoreticalWeight;
|
|
|
+ }
|
|
|
+ if (allMaterialSpecificationModel.length() >= 2) {
|
|
|
+ subMaterialSpecificationModel = allMaterialSpecificationModel.substring(0, allMaterialSpecificationModel.length() - 2);
|
|
|
+ }
|
|
|
+ if (allMaterialSpecificationModel.length() < 2) {
|
|
|
+ subMaterialSpecificationModel = allMaterialSpecificationModel;
|
|
|
}
|
|
|
map.put("allMaterialName", subMaterialName);
|
|
|
map.put("allMaterialNumber", subMaterialNumber);
|
|
|
map.put("allMaterialTheoreticalWeight", subMaterialTheoreticalWeight);
|
|
|
+ map.put("allMaterialSpecificationModel", subMaterialSpecificationModel);
|
|
|
}
|
|
|
return map;
|
|
|
}
|