- 去除几个误用ZeroTimeValue的地方

This commit is contained in:
gazebo
2019-07-15 17:05:58 +08:00
parent 41e0d57835
commit ff4b6098d7
3 changed files with 9 additions and 4 deletions

View File

@@ -89,7 +89,12 @@ type ActMap struct {
func (*ActMap) TableUnique() [][]string {
return [][]string{
[]string{"ActID", "VendorID", "DeletedAt"},
[]string{"VendorActID", "VendorID", "DeletedAt"},
}
}
func (*ActMap) TableIndex() [][]string {
return [][]string{
[]string{"VendorActID", "VendorID", "DeletedAt"}, // 饿百美团活动的VendorActID统一为空不能设置为唯一索引
}
}