|
@@ -1,7 +1,5 @@
|
1
|
1
|
package models
|
2
|
2
|
|
3
|
|
-import "XT/models"
|
4
|
|
-
|
5
|
3
|
type Manufacturer struct {
|
6
|
4
|
ID int64 `gorm:"column:id" json:"id"`
|
7
|
5
|
ManufacturerName string `gorm:"column:manufacturer_name" json:"manufacturer_name"`
|
|
@@ -283,35 +281,6 @@ type VmCancelStockInfo struct {
|
283
|
281
|
OrgId int64 `gorm:"column:org_id" json:"org_id"`
|
284
|
282
|
}
|
285
|
283
|
|
286
|
|
-type CancelStockInfo struct {
|
287
|
|
- ID int64 `gorm:"column:id" json:"id"`
|
288
|
|
- GoodId int64 `gorm:"column:good_id" json:"good_id"`
|
289
|
|
- CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
|
290
|
|
- GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
|
291
|
|
- Count int64 `gorm:"column:count" json:"count"`
|
292
|
|
- Price float64 `gorm:"column:price" json:"price"`
|
293
|
|
- Total float64 `gorm:"column:total" json:"total"`
|
294
|
|
- ProductDate int64 `gorm:"column:product_date" json:"product_date"`
|
295
|
|
- ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
|
296
|
|
- Ctime int64 `gorm:"column:ctime" json:"ctime"`
|
297
|
|
- Mtime int64 `gorm:"column:mtime" json:"mtime"`
|
298
|
|
- Status int64 `gorm:"column:status" json:"status"`
|
299
|
|
- OrgId int64 `gorm:"column:org_id" json:"org_id"`
|
300
|
|
- OrderNumber string `gorm:"column:order_number" json:"order_number"`
|
301
|
|
- Type int64 `gorm:"column:type" json:"type"`
|
302
|
|
- CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
|
303
|
|
- Dealer string `gorm:"column:dealer" json:"dealer"`
|
304
|
|
- Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
|
305
|
|
- GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
|
306
|
|
- Number string `gorm:"column:number" json:"number" form:"number"`
|
307
|
|
- RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
|
308
|
|
- Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
309
|
|
-}
|
310
|
|
-
|
311
|
|
-func (CancelStockInfo) TableName() string {
|
312
|
|
- return "xt_cancel_stock_info"
|
313
|
|
-}
|
314
|
|
-
|
315
|
284
|
type CancelStock struct {
|
316
|
285
|
ID int64 `gorm:"column:id" json:"id"`
|
317
|
286
|
OrderNumber string `gorm:"column:order_number" json:"order_number"`
|
|
@@ -326,7 +295,7 @@ type CancelStock struct {
|
326
|
295
|
Dealer int64 `gorm:"column:dealer" json:"dealer"`
|
327
|
296
|
Manufacturer int64 `gorm:"column:manufacturer" json:"manufacturer"`
|
328
|
297
|
Type int64 `gorm:"column:type" json:"type"`
|
329
|
|
- CancelStockInfo []*models.CancelStockInfo
|
|
298
|
+ CancelStockInfo []*XtCancelStockInfo
|
330
|
299
|
}
|
331
|
300
|
|
332
|
301
|
func (CancelStock) TableName() string {
|
|
@@ -556,3 +525,32 @@ type VmStockFlow struct {
|
556
|
525
|
func (VmStockFlow) TableName() string {
|
557
|
526
|
return "xt_stock_flow"
|
558
|
527
|
}
|
|
528
|
+
|
|
529
|
+type CancelStockInfo struct {
|
|
530
|
+ ID int64 `gorm:"column:id" json:"id"`
|
|
531
|
+ GoodId int64 `gorm:"column:good_id" json:"good_id"`
|
|
532
|
+ CancelStockId int64 `gorm:"column:cancel_stock_id" json:"cancel_stock_id"`
|
|
533
|
+ GoodTypeId int64 `gorm:"column:good_type_id" json:"good_type_id"`
|
|
534
|
+ Count int64 `gorm:"column:count" json:"count"`
|
|
535
|
+ Price float64 `gorm:"column:price" json:"price"`
|
|
536
|
+ Total float64 `gorm:"column:total" json:"total"`
|
|
537
|
+ ProductDate int64 `gorm:"column:product_date" json:"product_date"`
|
|
538
|
+ ExpiryDate int64 `gorm:"column:expiry_date" json:"expiry_date"`
|
|
539
|
+ Ctime int64 `gorm:"column:ctime" json:"ctime"`
|
|
540
|
+ Mtime int64 `gorm:"column:mtime" json:"mtime"`
|
|
541
|
+ Status int64 `gorm:"column:status" json:"status"`
|
|
542
|
+ OrgId int64 `gorm:"column:org_id" json:"org_id"`
|
|
543
|
+ OrderNumber string `gorm:"column:order_number" json:"order_number"`
|
|
544
|
+ Type int64 `gorm:"column:type" json:"type"`
|
|
545
|
+ CancelStock CancelStock `ForeignKey:CancelStockId json:"CancelStock"`
|
|
546
|
+ Dealer string `gorm:"column:dealer" json:"dealer"`
|
|
547
|
+ Manufacturer string `gorm:"column:manufacturer" json:"manufacturer"`
|
|
548
|
+ Number string `gorm:"column:number" json:"number" form:"number"`
|
|
549
|
+ RegisterAccount string `gorm:"column:register_account" json:"register_account" form:"register_account"`
|
|
550
|
+ Remark string `gorm:"column:remark" json:"remark" form:"remark"`
|
|
551
|
+ GoodInfo GoodInfo `gorm:"ForeignKey:ID;AssociationForeignKey:GoodId" `
|
|
552
|
+}
|
|
553
|
+
|
|
554
|
+func (CancelStockInfo) TableName() string {
|
|
555
|
+ return "xt_cancel_stock_info"
|
|
556
|
+}
|