jyy
2021-01-26 ab2879bbcb846256cc182198b9c04e50fbc276c1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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<LastestWorkBeatuistaff> list=currentService.findByModel(lastestWorkBeatuistaff);
        return new AjaxResult(AjaxResult.STATUS_SUCCESS,  list, 0);
    }
       
  
}