new_number
This commit is contained in:
parent
38f925a259
commit
1f141e3ae0
|
@ -54,6 +54,7 @@ type ApplyValue struct {
|
||||||
Vacation *Vacation `json:"vacation"`
|
Vacation *Vacation `json:"vacation"`
|
||||||
PunchCorrection interface{} `json:"punch_correction"`
|
PunchCorrection interface{} `json:"punch_correction"`
|
||||||
BankAccount interface{} `json:"bank_account"`
|
BankAccount interface{} `json:"bank_account"`
|
||||||
|
NewNumber string `json:"new_number"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApplyContent struct {
|
type ApplyContent struct {
|
||||||
|
@ -133,6 +134,8 @@ func (d *ApproveDetail) GetValue(title string) string {
|
||||||
} else if content.Control == "BankAccount" {
|
} else if content.Control == "BankAccount" {
|
||||||
mp := cast.ToStringMap(content.Value.BankAccount)
|
mp := cast.ToStringMap(content.Value.BankAccount)
|
||||||
value = cast.ToString(mp["account_type"]) + "," + cast.ToString(mp["account_name"]) + "," + cast.ToString(mp["account_number"])
|
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
|
return value
|
||||||
}
|
}
|
||||||
|
@ -176,6 +179,8 @@ func (d *ApproveDetail) GetData() map[string]string {
|
||||||
} else if content.Control == "BankAccount" {
|
} else if content.Control == "BankAccount" {
|
||||||
mp := cast.ToStringMap(content.Value.BankAccount)
|
mp := cast.ToStringMap(content.Value.BankAccount)
|
||||||
value = cast.ToString(mp["account_type"]) + "," + cast.ToString(mp["account_name"]) + "," + cast.ToString(mp["account_number"])
|
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 {
|
for _, ti := range content.Title {
|
||||||
|
|
Loading…
Reference in New Issue