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 == "" {