艾普mes-物料-异常优化
This commit is contained in:
parent
b43381e03e
commit
53e9b62083
|
|
@ -17,10 +17,10 @@ import nc.jdbc.framework.processor.ColumnProcessor;
|
||||||
import nc.jdbc.framework.processor.MapProcessor;
|
import nc.jdbc.framework.processor.MapProcessor;
|
||||||
import nc.util.mmf.framework.base.MMValueCheck;
|
import nc.util.mmf.framework.base.MMValueCheck;
|
||||||
import nc.vo.bd.material.MaterialVO;
|
import nc.vo.bd.material.MaterialVO;
|
||||||
import nc.vo.bd.material.stock.MaterialStockVO;
|
|
||||||
import nc.vo.fi.pub.SqlUtils;
|
import nc.vo.fi.pub.SqlUtils;
|
||||||
import nc.vo.org.OrgVO;
|
import nc.vo.org.OrgVO;
|
||||||
import nc.vo.pub.BusinessException;
|
import nc.vo.pub.BusinessException;
|
||||||
|
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
|
|
@ -88,8 +88,13 @@ public class MaterialToEpicMesListener implements IBusinessListener {
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (BusinessException ex) {
|
} catch (BusinessException ex) {
|
||||||
logDl.error("EpicMes-Material-exp:" + ex.getMessage(), ex);
|
String message = ex.getMessage();
|
||||||
handleSyncMaterialExp(useVOs, "N", ex.getMessage());
|
logDl.error("EpicMes-Material-exp:" + message, ex);
|
||||||
|
if (message != null && message.contains("Connection timed out")) {
|
||||||
|
handleSyncMaterialExp(useVOs, "N", message);
|
||||||
|
} else {
|
||||||
|
ExceptionUtils.wrappException(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -185,16 +190,6 @@ public class MaterialToEpicMesListener implements IBusinessListener {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getGoodsProject(String pkMaterial) throws BusinessException {
|
|
||||||
// 物料-库存信息页签勾选项目为专用件、未勾选项目为通用件
|
|
||||||
String mrlTypeErp = "3"; // 物料类型ERP(1:专用件,3:通用件)
|
|
||||||
String fixasst2 = MyHelper.transferField(MaterialStockVO.getDefaultTableName(), MaterialStockVO.FIXASST2, MaterialStockVO.PK_MATERIAL, pkMaterial);
|
|
||||||
if ("Y".equals(fixasst2)) {
|
|
||||||
mrlTypeErp = "1";
|
|
||||||
}
|
|
||||||
return mrlTypeErp;
|
|
||||||
}
|
|
||||||
|
|
||||||
private String getGoodsType(String pkMaterial) throws BusinessException {
|
private String getGoodsType(String pkMaterial) throws BusinessException {
|
||||||
String targetCode = configParams.get("dldzOrg");
|
String targetCode = configParams.get("dldzOrg");
|
||||||
String[] orgItem = targetCode.split(",");
|
String[] orgItem = targetCode.split(",");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue