|
|
@@ -16,7 +16,7 @@ type Instrument internal2.Instrument
|
|
|
// 设备Id、计费单价
|
|
|
type InstrumentId struct {
|
|
|
InstrumentId int `json:"instrument_id"` // 设备Id
|
|
|
- UnitCount int `json:"unit_count"` // 计费单价
|
|
|
+ UnitCount float64 `json:"unit_count"` // 计费单价
|
|
|
Rate int `json:"rate"` // 优惠比例
|
|
|
}
|
|
|
type InstrumentEntity struct {
|
|
|
@@ -30,10 +30,10 @@ type SearchEntity struct {
|
|
|
InstrType int `orm:"InstrType" json:"instr_type"` // 设备类别
|
|
|
InstrTypeStr string `orm:"-" json:"-" excel:"设备类别"` // 设备类别
|
|
|
Brand string `orm:"Brand" json:"brand" excel:"设备品牌"` // 设备品牌
|
|
|
- Belongs int `orm:"Belongs" json:"belongs"` // 设备所属 1内部 2外部
|
|
|
- BelongsName string `orm:"BelongsName" json:"belongs_name"` // 设备所属名称
|
|
|
+ Belongs int `orm:"Belongs" json:"belongs"` // 设备所属 1内部 2外部
|
|
|
+ BelongsName string `orm:"BelongsName" json:"belongs_name"` // 设备所属名称
|
|
|
Rate int `orm:"Rate" json:"rate"` // 优惠比例
|
|
|
- UnitCount int `orm:"UnitCount" json:"unit_count"` // 计费单价
|
|
|
+ UnitCount float64 `orm:"UnitCount" json:"unit_count"` // 计费单价
|
|
|
FactoryNum string `orm:"FactoryNum" json:"factory_num" excel:"出厂编号"` // 出厂编号
|
|
|
Status int `orm:"Status" json:"status"` // 设备状态
|
|
|
StatusStr string `orm:"-" json:"-" excel:"设备状态"` // 设备状态 string
|