| | |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.common.system.vo.LoginUser; |
| | | import org.jeecg.modules.mdc.dto.ComparativeAnalysisDto; |
| | | import org.jeecg.modules.mdc.dto.DayUtilizationRateDto; |
| | | import org.jeecg.modules.mdc.service.MdcEfficiencyReportService; |
| | | import org.jeecg.modules.mdc.vo.MdcEfficiencyReportQueryVo; |
| | | import org.jeecg.modules.mdc.vo.MdcEfficiencyVo; |
| | | import org.jeecg.modules.mdc.vo.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-班次利用率列表查询") |
| | | @ApiOperation(value = "设备效率报表-班次利用率列表查询", notes = "设备效率报表-班次利用率列表查询") |
| | | @GetMapping("/shiftEfficiencyList") |
| | | public Result shiftEfficiencyList(MdcEfficiencyReportQueryVo vo) { |
| | | @AutoLog(value = "设备效率报表-开动率列表查询") |
| | | @ApiOperation(value = "设备效率报表-开动率列表查询", notes = "设备效率报表-开动率列表查询") |
| | | @GetMapping("/efficiencyPOList") |
| | | public Result efficiencyPOList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyList(userId, vo); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyPOList(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-班次利用率列表查询") |
| | | @ApiOperation(value = "设备效率报表-班次利用率列表查询", notes = "设备效率报表-班次利用率列表查询") |
| | | @GetMapping("/efficiencyShiftList") |
| | | public Result efficiencyShiftList(MdcEfficiencyReportShiftQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyShiftVo result = mdcEfficiencyReportService.efficiencyShiftList(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-统计分析列表") |
| | | @ApiOperation(value = "设备效率报表-统计分析列表", notes = "设备效率报表-统计分析列表") |
| | | @GetMapping("/dayStatisticalRate") |
| | | public Result dayStatisticalRate(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | StatisticalAnalysisVo result = mdcEfficiencyReportService.dayStatisticalRate(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-对比分析") |
| | | @ApiOperation(value = "设备效率报表-对比分析", notes = "设备效率报表-对比分析") |
| | | @GetMapping("/comparativeAnalysis") |
| | | public Result comparativeAnalysis(ComparativeAnalysisQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | ComparativeAnalysisDto result = mdcEfficiencyReportService.comparativeAnalysis(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-设备日利用率") |
| | | @ApiOperation(value = "设备效率报表-设备日利用率", notes = "设备效率报表-设备日利用率") |
| | | @GetMapping("/dayUtilizationRate") |
| | | public Result dayUtilizationRate(DayUtilizationRateQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | DayUtilizationRateDto result = mdcEfficiencyReportService.dayUtilizationRate(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-设备日利用率对比") |
| | | @ApiOperation(value = "设备效率报表-设备日利用率对比", notes = "设备效率报表-设备日利用率对比") |
| | | @GetMapping("/dayUtilizationRateContrast") |
| | | public Result dayUtilizationRateContrast(DayUtilizationRateContrastQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | DayUtilizationRateDto result = mdcEfficiencyReportService.dayUtilizationRateContrast(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-利用率走势分析列表") |
| | | @ApiOperation(value = "设备效率报表-利用率走势分析列表", notes = "设备效率报表-利用率走势分析列表") |
| | | @GetMapping("/utilizationRateTrendAnalyze") |
| | | public Result utilizationRateTrendAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcUtilizationRateDto result = mdcEfficiencyReportService.utilizationRateTrendAnalyze(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @AutoLog(value = "设备效率报表-利用率分段分析列表") |
| | | @ApiOperation(value = "设备效率报表-利用率分段分析列表", notes = "设备效率报表-利用率分段分析列表") |
| | | @GetMapping("/utilizationRateSectionAnalyze") |
| | | public Result utilizationRateSectionAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcUtilizationRateDto result = mdcEfficiencyReportService.utilizationRateSectionAnalyze(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |