|
@@ -26,7 +26,15 @@ import org.jeecgframework.poi.excel.entity.ExportParams;
|
|
|
import org.jeecgframework.poi.excel.entity.ImportParams;
|
|
|
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.PutMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
@@ -36,7 +44,11 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLDecoder;
|
|
|
-import java.util.*;
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Iterator;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 规则组
|
|
@@ -74,7 +86,6 @@ public class RuleGroupController {
|
|
|
if (Check.isNull(requestJson)) {
|
|
|
throw new Exception("请输出需要创建的参数");
|
|
|
}
|
|
|
-
|
|
|
JSONObject returnJson = ruleGroupService.createRuleGroup(requestJson);
|
|
|
if (returnJson.getInteger("code") == 0) {
|
|
|
result.setSuccess(true);
|
|
@@ -186,6 +197,19 @@ public class RuleGroupController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/checkRules")
|
|
|
+ public Result<RuleGroup> checkRules() {
|
|
|
+ Result<RuleGroup> result = new Result<>();
|
|
|
+ try {
|
|
|
+ ruleGroupService.checkRules();
|
|
|
+ result.success("成功!");
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error(e.getMessage(), e);
|
|
|
+ result.error500("操作失败");
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 编辑
|
|
|
*
|