package com.matrix.system.hive.action; import com.matrix.core.pojo.AjaxResult; import com.matrix.core.pojo.PaginationVO; import com.matrix.system.hive.bean.LastestWorkBeatuistaff; import com.matrix.system.hive.service.LastestWorkBeatuistaffService; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import javax.annotation.Resource; import java.util.List; /** * * @date 2016-12-22 10:46 */ @Controller @RequestMapping(value = "admin/lastestWorkBeatuistaff") public class LastestWorkBeatuistaffController extends BaseController{ @Resource private LastestWorkBeatuistaffService currentService; /** * 列表显示 */ @RequestMapping(value = "/showList") public @ResponseBody AjaxResult showList(LastestWorkBeatuistaff lastestWorkBeatuistaff, PaginationVO pageVo) { return showList(currentService, lastestWorkBeatuistaff, pageVo); } /** * 显示最新排班的员工 */ @RequestMapping(value = "/findLasteWork") public @ResponseBody AjaxResult findLasteWork(PaginationVO pageVo) { LastestWorkBeatuistaff lastestWorkBeatuistaff = new LastestWorkBeatuistaff(); lastestWorkBeatuistaff.setShopId(getMe().getShopId()); List list=currentService.findByModel(lastestWorkBeatuistaff); return new AjaxResult(AjaxResult.STATUS_SUCCESS, list, 0); } }