package cn.autoform.web.controller.process; import java.util.List; import java.util.concurrent.TimeoutException; import org.springframework.beans.factory.annotation.Autowired; 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.ProcessTask; import cn.autoform.db.entity.ProcessTaskExtend; import cn.autoform.fw.exception.RestResult; import cn.autoform.fw.utility.RestResultGenerator; import cn.autoform.web.service.process.ProcessTaskService; @RestController public class ProcessTaskController { @Autowired private ProcessTaskService processTaskService; /** * 查询所有待办 * @throws TimeoutException */ @RequestMapping(value = "${requset.processTask1}", method = RequestMethod.POST) public RestResult getTask(@RequestBody String jsonStr) throws TimeoutException{ return RestResultGenerator.genSuccessResult(processTaskService.insertList(jsonStr)); } }