yinbentan
2024-08-02 3032034d254fc15f06a1d4260f35c49f0ef1e12f
controllers/request/salary_plan.go
@@ -1,5 +1,10 @@
package request
import (
   "github.com/shopspring/decimal"
   "silkserver/constvar"
)
type PayrollProductionCar struct {
   PageInfo
   Cycle          string `json:"cycle" form:"cycle"`                   // 统计周期(年-月-日)
@@ -28,3 +33,30 @@
   WorkTypeCode string `json:"workTypeCode"  form:"workTypeCode"` // 工种编码
   Keyword      string `json:"keyword"  form:"keyword"`           // 关键字
}
type UpdatePayrollConstitute struct {
   Cycle        string           `json:"cycle" `        //月份
   WorkerID     string           `json:"workerID"  `    //员工ID
   WorkTypeID   uint             `json:"workTypeID" `   //工种ID
   WorkTypeCode constvar.JobType `json:"workTypeCode" ` //工种代码
   Amount       decimal.Decimal  `json:"amount" `       //金额
}
type PayrollConstitute struct {
   PageInfo
   Cycle        string `json:"cycle"  form:"cycle"`               // 统计周期按月查询(年-月)
   WorkerID     string `json:"workerID"  form:"workerID"`         // 员工ID
   WorkTypeID   int    `json:"workTypeID"  form:"workTypeID"`     // 工种ID
   WorkTypeCode string `json:"workTypeCode"  form:"workTypeCode"` // 工种编码
   Keyword      string `json:"keyword"  form:"keyword"`           // 关键字
}
type SavePayrollConstitute struct {
   Cycle        string           `json:"cycle" from:"cycle"`               //周期(月份)
   WorkerID     string           `json:"workerId" from:"workerId"`         //员工ID
   WorkTypeID   uint             `json:"workTypeID" from:"workTypeID"`     //工种ID
   WorkTypeCode constvar.JobType `json:"workTypeCode" from:"workTypeCode"` //工种代码
   WorkTypeName string           `json:"workTypeName" from:"workTypeName"` //工种名称
   SalaryPlanId uint             `json:"salaryPlanId" from:"salaryPlanId"` //薪资方案ID
   Amount       decimal.Decimal  `json:"amount" from:"amount"`             // 金额
}