Commit 1ad2bf1e by 王衍超

完善提交工作流逻辑,合同;

parent 6bb4d890
...@@ -122,9 +122,10 @@ public class ContractServiceImpl implements ContractService { ...@@ -122,9 +122,10 @@ public class ContractServiceImpl implements ContractService {
KObject kobject = contractDao.load(id); KObject kobject = contractDao.load(id);
if (needSubmitFlow(ContractConstant.BIZ_TYPE,kobject,"SUBMIT")) { if (needSubmitFlow(ContractConstant.BIZ_TYPE,kobject,"SUBMIT")) {
inzWorkflowService.startWorkflow("SUBMIT", ContractConstant.BIZ_TYPE, kobject.getString(ContractConstant.CONTRACT_NAME),kobject); inzWorkflowService.startWorkflow("SUBMIT", ContractConstant.BIZ_TYPE, kobject.getString(ContractConstant.CONTRACT_NAME),kobject);
}else{
afterApprovedForInsert(kobject);
} }
// else{
// afterApprovedForInsert(kobject);
// }
} }
@Override @Override
...@@ -133,9 +134,10 @@ public class ContractServiceImpl implements ContractService { ...@@ -133,9 +134,10 @@ public class ContractServiceImpl implements ContractService {
KObject kobject = contractDao.load(id); KObject kobject = contractDao.load(id);
if (needSubmitFlow(ContractConstant.BIZ_TYPE,kobject,"CHANGE")) { if (needSubmitFlow(ContractConstant.BIZ_TYPE,kobject,"CHANGE")) {
inzWorkflowService.startWorkflow("SUBMIT", ContractConstant.BIZ_TYPE_UPDATE, kobject.getString(ContractConstant.CONTRACT_NAME),kobject); inzWorkflowService.startWorkflow("SUBMIT", ContractConstant.BIZ_TYPE_UPDATE, kobject.getString(ContractConstant.CONTRACT_NAME),kobject);
}else{
afterApprovedForUpdate(kobject);
} }
// else{
// afterApprovedForUpdate(kobject);
// }
} }
/** /**
......
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