报工状态修改2

master
zhaoxiaolin 1 year ago
parent 2ad4207e50
commit 385ed16dd5

@ -290,7 +290,7 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
*/
@Override
public R reportWork(MesReportWork mesReportWork) {
String belongWorkOrder = mesReportWork.getWorkorderCode();
if(StringUtils.isNotBlank(mesReportWork.getFactoryCode())){//已经加上ds_
DynamicDataSourceContextHolder.push(mesReportWork.getFactoryCode());// 这是数据源的key
}
@ -325,8 +325,9 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
pHzWork.setSac1(sHzWorks.getSac1());
R sapR = this.reportHzToSap(pHzWork);
logger.info("==========================母工单报工结束"+JSONObject.toJSONString(sapR));
return sapR;
//最终报工标识且sap报工成功关闭子母工单
MesReportWork endReport = mesReportWorkMapper.getEndReport(pHzWork);
// MesReportWork endReport = mesReportWorkMapper.getEndReport(pHzWork);
//-----改为由上位机触发
// if("1".equals(endReport.getEndReport())&&sapR.getCode()==200){
// MesReportWork rworkVo = new MesReportWork();
@ -338,7 +339,7 @@ public class IWCInterfaceServiceImpl implements IWCSInterfaceService {
// mesReportWorkMapper.updateOrderWorkStatus(rworkVo);
// }
}
return R.ok();
return R.fail("子单报工失败");
}
/**

@ -562,14 +562,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mrw.product_name productName,
mrw.sac1,
mrw.sac2
<!--,
rte.tec_machine sac1,
rte.tec_man sac2,
rte.tec_depreciation sac3,
rte.tec_other sac4,
rte.tec_conf_acivity5 sac5,
rte.tec_conf_acivity6 sac6
-->
from (
select
workorder_code,

Loading…
Cancel
Save