|
|
@@ -97,6 +97,21 @@ public class ListWorkflowsListener extends AbstractServiceApiPlusListener {
|
|
|
super.insert(context, workflowPo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_WORKFLOW);
|
|
|
}
|
|
|
|
|
|
+ workflowDto = new WorkflowDto();
|
|
|
+ workflowDto.setStoreId(reqJson.getString("storeId"));
|
|
|
+ workflowDto.setFlowType(WorkflowDto.FLOW_TYPE_PURCHASE);
|
|
|
+ count = workflowInnerServiceSMOImpl.queryWorkflowsCount(workflowDto);
|
|
|
+ if (count < 1) {
|
|
|
+ workflowPo = new WorkflowPo();
|
|
|
+ workflowPo.setCommunityId("9999"); //所有小区
|
|
|
+ workflowPo.setFlowId("-3");
|
|
|
+ workflowPo.setFlowName("物品领用");
|
|
|
+ workflowPo.setFlowType(WorkflowDto.FLOW_TYPE_COLLECTION);
|
|
|
+ workflowPo.setSkipLevel(WorkflowDto.DEFAULT_SKIP_LEVEL);
|
|
|
+ workflowPo.setStoreId(reqJson.getString("storeId"));
|
|
|
+ super.insert(context, workflowPo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_WORKFLOW);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
commit(context);
|
|
|
|