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; 
 | 
    } 
 | 
  
 | 
} 
 |