package cn.autoform.web.controller.process; import java.util.List; import java.util.Map; import javax.annotation.Resource; import cn.autoform.util.thread.Keys; import cn.autoform.util.thread.ThreadData; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import cn.autoform.db.entity.ProcessApproval; import cn.autoform.db.entity.ProcessLog; import cn.autoform.fw.exception.RestResult; import cn.autoform.fw.utility.RestResultGenerator; import cn.autoform.web.service.process.ProcessApprovalService; @RestController public class ProcessApprovalController { @Resource private ProcessApprovalService processApp; /** * 根据表单ID和组织机构ID,查询流程定义 */ @RequestMapping(value = "getApproval", method = RequestMethod.POST) public RestResult getApproval(@RequestBody ProcessApproval pro){ return RestResultGenerator.genSuccessResult(processApp.getApproval(pro)); } }