¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.mdc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.shiro.SecurityUtils; |
| | | import org.jeecg.common.api.vo.Result; |
| | | 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.*; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author: LiuS |
| | | * @create: 2023-06-15 17:17 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "è®¾å¤æçæ¥è¡¨") |
| | | @RestController |
| | | @RequestMapping("/mdc/efficiencyReport") |
| | | public class MdcEfficiencyReportController { |
| | | |
| | | @Resource |
| | | private MdcEfficiencyReportService mdcEfficiencyReportService; |
| | | |
| | | @ApiOperation(value = "è®¾å¤æçæ¥è¡¨-å©ç¨çå表æ¥è¯¢", notes = "è®¾å¤æçæ¥è¡¨-å©ç¨çå表æ¥è¯¢") |
| | | @GetMapping("/efficiencyList") |
| | | public Result<?> efficiencyList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyList(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @ApiOperation(value = "è®¾å¤æçæ¥è¡¨-å¼å¨çå表æ¥è¯¢", notes = "è®¾å¤æçæ¥è¡¨-å¼å¨çå表æ¥è¯¢") |
| | | @GetMapping("/efficiencyPOList") |
| | | public Result<?> efficiencyPOList(MdcEfficiencyReportQueryVo vo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEfficiencyVo result = mdcEfficiencyReportService.efficiencyPOList(userId, vo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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); |
| | | } |
| | | |
| | | @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("/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(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(EquEffVo equEffVo) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Map<String, Object> result = mdcEfficiencyReportService.equipmentEfficiencyAnalyze(userId, equEffVo); |
| | | return Result.OK(result); |
| | | } |
| | | |
| | | } |