Helius
2021-03-12 62bf99d419e470f5556f21682d0d8ee8b9e20412
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.matrix.system.hive.action;
 
import java.util.List;
 
import javax.annotation.Resource;
 
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.pojo.PaginationVO;
import com.matrix.system.constance.Dictionary;
import com.matrix.system.hive.bean.ServicesFlow;
import com.matrix.system.hive.service.ServicesFlowService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
 
 
/**
 * 
 *  服务单流水
 * @author:姜友瑶
 * @date 2016年9月13日
 */
@Controller
@RequestMapping(value = "admin/servicesFlow")
public class ServicesFlowController extends BaseController {
 
    @Resource
    private ServicesFlowService currentService;
 
 
    
    
    
    //记录编辑前的值Before_Edit_Value
    public static final String BEV="ServicesFlow_BEV";
    
    public static final String fnCode = "servicesFlow";
    public static final String search = fnCode + ":search";
    public static final String edit = fnCode + ":edit";
    public static final String del = fnCode + ":del";
    public static final String add = fnCode + ":add";
 
    /**
     * 列表显示
     */
    @RequestMapping(value = "/showList")
    public @ResponseBody
    AjaxResult showList(ServicesFlow servicesFlow, PaginationVO pageVo) {
 
        if(!getMe().getShopRole().equals(Dictionary.FLAG_YES_Y)){
            servicesFlow.setShopId(getMe().getShopId());
        }
 
        //return showList(currentService, servicesFlow, pageVo);
        
 
        List<ServicesFlow> dataList = currentService.findInPage2(servicesFlow, pageVo);
        AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, dataList, currentService.findTotal2(servicesFlow));
        return result;
    }
 
}