From 3032034d254fc15f06a1d4260f35c49f0ef1e12f Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期五, 02 八月 2024 11:57:33 +0800 Subject: [PATCH] 添加接口,添加新的薪资查询和修改接口 --- controllers/request/salary_plan.go | 32 ++++++++++++++++++++++++++++++++ 1 files changed, 32 insertions(+), 0 deletions(-) diff --git a/controllers/request/salary_plan.go b/controllers/request/salary_plan.go index 20c927e..52929ae 100644 --- a/controllers/request/salary_plan.go +++ b/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" ` //宸ョ浠g爜 + 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"` //宸ョ浠g爜 + WorkTypeName string `json:"workTypeName" from:"workTypeName"` //宸ョ鍚嶇О + SalaryPlanId uint `json:"salaryPlanId" from:"salaryPlanId"` //钖祫鏂规ID + Amount decimal.Decimal `json:"amount" from:"amount"` // 閲戦 +} -- Gitblit v1.8.0