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