package com.artfess.yhxt.app.controller;

import com.artfess.base.annotation.ApiGroup;
import com.artfess.base.constants.ApiGroupConsts;
import com.artfess.base.model.CommonResult;
import com.artfess.yhxt.contract.manager.impl.WorkOrderInformationManagerImpl;
import com.artfess.yhxt.disease.manager.DiseaseManager;
import com.artfess.yhxt.statistics.vo.Org4AppVO;
import com.artfess.yhxt.statistics.vo.OrgDisease4AppVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
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.util.List;

/**
 * APP管理 前端控制器
 *
 * @company 阿特菲斯信息技术有限公司
 * @author baseli
 * @since 2022-01-05
 */
@RestController
@Slf4j
@RequestMapping("/appServer/v1/")
@Api(tags = "APP管理")
@ApiGroup(group = {ApiGroupConsts.GROUP_BIZ})
public class AppVOController {

//    @Resource
//    private WorkOrderInformationManagerImpl workOrderInformationManager;
//
//    @Resource
//    private DiseaseManager diseaseManager;

//    @GetMapping("/workOrderApp")
//    @ApiOperation(value = "养护工单信息", httpMethod = "GET", notes = "养护工单信息")
//    public CommonResult<Org4AppVO> workOrderApp(@RequestParam String level, @RequestParam(required = false) String dimension, @RequestParam String date) throws Exception {
//        return new CommonResult<Org4AppVO>
//                (true, "养护工单信息", workOrderInformationManager.getWorkOrderCount4App(level,dimension,date));
//
//    }
//
//    @GetMapping("/workOrderListApp")
//    @ApiOperation(value = "养护工单信息", httpMethod = "GET", notes = "养护工单信息")
//    public CommonResult<List<Org4AppVO>> workOrderListApp(@RequestParam String level, @RequestParam(required = false) String dimension, @RequestParam String date) throws Exception {
//        return new CommonResult<List<Org4AppVO>>
//                (true, "养护工单信息", workOrderInformationManager.getWorkOrderCountList4App(level,dimension,date));
//
//    }
//
//    @GetMapping("/diseaseApp")
//    @ApiOperation(value = "病害信息", httpMethod = "GET", notes = "病害信息")
//    public CommonResult<OrgDisease4AppVO> diseaseApp(@RequestParam String level, @RequestParam(required = false) String dimension, @RequestParam String date) throws Exception {
//        return new CommonResult<OrgDisease4AppVO>(true, "病害信息",diseaseManager.getDisease4AppCount(level,dimension,date) );
//
//    }
}
