reward_summary.go
1.2 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 //合格率
Yield float64 //产能
AccidentNum1 int //质量事故 次数
AccidentAmount1 float64 //质量事故 损失金额
AccidentNum2 int //安全事故 次数
AccidentAmount2 float64 //安全事故 损失金额
AccidentNum3 int //异物金属事故 次数
AccidentNum4 int //异物非金属事故 次数
CreatedAt time.Time //
UpdatedAt time.Time //
SummaryResult float64 //奖惩计算结果
}