| | |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.home.dto.AnalysisCustomerContractAmountsDto; |
| | | import com.ruoyi.home.dto.HomeBusinessDto; |
| | | import com.ruoyi.home.dto.QualityStatisticsDto; |
| | | import com.ruoyi.home.dto.StatisticsReceivablePayableDto; |
| | | import com.ruoyi.home.dto.*; |
| | | import com.ruoyi.home.service.HomeService; |
| | | import com.ruoyi.production.dto.ProductOrderDto; |
| | | import com.ruoyi.production.dto.ProductWorkOrderDto; |
| | | import com.ruoyi.production.dto.SalesLedgerWorkDto; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | import java.text.ParseException; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @author :yys |
| | |
| | | return AjaxResult.success(statisticsReceivablePayable); |
| | | } |
| | | |
| | | @GetMapping("/approveAndDeviceTodos") |
| | | @ApiOperation("审批协同,设备报修待办事项") |
| | | public AjaxResult approveAndDeviceTodos(){ |
| | | Map<String, Object> map = homeService.approveAndDeviceTodos(); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | @GetMapping("/noticesCount") |
| | | @ApiOperation("未过期的公告数量") |
| | | public AjaxResult noticesCount(){ |
| | | Long count = homeService.noticesCount(); |
| | | return AjaxResult.success(count); |
| | | } |
| | | @GetMapping("/progressStatistics") |
| | | @ApiOperation("各生产订单的完成进度统计") |
| | | public AjaxResult progressStatistics(){ |
| | | ProductionProgressDto productionProgressDto = homeService.productionProgress(); |
| | | return AjaxResult.success(productionProgressDto); |
| | | } |
| | | @GetMapping("/workInProcessTurnover") |
| | | @ApiOperation("在制品周转情况") |
| | | public AjaxResult workInProcessTurnover(){ |
| | | Map<Integer, List<ProductWorkOrderDto>> productWorkOrderDtoMap = homeService.workInProcessTurnover(); |
| | | return AjaxResult.success(productWorkOrderDtoMap); |
| | | } |
| | | } |