报工返回结果修改

master
Yangwl 11 months ago
parent d249fd5b08
commit 06d6da1045

@ -351,6 +351,8 @@ public class SapController extends BaseController {
return sapOrderService.sapRFWOrder(sapRFW); return sapOrderService.sapRFWOrder(sapRFW);
} }
/** /**
* *
* *

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

Loading…
Cancel
Save