|
@@ -85,11 +85,14 @@ public class EvaluationController {
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@GetMapping("/getDetailByDishesId")
|
|
@GetMapping("/getDetailByDishesId")
|
|
- public Map<String, Object> getDetailByDishesId(String canteenId, String dishesId) {
|
|
|
|
- if (Blank.isEmpty(canteenId, dishesId)) {
|
|
|
|
|
|
+ public Map<String, Object> getDetailByDishesId(String canteenId, String dishesId, Integer page, Integer limit) {
|
|
|
|
+ if (Blank.isEmpty(canteenId, dishesId, page, limit)) {
|
|
return SendUtil.send(false, ConstStr.RESULT_FAILED);
|
|
return SendUtil.send(false, ConstStr.RESULT_FAILED);
|
|
}
|
|
}
|
|
- return SendUtil.send(true, ConstStr.RESULT_SUCCESS, sEvaluationService.getDetailByDishesId(canteenId, dishesId));
|
|
|
|
|
|
+ if (page <= 0 || limit <= 0) {
|
|
|
|
+ return SendUtil.send(false, ConstStr.RESULT_FAILED);
|
|
|
|
+ }
|
|
|
|
+ return SendUtil.send(true, ConstStr.RESULT_SUCCESS, sEvaluationService.getDetailByDishesId(canteenId, dishesId,page,limit));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|