From a904aa32e66688ba76c9e4b71b6738b0ba5f5d4f Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期四, 25 七月 2024 11:44:09 +0800 Subject: [PATCH] 添加字段,工种添加工种编码,用于计算工资(id无法固定工种信息) --- controllers/request/system_set.go | 35 +++++++++++++++++++++++++++++------ 1 files changed, 29 insertions(+), 6 deletions(-) diff --git a/controllers/request/system_set.go b/controllers/request/system_set.go index c87cd33..bc09766 100644 --- a/controllers/request/system_set.go +++ b/controllers/request/system_set.go @@ -1,10 +1,14 @@ package request -import "silkserver/constvar" +import ( + "github.com/shopspring/decimal" + "silkserver/constvar" +) type GetDictList struct { PageInfo - DictType constvar.DictType `json:"dictType"` //瀛楀吀绫诲瀷 + DictType constvar.DictType `json:"dictType" form:"dictType"` //瀛楀吀绫诲瀷 + Keyword string `json:"keyword" form:"keyword"` //鎼滅储鍏抽敭瀛� } type AddDict struct { @@ -19,14 +23,33 @@ AddDict } +type CodeStandard struct { + Type int `json:"type"` // 绫诲瀷 +} + // ---------------------------------------鐢熶笣--------------------------------- type GetPriceStandard struct { PageInfo KeyWord string `json:"keyWord"` } -// ---------------------------------------杞﹂棿--------------------------------- -type GetWorkshopManage struct { - PageInfo - KeyWord string `json:"keyWord"` +type SaveRankStandard struct { + RankStandard []RankStandard `json:"rankStandard"` +} + +type RankStandard struct { + LineId string `json:"lineId"` //琛宨d + CheckItem constvar.CheckItem `json:"checkItem"` //妫�鏌ラ」鐩悕绉� + StartFineness decimal.Decimal `json:"startFineness"` //寮�濮嬬氦搴� + EndFineness decimal.Decimal `json:"endFineness"` //缁撴潫绾ゅ害 + RankA decimal.Decimal `json:"rankA"` //閲庣氦 + RankB decimal.Decimal `json:"rankB"` //澶ч噹 + RankC decimal.Decimal `json:"rankC"` //鐗归噹 + DynamicsRanks []DynamicsRank `json:"dynamicsRanks"` +} + +type DynamicsRank struct { + RankProp string `json:"rankProp"` //鍓嶇紑key + RankName string `json:"rankName"` //绛夌骇鍚嶇О + RankValue decimal.Decimal `json:"rankValue"` //绛夌骇鍊� } -- Gitblit v1.8.0