|
|
@ -1,7 +1,10 @@ |
|
|
|
package com.example.demo.controller; |
|
|
|
|
|
|
|
|
|
|
|
import com.example.demo.domain.dou.*; |
|
|
|
|
|
|
|
import com.example.demo.domain.dou.Records; |
|
|
|
import com.example.demo.domain.dou.Searchinfo; |
|
|
|
import com.example.demo.domain.dou.YveTotal; |
|
|
|
import com.example.demo.domain.vo.Page; |
|
|
|
import com.example.demo.domain.vo.Result; |
|
|
|
import com.example.demo.sevice.DouService; |
|
|
@ -32,8 +35,10 @@ public class DouController { |
|
|
|
@RequestMapping("/getYve") |
|
|
|
public Result getYve(@RequestBody Page page){ |
|
|
|
if (ObjectUtils.isEmpty(page.getPageNum())) { |
|
|
|
System.out.println(page.getYve()+"-----"); |
|
|
|
return Result.success(douService.getYve(page.getYve())); |
|
|
|
} else { |
|
|
|
System.out.println(page.getYve()+"++++"); |
|
|
|
return Result.success(douService.searchForPage(page.getPageNum(), page.getPageSize(), page.getYve())); |
|
|
|
} |
|
|
|
} |
|
|
|