|
@@ -5,6 +5,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.jiayue.ssi.annotation.InterfaceLimit;
|
|
import com.jiayue.ssi.annotation.InterfaceLimit;
|
|
import com.jiayue.ssi.annotation.OperateLog;
|
|
import com.jiayue.ssi.annotation.OperateLog;
|
|
|
|
+import com.jiayue.ssi.annotation.PreventReplay;
|
|
import com.jiayue.ssi.backenum.AuditType;
|
|
import com.jiayue.ssi.backenum.AuditType;
|
|
import com.jiayue.ssi.backenum.BusinessType;
|
|
import com.jiayue.ssi.backenum.BusinessType;
|
|
import com.jiayue.ssi.constant.CacheConstants;
|
|
import com.jiayue.ssi.constant.CacheConstants;
|
|
@@ -41,6 +42,7 @@ public class SysParameterController {
|
|
@PostMapping(value = "/addParameter")
|
|
@PostMapping(value = "/addParameter")
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.INSERT, auditType = AuditType.SYS)
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.INSERT, auditType = AuditType.SYS)
|
|
@PreAuthorize("@ss.hasPermi('system:config:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:config:add')")
|
|
|
|
+ @PreventReplay
|
|
public ResponseVO addParameter(@RequestBody SysParameter sysParameter) throws CustomException {
|
|
public ResponseVO addParameter(@RequestBody SysParameter sysParameter) throws CustomException {
|
|
try {
|
|
try {
|
|
if (StringUtils.isEmpty(sysParameter.getSysKey())) {
|
|
if (StringUtils.isEmpty(sysParameter.getSysKey())) {
|
|
@@ -86,6 +88,7 @@ public class SysParameterController {
|
|
@PostMapping(value = "/updateParameter")
|
|
@PostMapping(value = "/updateParameter")
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.UPDATE, auditType = AuditType.SYS)
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.UPDATE, auditType = AuditType.SYS)
|
|
@PreAuthorize("@ss.hasPermi('system:config:edit')")
|
|
@PreAuthorize("@ss.hasPermi('system:config:edit')")
|
|
|
|
+ @PreventReplay
|
|
public ResponseVO updateParameter(@RequestBody SysParameter sysParameter) throws CustomException {
|
|
public ResponseVO updateParameter(@RequestBody SysParameter sysParameter) throws CustomException {
|
|
try {
|
|
try {
|
|
SysParameter existSysParameter = sysParameterService.getById(sysParameter.getId());
|
|
SysParameter existSysParameter = sysParameterService.getById(sysParameter.getId());
|
|
@@ -135,6 +138,7 @@ public class SysParameterController {
|
|
@PostMapping(value = "/deleteParameter")
|
|
@PostMapping(value = "/deleteParameter")
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS)
|
|
@OperateLog(title = "参数管理", businessType = BusinessType.DELETE, auditType = AuditType.SYS)
|
|
@PreAuthorize("@ss.hasPermi('system:config:remove')")
|
|
@PreAuthorize("@ss.hasPermi('system:config:remove')")
|
|
|
|
+ @PreventReplay
|
|
public ResponseVO deleteParameter(String id) throws CustomException {
|
|
public ResponseVO deleteParameter(String id) throws CustomException {
|
|
try {
|
|
try {
|
|
if (StringUtils.isEmpty(id)) {
|
|
if (StringUtils.isEmpty(id)) {
|
|
@@ -163,6 +167,7 @@ public class SysParameterController {
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/getAll")
|
|
@GetMapping(value = "/getAll")
|
|
@PreAuthorize("@ss.hasPermi('system:config:list')")
|
|
@PreAuthorize("@ss.hasPermi('system:config:list')")
|
|
|
|
+ @PreventReplay
|
|
public ResponseVO getAll(String currentPage, String pageSize, String keywords) throws CustomException {
|
|
public ResponseVO getAll(String currentPage, String pageSize, String keywords) throws CustomException {
|
|
try {
|
|
try {
|
|
Integer cp;
|
|
Integer cp;
|