Merge remote-tracking branch 'origin/main'

This commit is contained in:
xvv 2024-09-18 09:37:47 +08:00
commit e0de005c1b

View File

@ -42,8 +42,10 @@ public class SysLogController extends BaseController {
* @return 所有数据
*/
@GetMapping
public ResponseObject selectAll(Page<SysLog> page, SysLog sysLog) {
public ResponseObject selectAll(@RequestParam(value = "pageNum",defaultValue = "1") Integer pageNo,
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize, SysLog sysLog) {
LambdaQueryWrapper<SysLog> sysLogLambdaQueryWrapper = new LambdaQueryWrapper();
Page page =new Page(pageNo,pageSize);
if (!StringUtils.isEmpty(sysLog.getCreateName())){
sysLogLambdaQueryWrapper.like(SysLog::getCreateName,sysLog.getCreateName());
}