| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | 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.vo.*; |
| | | 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; |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-利用率列表查询", notes = "设备效率报表-利用率列表查询") |
| | | @GetMapping("/efficiencyList") |
| | | public Result efficiencyList(MdcEfficiencyReportQueryVo vo) { |
| | | public Result<?> efficiencyList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyList(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-开动率列表查询", notes = "设备效率报表-开动率列表查询") |
| | | @GetMapping("/efficiencyPOList") |
| | | public Result efficiencyPOList(MdcEfficiencyReportQueryVo vo) { |
| | | public Result<?> efficiencyPOList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyPOList(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-班次利用率列表查询", notes = "设备效率报表-班次利用率列表查询") |
| | | @GetMapping("/efficiencyShiftList") |
| | | public Result efficiencyShiftList(MdcEfficiencyReportShiftQueryVo vo) { |
| | | public Result<?> efficiencyShiftList(MdcEfficiencyReportShiftQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyShiftVo result = mdcEfficiencyReportService.efficiencyShiftList(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-统计分析列表", notes = "设备效率报表-统计分析列表") |
| | | @GetMapping("/dayStatisticalRate") |
| | | public Result dayStatisticalRate(MdcEfficiencyReportQueryVo vo) { |
| | | public Result<?> dayStatisticalRate(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | StatisticalAnalysisVo result = mdcEfficiencyReportService.dayStatisticalRate(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-对比分析", notes = "设备效率报表-对比分析") |
| | | @GetMapping("/comparativeAnalysis") |
| | | public Result comparativeAnalysis(ComparativeAnalysisQueryVo vo) { |
| | | public Result<?> comparativeAnalysis(ComparativeAnalysisQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | ComparativeAnalysisDto result = mdcEfficiencyReportService.comparativeAnalysis(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-设备日利用率", notes = "设备效率报表-设备日利用率") |
| | | @GetMapping("/dayUtilizationRate") |
| | | public Result dayUtilizationRate(DayUtilizationRateQueryVo vo) { |
| | | public Result<?> dayUtilizationRate(DayUtilizationRateQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | DayUtilizationRateDto result = mdcEfficiencyReportService.dayUtilizationRate(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-设备日利用率对比", notes = "设备效率报表-设备日利用率对比") |
| | | @GetMapping("/dayUtilizationRateContrast") |
| | | public Result dayUtilizationRateContrast(DayUtilizationRateContrastQueryVo vo) { |
| | | public Result<?> dayUtilizationRateContrast(DayUtilizationRateContrastQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | DayUtilizationRateDto result = mdcEfficiencyReportService.dayUtilizationRateContrast(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-利用率走势分析列表", notes = "设备效率报表-利用率走势分析列表") |
| | | @GetMapping("/utilizationRateTrendAnalyze") |
| | | public Result utilizationRateTrendAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | public Result<?> utilizationRateTrendAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcUtilizationRateDto result = mdcEfficiencyReportService.utilizationRateTrendAnalyze(userId, vo); |
| | |
| | | |
| | | @ApiOperation(value = "设备效率报表-利用率分段分析列表", notes = "设备效率报表-利用率分段分析列表") |
| | | @GetMapping("/utilizationRateSectionAnalyze") |
| | | public Result utilizationRateSectionAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | 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); |
| | | } |
| | | |
| | | // @ApiOperation(value = "设备效率报表-综合利用率统计分析", notes = "设备效率报表-综合利用率统计分析") |
| | | // @GetMapping("/comprehensiveRayeAnalyze") |
| | | // public Result comprehensiveRayeAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | // LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | // String userId = user.getId(); |
| | | // MdcUtilizationRateDto result = mdcEfficiencyReportService.comprehensiveRayeAnalyze(userId, vo); |
| | | // return Result.OK(result); |
| | | // } |
| | | @ApiOperation(value = "设备效率报表-综合利用率统计分析", notes = "设备效率报表-综合利用率统计分析") |
| | | @GetMapping("/comprehensiveRateAnalyze") |
| | | public Result<?> comprehensiveRateAnalyze(EquEffVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Map<String, Object> result = mdcEfficiencyReportService.comprehensiveRateAnalyze(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | // @ApiOperation(value = "设备效率报表-班组综合利用率统计分析", notes = "设备效率报表-综合利用率统计分析") |
| | | // @GetMapping("/teamComprehensiveRateAnalyze") |
| | | // public Result teamComprehensiveRateAnalyze(DayUtilizationRateContrastQueryVo vo) { |
| | | // LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | // String userId = user.getId(); |
| | | // MdcUtilizationRateDto result = mdcEfficiencyReportService.teamComprehensiveRateAnalyze(userId, vo); |
| | | // return Result.OK(result);Equipment utilization distribution of each team |
| | | // } |
| | | @ApiOperation(value = "设备效率报表-班组综合利用率统计分析", notes = "设备效率报表-综合利用率统计分析") |
| | | @GetMapping("/teamEfficiencyAnalyzeByMonth") |
| | | public Result<?> teamEfficiencyAnalyzeByMonth(EquEffVo equEffVo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Map<String, Object> result = mdcEfficiencyReportService.teamEfficiencyAnalyzeByMonth(userId, equEffVo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | // @ApiOperation(value = "设备效率报表-配送小组维度各班组月设备利用分布", notes = "设备效率报表-配送小组维度各班组月设备利用分布") |
| | | // @GetMapping("/teamEquipmentEfficiencyAnalyze") |
| | | // public Result teamEquipmentEfficiencyAnalyze(TeamEquEffVo teamEquEffVo) { |
| | | // Map<String, Object> result = mdcEfficiencyReportService.teamEquipmentEfficiencyAnalyze(teamEquEffVo); |
| | | // return Result.OK(result); |
| | | // } |
| | | @ApiOperation(value = "设备效率报表-配送小组维度各班组月设备利用分布", notes = "设备效率报表-配送小组维度各班组月设备利用分布") |
| | | @GetMapping("/teamEquipmentEfficiencyAnalyze") |
| | | public Result<?> teamEquipmentEfficiencyAnalyze(EquEffVo equEffVo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Map<String, Object> result = mdcEfficiencyReportService.teamEquipmentEfficiencyAnalyze(userId, equEffVo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "设备效率报表-设备维度各班组月设备利用分布", notes = "设备效率报表-设备维度各班组月设备利用分布") |
| | | @GetMapping("/equipmentEfficiencyAnalyze") |
| | | public Result<?> equipmentEfficiencyAnalyze(TeamEquEffVo teamEquEffVo) { |
| | | Map<String, Object> result = mdcEfficiencyReportService.teamEquipmentEfficiencyAnalyze(teamEquEffVo); |
| | | public Result<?> equipmentEfficiencyAnalyze(EquEffVo equEffVo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Map<String, Object> result = mdcEfficiencyReportService.equipmentEfficiencyAnalyze(userId, equEffVo); |
| | | return Result.OK(result); |
| | | } |
| | | |