1
This commit is contained in:
@@ -27,20 +27,16 @@ func GetThingMapList(db *DaoDB, thingType int, vendorIDs, thingIDs []int, vendor
|
||||
return cats, err
|
||||
}
|
||||
|
||||
func CreateThingMap(thingId int64, vendorThingID, appOrgCode, skuAttrId string, thingType, syncStatus int8) error {
|
||||
func CreateThingMap(thingId int64, vendorThingID, appOrgCode, err string, thingType, syncStatus int8) error {
|
||||
thingMap := &model.ThingMap{
|
||||
ThingID: thingId,
|
||||
ThingType: thingType,
|
||||
VendorID: model.VendorIDDD,
|
||||
VendorOrgCode: appOrgCode,
|
||||
VendorThingID: vendorThingID,
|
||||
Remark: skuAttrId,
|
||||
Remark: err,
|
||||
SyncStatus: syncStatus,
|
||||
}
|
||||
// 正常来说这个skuAttrId 不应该为空
|
||||
if skuAttrId == "" {
|
||||
thingMap.Remark = "这个值不应该为空才对"
|
||||
}
|
||||
|
||||
WrapAddIDCULDEntity(thingMap, "jxadmin")
|
||||
return CreateEntity(GetDB(), thingMap)
|
||||
|
||||
Reference in New Issue
Block a user