feat(excel):增加0.4kV表计档案Excel的解析支持。
This commit is contained in:
parent
b1b4da996e
commit
592e93b2c9
Binary file not shown.
|
@ -6,16 +6,16 @@ import (
|
|||
|
||||
type Meter04KV struct {
|
||||
CreatedAndModified `xorm:"extends"`
|
||||
Code string `xorm:"varchar(120) pk not null" json:"code"`
|
||||
Code string `xorm:"varchar(120) pk not null" json:"code" excel:"code"`
|
||||
ParkId string `xorm:"varchar(120) pk not null" json:"parkId"`
|
||||
Address *string `xorm:"varchar(100)" json:"address"`
|
||||
CustomerName *string `xorm:"varchar(100)" json:"customerName"`
|
||||
ContactName *string `xorm:"varchar(70)" json:"contactName"`
|
||||
ContactPhone *string `xorm:"varchar(50)" json:"contactPhone"`
|
||||
Ratio decimal.Decimal `xorm:"numeric(8,4) not null default 1" json:"ratio"`
|
||||
Seq int64 `xorm:"bigint not null" json:"seq"`
|
||||
IsPublicMeter bool `xorm:"'public_meter' bool not null default false" json:"isPublicMeter"`
|
||||
WillDilute bool `xorm:"'dilute' bool not null default false" json:"willDilute"`
|
||||
Address *string `xorm:"varchar(100)" json:"address" excel:"address"`
|
||||
CustomerName *string `xorm:"varchar(100)" json:"customerName" excel:"name"`
|
||||
ContactName *string `xorm:"varchar(70)" json:"contactName" excel:"contact"`
|
||||
ContactPhone *string `xorm:"varchar(50)" json:"contactPhone" excel:"phone"`
|
||||
Ratio decimal.Decimal `xorm:"numeric(8,4) not null default 1" json:"ratio" excel:"ratio"`
|
||||
Seq int64 `xorm:"bigint not null" json:"seq" excel:"seq"`
|
||||
IsPublicMeter bool `xorm:"'public_meter' bool not null default false" json:"isPublicMeter" excel:"public"`
|
||||
WillDilute bool `xorm:"'dilute' bool not null default false" json:"willDilute" excel:"dilute"`
|
||||
Enabled bool `xorm:"bool not null default true" json:"enabled"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user