Commit 4bdc9d85 by 吴迪

【修改】bug修改

parent 0c31b453
...@@ -36,7 +36,7 @@ public class SQLFilter { ...@@ -36,7 +36,7 @@ public class SQLFilter {
str = str.toLowerCase(); str = str.toLowerCase();
//非法字符 //非法字符
String[] keywords = {"master", "truncate", "insert", "select", "delete", "update", "declare", "alter", "drop"}; String[] keywords = {"master", "truncate", "insert", "select", "delete", "declare", "alter", "drop"};
//判断是否包含非法字符 //判断是否包含非法字符
for(String keyword : keywords){ for(String keyword : keywords){
......
...@@ -137,7 +137,7 @@ public class MedicalController extends AbstractController { ...@@ -137,7 +137,7 @@ public class MedicalController extends AbstractController {
@PostMapping("/api/getList10ByType") @PostMapping("/api/getList10ByType")
public R getList10ByType(@RequestBody MedicalEntity medical) { public R getList10ByType(@RequestBody MedicalEntity medical) {
QueryWrapper<MedicalEntity> queryWrapper = new QueryWrapper<>(); QueryWrapper<MedicalEntity> queryWrapper = new QueryWrapper<>();
queryWrapper.select("top 10 id,title "); queryWrapper.select("top 7 id,title ");
queryWrapper.gt("level", "0"); queryWrapper.gt("level", "0");
queryWrapper.eq("status", "1"); queryWrapper.eq("status", "1");
queryWrapper.orderByDesc("level"); queryWrapper.orderByDesc("level");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment