|
|
|
@ -268,7 +268,6 @@ public class SapOrderServiceImpl implements SapOrderService {
|
|
|
|
|
if (func == null) {
|
|
|
|
|
throw new RuntimeException("Function does not exist in SAP");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 配置传入参数
|
|
|
|
|
JCoParameterList jCoParameterList = func.getImportParameterList();
|
|
|
|
|
if (StringUtils.isEmpty(sapRFW.getAufnr())){
|
|
|
|
@ -321,7 +320,7 @@ public class SapOrderServiceImpl implements SapOrderService {
|
|
|
|
|
System.out.println(func.getExportParameterList());
|
|
|
|
|
String RETCODE= func.getExportParameterList().getString("RETCODE");
|
|
|
|
|
MESSAGE= func.getExportParameterList().getString("MESSAGE");
|
|
|
|
|
if (Constants.FAIL.equals(RETCODE)){
|
|
|
|
|
if (Constants.FAIL.equals(Integer.parseInt(RETCODE))){
|
|
|
|
|
return R.fail("订单号:"+sapRFW.getAufnr()+"报工失败"+MESSAGE);
|
|
|
|
|
}
|
|
|
|
|
return R.ok("",MESSAGE);
|
|
|
|
|