InOutScheduleController.java
817 Bytes
package com.bsth.controller.schedule;
import com.bsth.data.schedule.dto.ScheduleInOut;
import com.bsth.service.schedule.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Collection;
import java.util.List;
/**
* Created by panzhao on 2017/9/4.
*/
@RestController
@RequestMapping("in_out")
public class InOutScheduleController {
@Autowired
ScheduleService inOutScheduleService;
@RequestMapping("all")
public Collection<ScheduleInOut> all(){
return inOutScheduleService.findAll();
}
@RequestMapping("all_out")
public List<ScheduleInOut> all_out(){
return inOutScheduleService.all_out();
}
}