- create entity one by one in saveJdOrderList

This commit is contained in:
gazebo
2019-01-12 14:07:57 +08:00
parent 7902af7057
commit 3aeff73db0
2 changed files with 14 additions and 2 deletions

View File

@@ -11,3 +11,9 @@ type TempGoodsOrderMobile struct {
CreatedAt time.Time `orm:"auto_now_add;type(datetime)" json:"createdAt"`
Mobile string `orm:"size(32);index" json:"mobile"`
}
func (o *TempGoodsOrderMobile) TableUnique() [][]string {
return [][]string{
[]string{"VendorOrderID", "VendorID"},
}
}