new_number

This commit is contained in:
jiangyong 2025-08-20 12:00:46 +08:00
parent 38f925a259
commit 1f141e3ae0
1 changed files with 5 additions and 0 deletions

View File

@ -54,6 +54,7 @@ type ApplyValue struct {
Vacation *Vacation `json:"vacation"`
PunchCorrection interface{} `json:"punch_correction"`
BankAccount interface{} `json:"bank_account"`
NewNumber string `json:"new_number"`
}
type ApplyContent struct {
@ -133,6 +134,8 @@ func (d *ApproveDetail) GetValue(title string) string {
} else if content.Control == "BankAccount" {
mp := cast.ToStringMap(content.Value.BankAccount)
value = cast.ToString(mp["account_type"]) + "," + cast.ToString(mp["account_name"]) + "," + cast.ToString(mp["account_number"])
} else if content.Control == "Number" {
value = content.Value.NewNumber
}
return value
}
@ -176,6 +179,8 @@ func (d *ApproveDetail) GetData() map[string]string {
} else if content.Control == "BankAccount" {
mp := cast.ToStringMap(content.Value.BankAccount)
value = cast.ToString(mp["account_type"]) + "," + cast.ToString(mp["account_name"]) + "," + cast.ToString(mp["account_number"])
} else if content.Control == "Number" {
value = content.Value.NewNumber
}
for _, ti := range content.Title {