| | |
| | | |
| | | |
| | | import com.flightfeather.monitor.domain.ds1.entity.RiskValue; |
| | | import com.flightfeather.monitor.pojo.AnalysisData; |
| | | import com.flightfeather.monitor.pojo.Result; |
| | | import com.flightfeather.monitor.service.AnalysisDataService; |
| | | import com.flightfeather.monitor.service.RiskAnalysisService; |
| | | import com.flightfeather.monitor.service.RiskValueService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | @CrossOrigin |
| | | public class RiskValueController { |
| | | @Autowired |
| | | private RiskAnalysisService riskAnalysisService; |
| | | private RiskValueService riskValueService; |
| | | |
| | | |
| | | /*根据站点名字(可选值),月份,类型来返回风险值*/ |
| | | /** |
| | | * 根据站点名字(可选值),月份,类型来返回风险值 |
| | | * |
| | | * @param mnCode |
| | | * @param month |
| | | * @param type |
| | | * @return |
| | | */ |
| | | @GetMapping("/month") |
| | | public Result queryRiskDataByMonth(String siteName,String month,String type){ |
| | | List<RiskValue> list =riskAnalysisService.queryRiskDataByMonth(siteName,month,type); |
| | | public Result queryRiskDataByMonth( |
| | | @RequestParam String mnCode, |
| | | @RequestParam String month, |
| | | @RequestParam String type |
| | | ) { |
| | | List<RiskValue> list = riskValueService.queryRiskDataByMonth(mnCode, month, type); |
| | | return Result.success(list); |
| | | } |
| | | } |