|
|
@ -5,6 +5,7 @@ import com.example.demo.domain.entity.Detail; |
|
|
|
import com.example.demo.domain.entity.DetailY; |
|
|
|
import com.example.demo.domain.entity.UserDetailExport; |
|
|
|
import com.example.demo.domain.vo.*; |
|
|
|
import com.example.demo.serviceImpl.DetailYServiceImpl; |
|
|
|
import com.example.demo.sevice.DetailService; |
|
|
|
import com.example.demo.sevice.DetailYService; |
|
|
|
//import com.example.demo.sevice.OtherService; |
|
|
@ -24,7 +25,7 @@ import java.util.List; |
|
|
|
@Slf4j |
|
|
|
@CrossOrigin |
|
|
|
public class DetailYController { |
|
|
|
private final DetailYService detailYService; |
|
|
|
private final DetailYServiceImpl detailYService; |
|
|
|
private final OtherService otherService; |
|
|
|
@PostMapping("/add") |
|
|
|
public Result add(@RequestBody DetailY detailY) { |
|
|
@ -42,6 +43,9 @@ public class DetailYController { |
|
|
|
return Result.success(detailYService.getCount(page.getDetailY())); |
|
|
|
} |
|
|
|
else { |
|
|
|
System.out.println(page.getPageNum()); |
|
|
|
System.out.println(page.getPageSize()); |
|
|
|
System.out.println(page.getDetailY().getSortField()); |
|
|
|
return Result.success(detailYService.getDetailByPage(page.getPageNum(), page.getPageSize(), page.getDetailY())); |
|
|
|
} |
|
|
|
} |
|
|
|