Commit def2decc authored by 鲁鑫's avatar 鲁鑫

工序外协节点字段控制

parent 59c9b4d4
...@@ -34,6 +34,7 @@ import com.huigou.util.StringUtil; ...@@ -34,6 +34,7 @@ import com.huigou.util.StringUtil;
import org.activiti.engine.delegate.DelegateExecution; import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask; import org.activiti.engine.delegate.DelegateTask;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.task.TaskExecutor;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert; import org.springframework.util.Assert;
...@@ -64,6 +65,8 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce ...@@ -64,6 +65,8 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
private ProcessOutsourceOrderItemRepository processOutsourceOrderItemRepository; private ProcessOutsourceOrderItemRepository processOutsourceOrderItemRepository;
@Autowired @Autowired
private SapPermitApplication sapPermitApplication; private SapPermitApplication sapPermitApplication;
@Autowired
private TaskExecutor asyncWriteExecutor;
@Override @Override
protected String saveBizAndApprovalData() { protected String saveBizAndApprovalData() {
...@@ -166,7 +169,10 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce ...@@ -166,7 +169,10 @@ public class ProcessOutsourceApplicationImpl extends FlowBroker implements Proce
//推送到SAP //推送到SAP
this.sendData(processOutsource); this.sendData(processOutsource);
//创建放行条 //创建放行条
this.startSapPermit(processOutsource); asyncWriteExecutor.execute(()->
//创建放行条
this.startSapPermit(processOutsource)
);
processOutsourceRepository.save(processOutsource); processOutsourceRepository.save(processOutsource);
} }
......
...@@ -83,6 +83,18 @@ public class ProcessOutsourceOrderItem extends AbstractEntity { ...@@ -83,6 +83,18 @@ public class ProcessOutsourceOrderItem extends AbstractEntity {
@Column(name = "MEINS_NAME") @Column(name = "MEINS_NAME")
private String meinsName; private String meinsName;
/**
* 存储地点
*/
@Column(name = "LGORT")
private String lgort;
/**
* 存储地点
*/
@Column(name = "LGORT_NAME")
private String lgortName;
/** /**
* 需求到货日期 * 需求到货日期
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment