|
|
|
@ -461,7 +461,7 @@ public class SapItemSyncImpl implements SapItemSyncService {
|
|
|
|
|
if (func == null) {
|
|
|
|
|
throw new RuntimeException("Function does not exist in SAP");
|
|
|
|
|
}
|
|
|
|
|
log.info("成品备货单参数-------" + mapList.toString());
|
|
|
|
|
log.info("订单出参数-------" + mapList.toString());
|
|
|
|
|
//计划运输日期
|
|
|
|
|
JCoTable S_TDDAT = func.getTableParameterList().getTable("S_TDDAT");
|
|
|
|
|
//物料号
|
|
|
|
@ -474,28 +474,28 @@ public class SapItemSyncImpl implements SapItemSyncService {
|
|
|
|
|
{
|
|
|
|
|
return R.fail("参数不能为空");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isNotEmpty(mapList.get("S_TDDAT").toString())){
|
|
|
|
|
if (mapList.get("S_TDDAT")!=null&&StringUtils.isNotEmpty(mapList.get("S_TDDAT").toString())){
|
|
|
|
|
S_TDDAT.appendRow();
|
|
|
|
|
S_TDDAT.setValue(Constants.SIGN, "I");
|
|
|
|
|
S_TDDAT.setValue(Constants.OPTION, "BT");
|
|
|
|
|
S_TDDAT.setValue(Constants.LOW, mapList.get("S_TDDAT").toString());
|
|
|
|
|
S_TDDAT.setValue(Constants.HIGH, END_DATE);
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isNotEmpty(mapList.get("S_MATNR").toString())){
|
|
|
|
|
if (mapList.get("S_MATNR")!=null&&StringUtils.isNotEmpty(mapList.get("S_MATNR").toString())){
|
|
|
|
|
S_MATNR.appendRow();
|
|
|
|
|
S_MATNR.setValue(Constants.SIGN, "I");
|
|
|
|
|
S_MATNR.setValue(Constants.OPTION, "BT");
|
|
|
|
|
S_MATNR.setValue(Constants.LOW, mapList.get("S_MATNR").toString());
|
|
|
|
|
S_MATNR.setValue(Constants.HIGH, mapList.get("S_MATNR").toString());
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isNotEmpty(mapList.get("S_VBELN").toString())){
|
|
|
|
|
if (mapList.get("S_VBELN")!=null&&StringUtils.isNotEmpty(mapList.get("S_VBELN").toString())){
|
|
|
|
|
S_VBELN.appendRow();
|
|
|
|
|
S_VBELN.setValue(Constants.SIGN, "I");
|
|
|
|
|
S_VBELN.setValue(Constants.OPTION, "BT");
|
|
|
|
|
S_VBELN.setValue(Constants.LOW, mapList.get("S_VBELN").toString());
|
|
|
|
|
S_VBELN.setValue(Constants.HIGH, mapList.get("S_VBELN").toString());
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isNotEmpty(mapList.get("S_AUART").toString())){
|
|
|
|
|
if (mapList.get("S_AUART")!=null&&StringUtils.isNotEmpty(mapList.get("S_AUART").toString())){
|
|
|
|
|
S_AUART.appendRow();
|
|
|
|
|
S_AUART.setValue(Constants.SIGN, "I");
|
|
|
|
|
S_AUART.setValue(Constants.OPTION, "EQ");
|
|
|
|
|