board_show_controller.go 1.8 KB
package controllers

import (
	"github.com/linmadan/egglib-go/web/beego"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/application/statistics/service"
)

type BoardDataController struct {
	beego.BaseController
}

// 车间描述
func (c *BoardDataController) WorkshopDesc() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.WorkshopDesc()
	c.Response(data, err)
}

func (c *BoardDataController) EmployeeWorkpieceRatio() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.EmployeeWorkpieceRatio()
	c.Response(data, err)
}

// 时段产能
func (c *BoardDataController) TimeSectionProductRecord() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.TimeSectionProductRecord()
	c.Response(data, err)
}

func (c *BoardDataController) TopShow() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.TopShow()
	c.Response(data, err)
}

func (c *BoardDataController) ProportionOfSecondLevel() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.ProportionOfSecondLevel()
	c.Response(data, err)
}

func (c *BoardDataController) SectionProductInfo() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.SectionProductInfo()
	c.Response(data, err)
}

func (c *BoardDataController) WorkshopPlanCompletionCurrent() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.WorkshopPlanCompletionCurrent()
	c.Response(data, err)
}

func (c *BoardDataController) WorkshopPlanCompletion5Day() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.WorkshopPlanCompletion5Day()
	c.Response(data, err)
}

func (c *BoardDataController) ProductPlan() {
	srv := service.NewCommonStatisticsService(nil)
	data, err := srv.ProductPlan()
	c.Response(data, err)
}