feat(excel):增加0.4kV表计档案Excel的解析支持。

This commit is contained in:
徐涛 2022-08-17 14:01:05 +08:00
parent b1b4da996e
commit 592e93b2c9
2 changed files with 9 additions and 9 deletions

Binary file not shown.

View File

@ -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"`
}