|
|
@@ -3,16 +3,16 @@ package com.management.platform.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.management.platform.entity.MealTypes;
|
|
|
+import com.management.platform.mapper.MealApplicationsMapper;
|
|
|
+import com.management.platform.mapper.MealTypesMapper;
|
|
|
import com.management.platform.service.MealApplicationsService;
|
|
|
import com.management.platform.service.MealTypesService;
|
|
|
import com.management.platform.util.HttpRespMsg;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
/**
|
|
|
@@ -26,9 +26,15 @@ import java.time.LocalDateTime;
|
|
|
@RestController
|
|
|
@RequestMapping("/meal-types")
|
|
|
public class MealTypesController {
|
|
|
- @Autowired
|
|
|
+ @Resource
|
|
|
private MealTypesService mealTypesService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private MealTypesMapper mealTypesMapper;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private MealApplicationsMapper mealApplicationsMapper;
|
|
|
+
|
|
|
@RequestMapping("/getMeals")
|
|
|
public HttpRespMsg getMeals(){
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|