DutyEmployeeController.java 984 Bytes
package com.bsth.controller.sys;

import com.bsth.controller.BaseController;
import com.bsth.entity.sys.DutyEmployee;
import com.bsth.service.sys.DutyEmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * Created by panzhao on 2017/1/5.
 */
@RestController
@RequestMapping("dutyEmployee")
public class DutyEmployeeController extends BaseController<DutyEmployee, Long> {

    @Autowired
    DutyEmployeeService dutyEmployeeService;

    @RequestMapping(value = "queryByLineAndTime")
    public List<DutyEmployee> getDutyEmployee(@RequestParam String lineCode, @RequestParam String startTime, @RequestParam String endTime) {
        return dutyEmployeeService.getDutyEmployee(lineCode, startTime, endTime);
    }
}