| | |
| | | // 薪资计算数据 |
| | | type SalaryCalculateData struct { |
| | | DailySilkProduction decimal.Decimal `json:"dailySilkProduction"` // 日产丝量 |
| | | WasteSilkQuantity decimal.Decimal `json:"wasteSilkQuantity"` // 野纤数量 |
| | | RawSilkUnitPrice decimal.Decimal `json:"rawSilkUnitPrice"` // 生丝单价 |
| | | WasteSilkUnitPrice decimal.Decimal `json:"wasteSilkUnitPrice"` // 野纤单价 |
| | | BucketCount decimal.Decimal `json:"bucketCount"` //桶数(日) |
| | | AttendanceDays int `json:"attendanceDays"` // 出勤天数 |
| | | GroupAverageMonthlyWage decimal.Decimal `json:"groupAverageMonthlyWage"` //同组挡车工月平均工资 |
| | | GroupCarHeadWage decimal.Decimal `json:"groupCarHeadWage"` //同组车头工工资 |
| | | WasteSilkQuantity decimal.Decimal `json:"wasteSilkQuantity"` // 野纤数量 //todo |
| | | RawSilkUnitPrice decimal.Decimal `json:"rawSilkUnitPrice"` // 生丝单价 //todo |
| | | WasteSilkUnitPrice decimal.Decimal `json:"wasteSilkUnitPrice"` // 野纤单价 //todo |
| | | BucketCount decimal.Decimal `json:"bucketCount"` //桶数(日) //todo |
| | | AttendanceDays int `json:"attendanceDays"` // 出勤天数 //todo |
| | | GroupAverageMonthlyWage decimal.Decimal `json:"groupAverageMonthlyWage"` //同组挡车工月平均工资 //todo |
| | | GroupCarHeadWage decimal.Decimal `json:"groupCarHeadWage"` //同组车头工工资 //todo |
| | | |
| | | WeekdayOvertimeHours decimal.Decimal `json:"weekdayOvertimeHours"` // 工作日加班时长 |
| | | FullAttendanceAward int `json:"FullAttendanceAward"` // 满勤奖 |
| | | WeekendOvertimeHours decimal.Decimal `json:"weekendOvertimeHours"` // 休息日加班时长 |
| | | LeaveDays decimal.Decimal `json:"LeaveDays"` //请假天数 |
| | | ApprenticeDays decimal.Decimal `json:"apprenticeDays"` // 带徒天数 |
| | | FullAttendanceAward int `json:"FullAttendanceAward"` // 满勤奖 //todo |
| | | WeekendOvertimeHours decimal.Decimal `json:"weekendOvertimeHours"` // 休息日加班时长 //todo |
| | | LeaveDays decimal.Decimal `json:"LeaveDays"` //请假天数 //todo |
| | | ApprenticeDays decimal.Decimal `json:"apprenticeDays"` // 带徒天数 //todo |
| | | TotalAttendanceDays int `json:"totalAttendanceDays"` // 出勤天数 |
| | | Seniority decimal.Decimal `json:"seniority"` // 工龄 |
| | | Seniority decimal.Decimal `json:"seniority"` // 工龄 //todo |
| | | } |
| | | |
| | | // CalculateSalary 计算工资的函数 |