zxl
9 小时以前 3b0516a2959e25576e4f3fda697a3b025d06c8c9
ycl-server/src/main/java/com/ycl/platform/controller/HomeController.java
@@ -8,6 +8,9 @@
import org.springframework.web.bind.annotation.RestController;
import pojo.AjaxResult;
import java.lang.reflect.InvocationTargetException;
import java.text.ParseException;
/**
 * @author gonghl
 * @since 2024/8/1 下午 5:41
@@ -22,7 +25,6 @@
    private final ITMonitorService tMonitorService;
    private final WorkOrderService workOrderService;
    private final YwPointService ywPointService;
    private final IContractScoreService contractScoreService;
    private final ICheckScoreService checkScoreService;
    @GetMapping("/ywUnitList")
@@ -33,6 +35,20 @@
    @GetMapping("/monitor")
    public AjaxResult monitor(HomeQuery monitorQuery) {
        return AjaxResult.success(tMonitorService.home(monitorQuery));
    }
    @GetMapping("/video")
    public AjaxResult videoHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return AjaxResult.success(tMonitorService.videoHome(monitorQuery));
    }
    @GetMapping("/car")
    public AjaxResult carHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return AjaxResult.success(tMonitorService.carHome(monitorQuery));
    }
    @GetMapping("/face")
    public AjaxResult faceHome(HomeQuery monitorQuery) throws ParseException, InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
        return AjaxResult.success(tMonitorService.faceHome(monitorQuery));
    }
    @GetMapping("/workOrder")
@@ -56,8 +72,8 @@
    }
    @GetMapping("/calculate")
    public AjaxResult calculate() {
        return AjaxResult.success(contractScoreService.calculate());
    public AjaxResult calculate(String category) {
        return AjaxResult.success(checkScoreService.calculate(category));
    }
}