reward_summary.go 1.9 KB
package models

import (
	"time"

	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-manufacture/pkg/domain"
)

// RewardSummary 功过奖惩明细
type RewardSummary struct {
	tableName          string             `pg:"manufacture.reward_summary,alias:reward_summary"`
	Id                 int                `pg:"pk:id"`
	CompanyId          int                ``
	OrgId              int                ``
	RecordDate         time.Time          //日期
	RecordDateStr      string             //
	WorkStation        domain.WorkStation // 工作位置
	Worker             domain.User        //员工
	UpToStandard       float64            //合格率
	UpToStandardResult int                //合格率 功过评定结果 1`功` -1 `过` 0 `不奖不惩`
	Yield              float64            //产能
	YieldResult        int                //产能 功过评定结果  1`功` -1 `过` 0 `不奖不惩`
	AccidentNum1       int                //质量事故 次数
	AccidentAmount1    float64            //质量事故 损失金额
	AccidentResult1    int                //质量事故 功过评定结果  1`功` -1 `过` 0 `不奖不惩`
	AccidentNum2       int                //安全事故 次数
	AccidentAmount2    float64            //安全事故 损失金额
	AccidentResult2    int                //安全事故 功过评定结果  1`功` -1 `过` 0 `不奖不惩`
	AccidentNum3       int                //异物金属事故 次数
	AccidentResult3    int                //异物金属事故 功过评定结果  1`功` -1 `过` 0 `不奖不惩`
	AccidentNum4       int                //异物非金属事故 次数
	AccidentResult4    int                //异物非金属事故 功过评定结果  1`功` -1 `过` 0 `不奖不惩`
	SummaryResult      float64            //奖惩金额计算结果(元)
	CreatedAt          time.Time          //
	UpdatedAt          time.Time          //

}