|  | @@ -18,6 +18,10 @@ import com.iamberry.wechat.tools.ResponseJson;
 | 
	
		
			
				|  |  |  import com.iamberry.wechat.tools.ResultInfo;
 | 
	
		
			
				|  |  |  import net.sf.json.JSONArray;
 | 
	
		
			
				|  |  |  import net.sf.json.JSONObject;
 | 
	
		
			
				|  |  | +import org.activiti.bpmn.model.*;
 | 
	
		
			
				|  |  | +import org.activiti.bpmn.model.Process;
 | 
	
		
			
				|  |  | +import org.activiti.engine.RepositoryService;
 | 
	
		
			
				|  |  | +import org.activiti.engine.repository.Deployment;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Controller;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
	
		
			
				|  | @@ -53,6 +57,8 @@ public class ApprovalController {
 | 
	
		
			
				|  |  |      private ApplyPickService applyPickService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private ApprovalProductionService approvalProductionService;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private RepositoryService repositoryService;
 | 
	
		
			
				|  |  |      @SuppressWarnings("restriction")
 | 
	
		
			
				|  |  |      private BASE64Decoder decoder = new BASE64Decoder();
 | 
	
		
			
				|  |  |      /**
 | 
	
	
		
			
				|  | @@ -105,6 +111,7 @@ public class ApprovalController {
 | 
	
		
			
				|  |  |              approvalProductionItem.setItemShouldStorage(orderItem.getInt("itemProductNum"));
 | 
	
		
			
				|  |  |              approvalProductionItem.setItemActualStorage(0);
 | 
	
		
			
				|  |  |              approvalProductionItem.setItemLackNumber(orderItem.getInt("itemProductNum"));
 | 
	
		
			
				|  |  | +            approvalProductionItem.setItemCanpickNumber(0);
 | 
	
		
			
				|  |  |              if (orderItem.containsKey("itemExternalModel")) {
 | 
	
		
			
				|  |  |                  approvalProductionItem.setItemExternalModel(orderItem.getString("itemExternalModel"));
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -652,4 +659,36 @@ public class ApprovalController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          return rj;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +    /*@ResponseBody
 | 
	
		
			
				|  |  | +    @RequestMapping(value = "/deploymentPrecessDefinition")
 | 
	
		
			
				|  |  | +    public void deploymentPrecessDefinition(){
 | 
	
		
			
				|  |  | +        getBpmnModel();
 | 
	
		
			
				|  |  | +        repositoryService.deleteDeployment("310008",true);
 | 
	
		
			
				|  |  | +        repositoryService.deleteDeployment("427508",true);
 | 
	
		
			
				|  |  | +        repositoryService.deleteDeployment("427501",true);
 | 
	
		
			
				|  |  | +        repositoryService.deleteDeployment("422501",true);
 | 
	
		
			
				|  |  | +        *//*Deployment deployment = repositoryService.createDeployment()
 | 
	
		
			
				|  |  | +                .key("GenerationApproval")
 | 
	
		
			
				|  |  | +                .name("提交审批流程")
 | 
	
		
			
				|  |  | +                .addClasspathResource("RST.bpmn")
 | 
	
		
			
				|  |  | +                .deploy();
 | 
	
		
			
				|  |  | +        Deployment deployment = repositoryService.createDeployment()
 | 
	
		
			
				|  |  | +                .key("ApplicationForDelivery")
 | 
	
		
			
				|  |  | +                .name("提交提货订单审批流程")
 | 
	
		
			
				|  |  | +                .addClasspathResource("pickRst.bpmn")
 | 
	
		
			
				|  |  | +                .deploy();*//*
 | 
	
		
			
				|  |  | +        //获取审批任务id
 | 
	
		
			
				|  |  | +        Map<String, Object> taskinfo = approvalTaskService.salesmanSubmitApply(1);
 | 
	
		
			
				|  |  | +        String[] split = (String[])taskinfo.get("users");
 | 
	
		
			
				|  |  | +        for (String name : split){
 | 
	
		
			
				|  |  | +            System.out.println(name);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        Map<String, Object> taskinfo2 = approvalTaskService.salesmanSubmitApply(2);
 | 
	
		
			
				|  |  | +        String[] split2 = (String[])taskinfo2.get("users");
 | 
	
		
			
				|  |  | +        for (String name : split2){
 | 
	
		
			
				|  |  | +            System.out.println(name);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }*/
 | 
	
		
			
				|  |  |  }
 |