package com.xintong.visualinspection.controller;

import java.util.List;

import javax.validation.Valid;

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.RestController;

import com.xintong.system.err.BusinessException;
import com.xintong.visualinspection.bean.Job;
import com.xintong.visualinspection.service.CheckRuleItemService;
import com.xintong.visualinspection.service.JobService;

/**
 * 文件名：CheckRuleIem
 * 版本信息：日期：2017/3/30 Copyright 江苏省交通规划设计院 Corporation 2017 版权所有.
 */
@RestController
@RequestMapping("/job")
public class JobController extends BaseController {

	@Autowired
	private JobService jobService ;
	
	/**
     * 增加考核项
     * @return
     * String
     * @exception
     * @since  1.0.0
     */
    @RequestMapping(value = "/getList")
    public String add(@Valid @RequestBody(required = false) Job job){
    	List<Job> jlist = jobService.getJobList(job) ;
    	return super.returnSuccessResult(jlist);
    }
    
}
