|
|
@ -1,8 +1,10 @@
|
|
|
|
package com.ruoyi.web.controller.base;
|
|
|
|
package com.ruoyi.web.controller.base;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
@ -83,6 +85,8 @@ public class SysParamConfigController extends BaseController {
|
|
|
|
@PostMapping("/add")
|
|
|
|
@PostMapping("/add")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public AjaxResult addSave(SysParamConfig sysParamConfig) {
|
|
|
|
public AjaxResult addSave(SysParamConfig sysParamConfig) {
|
|
|
|
|
|
|
|
sysParamConfig.setCreateBy(ShiroUtils.getLoginName());
|
|
|
|
|
|
|
|
sysParamConfig.setCreateTime(new Date());
|
|
|
|
return toAjax(sysParamConfigService.insertSysParamConfig(sysParamConfig));
|
|
|
|
return toAjax(sysParamConfigService.insertSysParamConfig(sysParamConfig));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -100,6 +104,8 @@ public class SysParamConfigController extends BaseController {
|
|
|
|
@PostMapping("/edit")
|
|
|
|
@PostMapping("/edit")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public AjaxResult editSave(SysParamConfig sysParamConfig) {
|
|
|
|
public AjaxResult editSave(SysParamConfig sysParamConfig) {
|
|
|
|
|
|
|
|
sysParamConfig.setUpdateBy(ShiroUtils.getLoginName());
|
|
|
|
|
|
|
|
sysParamConfig.setUpdateTime(new Date());
|
|
|
|
return toAjax(sysParamConfigService.updateSysParamConfig(sysParamConfig));
|
|
|
|
return toAjax(sysParamConfigService.updateSysParamConfig(sysParamConfig));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|