| | |
| | | return AjaxResult.success(homeSummaryDto); |
| | | } |
| | | |
| | | /********************************************************营销采购类**************************************************/ |
| | | @GetMapping("/supplierPurchaseRanking") |
| | | @ApiOperation("供应商采购排名") |
| | | public AjaxResult supplierPurchaseRanking(@RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | |
| | | @ApiOperation("客户营收贡献数值分析") |
| | | public AjaxResult customerRevenueAnalysis(@RequestParam("customerId") Long customerId, @RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | | CustomerRevenueAnalysisDto dto = homeService.customerRevenueAnalysis(customerId, type); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/productCategoryDistribution") |
| | | @ApiOperation("产品大类分布") |
| | | public AjaxResult productCategoryDistribution() { |
| | | ProductCategoryDistributionDto dto = homeService.productCategoryDistribution(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/salesPurchaseStorageProductCount") |
| | | @ApiOperation("销售-采购-储存产品数") |
| | | public AjaxResult salesPurchaseStorageProductCount(){ |
| | | List<MapDto> list = homeService.salesPurchaseStorageProductCount(); |
| | | return AjaxResult.success(list); |
| | | @GetMapping("/business") |
| | | @Log(title = "销售-采购-库存数据", businessType = BusinessType.OTHER) |
| | | @ApiOperation("销售-采购-库存数据") |
| | | public AjaxResult business(HomeBusinessDto req) { |
| | | HomeBusinessDto homeBusinessDto = homeService.business(); |
| | | return AjaxResult.success(homeBusinessDto); |
| | | } |
| | | |
| | | @GetMapping("/productInOutAnalysis") |
| | | @ApiOperation("产品出入库分析") |
| | | public AjaxResult productInOutAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){ |
| | | List<Map<String, Object>> result = homeService.productInOutAnalysis(type); |
| | | return AjaxResult.success(result); |
| | | @GetMapping("/analysisCustomerContractAmounts") |
| | | @Log(title = "客户合同金额分析", businessType = BusinessType.OTHER) |
| | | @ApiOperation("客户合同金额分析") |
| | | public AjaxResult analysisCustomerContractAmounts(AnalysisCustomerContractAmountsDto req) { |
| | | AnalysisCustomerContractAmountsDto analysisCustomerContractAmounts = homeService.analysisCustomerContractAmounts(); |
| | | return AjaxResult.success(analysisCustomerContractAmounts); |
| | | } |
| | | |
| | | @GetMapping("/productTurnoverDays") |
| | | @ApiOperation("产品周转天数") |
| | | public AjaxResult productTurnoverDays(){ |
| | | List<MapDto> list = homeService.productTurnoverDays(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/incomeExpenseAnalysis") |
| | | @ApiOperation("支收对比分析") |
| | | public AjaxResult incomeExpenseAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | | List<Map<String, Object>> result = homeService.incomeExpenseAnalysis(type); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/profitTrendAnalysis") |
| | | @ApiOperation("利润趋势分析") |
| | | public AjaxResult profitTrendAnalysis(){ |
| | | List<MapDto> list = homeService.profitTrendAnalysis(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/expenseCompositionAnalysis") |
| | | @ApiOperation("构成分析") |
| | | public AjaxResult expenseCompositionAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | | List<MapDto> list = homeService.expenseCompositionAnalysis(type); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/monthlyIncome") |
| | | @ApiOperation("月度收入") |
| | | public AjaxResult monthlyIncome(){ |
| | | MonthlyIncomeDto dto = homeService.monthlyIncome(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/monthlyExpenditure") |
| | | @ApiOperation("月度支出") |
| | | public AjaxResult monthlyExpenditure(){ |
| | | MonthlyExpenditureDto dto = homeService.monthlyExpenditure(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | |
| | | /********************************************************生产类*****************************************************/ |
| | | @GetMapping("/inputOutputAnalysis") |
| | | @ApiOperation("投入产出分析") |
| | | public AjaxResult inputOutputAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){ |
| | |
| | | return AjaxResult.success(homeService.orderCount()); |
| | | } |
| | | |
| | | @GetMapping("/progressStatistics") |
| | | @ApiOperation("各生产订单的完成进度统计") |
| | | public AjaxResult progressStatistics(){ |
| | | ProductionProgressDto productionProgressDto = homeService.productionProgress(); |
| | | return AjaxResult.success(productionProgressDto); |
| | | } |
| | | |
| | | @GetMapping("/workInProcessTurnover") |
| | | @ApiOperation("在制品周转情况") |
| | | public AjaxResult workInProcessTurnover(){ |
| | | ProductionTurnoverDto productionTurnoverDto = homeService.workInProcessTurnover(); |
| | | return AjaxResult.success(productionTurnoverDto); |
| | | } |
| | | |
| | | /********************************************************质量类*****************************************************/ |
| | | @GetMapping("/rawMaterialDetection") |
| | | @ApiOperation("原材料检测") |
| | | public AjaxResult rawMaterialDetection(@RequestParam(value = "type", defaultValue = "1") Integer type){ |
| | |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | /********************************************************营销采购类**************************************************/ |
| | | @GetMapping("/business") |
| | | @Log(title = "销售-采购-库存数据", businessType = BusinessType.OTHER) |
| | | @ApiOperation("销售-采购-库存数据") |
| | | public AjaxResult business(HomeBusinessDto req) { |
| | | HomeBusinessDto homeBusinessDto = homeService.business(); |
| | | return AjaxResult.success(homeBusinessDto); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/analysisCustomerContractAmounts") |
| | | @Log(title = "客户合同金额分析", businessType = BusinessType.OTHER) |
| | | @ApiOperation("客户合同金额分析") |
| | | public AjaxResult analysisCustomerContractAmounts(AnalysisCustomerContractAmountsDto req) { |
| | | AnalysisCustomerContractAmountsDto analysisCustomerContractAmounts = homeService.analysisCustomerContractAmounts(); |
| | | return AjaxResult.success(analysisCustomerContractAmounts); |
| | | } |
| | | |
| | | |
| | | /********************************************************生产类*****************************************************/ |
| | | @GetMapping("/progressStatistics") |
| | | @ApiOperation("各生产订单的完成进度统计") |
| | | public AjaxResult progressStatistics(){ |
| | | ProductionProgressDto productionProgressDto = homeService.productionProgress(); |
| | | return AjaxResult.success(productionProgressDto); |
| | | } |
| | | @GetMapping("/workInProcessTurnover") |
| | | @ApiOperation("在制品周转情况") |
| | | public AjaxResult workInProcessTurnover(){ |
| | | ProductionTurnoverDto productionTurnoverDto = homeService.workInProcessTurnover(); |
| | | return AjaxResult.success(productionTurnoverDto); |
| | | } |
| | | |
| | | |
| | | |
| | | /********************************************************质量类*****************************************************/ |
| | | @GetMapping("/qualityStatistics") |
| | | @Log(title = "质量分析", businessType = BusinessType.OTHER) |
| | | @ApiOperation("质量分析") |
| | |
| | | return AjaxResult.success(qualityStatisticsDto); |
| | | } |
| | | |
| | | |
| | | /********************************************************财务类*****************************************************/ |
| | | @GetMapping("/incomeExpenseAnalysis") |
| | | @ApiOperation("支收对比分析") |
| | | public AjaxResult incomeExpenseAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | | List<Map<String, Object>> result = homeService.incomeExpenseAnalysis(type); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @GetMapping("/profitTrendAnalysis") |
| | | @ApiOperation("利润趋势分析") |
| | | public AjaxResult profitTrendAnalysis(){ |
| | | List<MapDto> list = homeService.profitTrendAnalysis(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/expenseCompositionAnalysis") |
| | | @ApiOperation("构成分析") |
| | | public AjaxResult expenseCompositionAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type) { |
| | | List<MapDto> list = homeService.expenseCompositionAnalysis(type); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/monthlyIncome") |
| | | @ApiOperation("月度收入") |
| | | public AjaxResult monthlyIncome(){ |
| | | MonthlyIncomeDto dto = homeService.monthlyIncome(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/monthlyExpenditure") |
| | | @ApiOperation("月度支出") |
| | | public AjaxResult monthlyExpenditure(){ |
| | | MonthlyExpenditureDto dto = homeService.monthlyExpenditure(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/statisticsReceivablePayable") |
| | | @Log(title = "应收应付统计", businessType = BusinessType.OTHER) |
| | | @ApiOperation("应收应付统计") |
| | |
| | | return AjaxResult.success(statisticsReceivablePayable); |
| | | } |
| | | |
| | | |
| | | /********************************************************仓储类*****************************************************/ |
| | | |
| | | @GetMapping("/productCategoryDistribution") |
| | | @ApiOperation("产品大类分布") |
| | | public AjaxResult productCategoryDistribution() { |
| | | ProductCategoryDistributionDto dto = homeService.productCategoryDistribution(); |
| | | return AjaxResult.success(dto); |
| | | } |
| | | |
| | | @GetMapping("/salesPurchaseStorageProductCount") |
| | | @ApiOperation("销售-采购-储存产品数") |
| | | public AjaxResult salesPurchaseStorageProductCount(){ |
| | | List<MapDto> list = homeService.salesPurchaseStorageProductCount(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | @GetMapping("/productInOutAnalysis") |
| | | @ApiOperation("产品出入库分析") |
| | | public AjaxResult productInOutAnalysis(@RequestParam(value = "type", defaultValue = "1") Integer type){ |
| | | List<Map<String, Object>> result = homeService.productInOutAnalysis(type); |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | @GetMapping("/productTurnoverDays") |
| | | @ApiOperation("产品周转天数") |
| | | public AjaxResult productTurnoverDays(){ |
| | | List<MapDto> list = homeService.productTurnoverDays(); |
| | | return AjaxResult.success(list); |
| | | } |
| | | |
| | | } |