package com.matrix.system.common.actions; 
 | 
  
 | 
import com.matrix.core.constance.MatrixConstance; 
 | 
import com.matrix.core.pojo.AjaxResult; 
 | 
import com.matrix.core.pojo.PaginationVO; 
 | 
import com.matrix.core.tools.WebUtil; 
 | 
import com.matrix.system.common.bean.ProjException; 
 | 
import com.matrix.system.common.bean.SysUsers; 
 | 
import com.matrix.system.common.constance.AppConstance; 
 | 
import com.matrix.system.common.dao.ProjExceptionDao; 
 | 
import org.apache.commons.lang.StringUtils; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.stereotype.Controller; 
 | 
import org.springframework.web.bind.annotation.RequestBody; 
 | 
import org.springframework.web.bind.annotation.RequestMapping; 
 | 
import org.springframework.web.bind.annotation.ResponseBody; 
 | 
  
 | 
import java.util.Arrays; 
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * @author 姜友瑶 
 | 
 * @description 首页配置 
 | 
 * @email 935090232@qq.com 
 | 
 * @date 2019-06-16 
 | 
 */ 
 | 
@Controller 
 | 
public class ProjExceptionAction { 
 | 
  
 | 
    @Autowired 
 | 
    ProjExceptionDao projExceptionDao; 
 | 
  
 | 
    @RequestMapping(value = "/showException") 
 | 
    public @ResponseBody 
 | 
    AjaxResult showException(Long id) { 
 | 
        ProjException projException = projExceptionDao.selectById(id); 
 | 
        return AjaxResult.buildSuccessInstance(Arrays.asList(projException)); 
 | 
    } 
 | 
  
 | 
    @RequestMapping(value = "/projException/del") 
 | 
    public @ResponseBody 
 | 
    AjaxResult del(@RequestBody ProjException projException) { 
 | 
        projExceptionDao.deleteById(projException.getId()); 
 | 
        return AjaxResult.buildSuccessInstance("删除成功"); 
 | 
    } 
 | 
  
 | 
  
 | 
    @RequestMapping(value = "/createEx") 
 | 
    public @ResponseBody 
 | 
    AjaxResult showException2() { 
 | 
        Integer s = 1 / 0; 
 | 
        return AjaxResult.buildSuccessInstance(Arrays.asList("")); 
 | 
    } 
 | 
  
 | 
  
 | 
    /** 
 | 
     * 列表显示 
 | 
     */ 
 | 
    @RequestMapping(value = "/projException/showList") 
 | 
    public @ResponseBody 
 | 
    AjaxResult showList(@RequestBody ProjException projException) { 
 | 
        // 默认按创建时间排序 
 | 
        AjaxResult result = new AjaxResult(AjaxResult.STATUS_SUCCESS, projExceptionDao.selectInPage(projException), projExceptionDao.selectTotalRecord(projException)); 
 | 
        return result; 
 | 
    } 
 | 
  
 | 
  
 | 
  
 | 
  
 | 
} 
 |