feat:呼出列表添加时间搜索

dev
wangxy 1 year ago
parent 02a7351f2a
commit 72e403e056

@ -25,7 +25,7 @@ import java.util.Objects;
/** /**
* *
* @author wangxy * @author wangxy
*/ */
@Controller @Controller
@ -40,14 +40,14 @@ public class HomeController {
public static final String PAGE_SIZE = "15"; public static final String PAGE_SIZE = "15";
@ApiOperation("首页门户") @ApiOperation("知识库查询")
@GetMapping("/home") @GetMapping("/home")
public String home(ModelMap mmap, public String home(ModelMap mmap,
@RequestParam(required = false) Integer categoryid, @RequestParam(required = false) Integer categoryid,
@RequestParam(required = false) String kname, @RequestParam(required = false) String kname,
@RequestParam(required = false, defaultValue = "1", value = "p") Integer pageNum, @RequestParam(required = false, defaultValue = "1", value = "p") Integer pageNum,
@RequestParam(required = false ,defaultValue = PAGE_SIZE, value = "ps") Integer pageSize) { @RequestParam(required = false ,defaultValue = PAGE_SIZE, value = "ps") Integer pageSize) {
//最新通 //识库查询
PageMethod.startPage(pageNum,pageSize); PageMethod.startPage(pageNum,pageSize);
List<KContent> list = contentService.lambdaQuery() List<KContent> list = contentService.lambdaQuery()
.eq(Objects.nonNull(categoryid), KContent::getCategoryid, categoryid) .eq(Objects.nonNull(categoryid), KContent::getCategoryid, categoryid)

Loading…
Cancel
Save