|
|
@@ -103,7 +103,10 @@ public class XiangXServiceImpl implements XiangXService {
|
|
|
try {
|
|
|
//更新单据日期为当前时间
|
|
|
baseDao.updateByCondition("ProdInOut","pi_date=to_date('"+dealDate+"','yyyy-MM-dd')","pi_id="+inOutId);
|
|
|
- prodInOutService.postProdInOut(inOutId, caller.toString(),master);
|
|
|
+ modelMap = prodInOutService.postProdInOut(inOutId, caller.toString(),master);
|
|
|
+ if (modelMap.get("success")!=null && "false".equals(modelMap.get("success").toString())){
|
|
|
+ return modelMap;
|
|
|
+ }
|
|
|
}catch (Exception e){
|
|
|
UpdateProdinOutLog(inOutId,false);
|
|
|
baseDao.execute("insert into ERPSYNC_MESSAGELOG (EL_ID,EL_DATA,EL_TYPE,EL_ERROR,EL_DATE,EL_STATUS,EL_CODE) values " +
|
|
|
@@ -121,7 +124,10 @@ public class XiangXServiceImpl implements XiangXService {
|
|
|
try {
|
|
|
//更新单据日期为当前时间
|
|
|
baseDao.updateByCondition("ProdInOut","pi_date=to_date('"+dealDate+"','yyyy-MM-dd')","pi_id="+inOutId);
|
|
|
- prodInOutService.postProdInOut(inOutId, caller.toString(),master);
|
|
|
+ modelMap = prodInOutService.postProdInOut(inOutId, caller.toString(), master);
|
|
|
+ if (modelMap.get("success")!=null && "false".equals(modelMap.get("success").toString())){
|
|
|
+ return modelMap;
|
|
|
+ }
|
|
|
}catch (Exception e){
|
|
|
UpdateProdinOutLog(inOutId,false);
|
|
|
baseDao.execute("insert into ERPSYNC_MESSAGELOG (EL_ID,EL_DATA,EL_TYPE,EL_ERROR,EL_DATE,EL_STATUS,EL_CODE) values " +
|