This commit is contained in:
邹宗楠
2022-12-14 10:37:48 +08:00
parent b9c4970c6f
commit b466aaaf12
5 changed files with 132 additions and 143 deletions

View File

@@ -27,15 +27,15 @@ func GetThingMapList(db *DaoDB, thingType int, vendorIDs, thingIDs []int, vendor
return cats, err
}
func CreateThingMap(thingId int64, vendorThingID, appOrgCode, skuAttrId string) error {
func CreateThingMap(thingId int64, vendorThingID, appOrgCode, skuAttrId string, thingType, syncStatus int8) error {
thingMap := &model.ThingMap{
ThingID: thingId,
ThingType: model.ThingTypeSku,
ThingType: thingType,
VendorID: model.VendorIDDD,
VendorOrgCode: appOrgCode,
VendorThingID: vendorThingID,
Remark: skuAttrId,
SyncStatus: 0,
SyncStatus: syncStatus,
}
// 正常来说这个skuAttrId 不应该为空
if skuAttrId == "" {

View File

@@ -1,12 +1,12 @@
package model
const (
ThingTypeCategory = 1
ThingTypeSkuName = 2
ThingTypeSku = 3
ThingTypeStore = 4
ThingTypeUser = 5
ThingTypeOrder = 6
ThingTypeCategory = 1 // 同步分类
ThingTypeSkuName = 2 // 同步商品名称
ThingTypeSku = 3 // 同步商品
ThingTypeStore = 4 // 同步门店
ThingTypeUser = 5 // 同步用户信息
ThingTypeOrder = 6 // 同步订单
)
type ThingMap struct {