| package com.matrix.system.hive.action; | 
|   | 
| import com.matrix.core.anotations.SaveRequestToken; | 
| import com.matrix.core.pojo.AjaxResult; | 
| import com.matrix.core.pojo.PaginationVO; | 
| import com.matrix.core.tools.WebUtil; | 
| import com.matrix.system.constance.Dictionary; | 
| import com.matrix.system.hive.bean.ParameterSettings; | 
| import com.matrix.system.hive.service.ParameterSettingsService; | 
| 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 2017-02-05 18:28 | 
|  */ | 
| @Controller | 
| @RequestMapping(value = "admin/parameterSettings") | 
| public class ParameterSettingsController extends BaseController{ | 
|   | 
|     @Resource | 
|     private ParameterSettingsService currentService; | 
|      | 
|   | 
|   | 
|      | 
|     /** | 
|      * 列表显示 | 
|      */ | 
|     @RequestMapping(value = "/showList") | 
|     public @ResponseBody | 
|     AjaxResult showList(ParameterSettings parameterSettings, PaginationVO pageVo) { | 
|   | 
|         return showList(currentService, parameterSettings, pageVo); | 
|     } | 
|      | 
|   | 
|   | 
|      | 
|        /** | 
|      * 进入修改界面 | 
|      */    | 
|     @SaveRequestToken | 
|        @RequestMapping(value = "/editForm") | 
|     public String editForm(Long id) { | 
|         ParameterSettings parameterSettings; | 
|         if (id != null) { | 
|             parameterSettings = currentService.findById(id); | 
|             WebUtil.getRequest().setAttribute("obj", parameterSettings); | 
|         } | 
|         return "admin/hive/parameterSettings-form"; | 
|     } | 
|         | 
|         | 
|        /** | 
|      * 删除 | 
|      */   | 
|      @RequestMapping(value = "/del") | 
|     public @ResponseBody AjaxResult del(String keys) { | 
|   | 
|         return remove(currentService, keys); | 
|     } | 
|    | 
| } |