|
@@ -7,6 +7,7 @@ import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -23,6 +24,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
@RequestMapping("dining_room")
|
|
@RequestMapping("dining_room")
|
|
public class DiningRoomController {
|
|
public class DiningRoomController {
|
|
|
|
|
|
|
|
+ @Value("${spring.profiles.active}")
|
|
|
|
+ private String active;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private RestaurantService restaurantService;
|
|
private RestaurantService restaurantService;
|
|
@@ -39,7 +42,12 @@ public class DiningRoomController {
|
|
@ApiOperation("查询智能看板统计画像的餐厅统计消费信息报表")
|
|
@ApiOperation("查询智能看板统计画像的餐厅统计消费信息报表")
|
|
@PostMapping("getRestaurantConsumptionChart")
|
|
@PostMapping("getRestaurantConsumptionChart")
|
|
public ReturnMsg getPersonnelInfoList(@RequestBody IocParam iocParam){
|
|
public ReturnMsg getPersonnelInfoList(@RequestBody IocParam iocParam){
|
|
- return restaurantService.getRestaurantConsumptionChart(iocParam);
|
|
|
|
|
|
+ if(active.equals("publish")){
|
|
|
|
+ return restaurantService.getRestaurantConsumptionChartData(iocParam);
|
|
|
|
+ }else{
|
|
|
|
+ return restaurantService.getRestaurantConsumptionChart(iocParam);
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|