菜市物料同步到果园测试2
This commit is contained in:
@@ -4212,6 +4212,7 @@ func SyncMatterC4ToGy(ctx *jxcontext.Context, isContinueWhenError, isAsync bool)
|
||||
updateMatters = append(updateMatters, skusMap[c4.EclpID])
|
||||
}
|
||||
}
|
||||
fmt.Println("updateMatters", utils.Format4Output(updateMatters, false))
|
||||
case 1:
|
||||
if len(deleteMatters) > 0 {
|
||||
for _, v := range deleteMatters {
|
||||
@@ -4370,6 +4371,7 @@ func focusC4Matters(ctx *jxcontext.Context, db *dao.DaoDB, v *model.Sku) (err er
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
fmt.Println("storeSkus", utils.Format4Output(storeSkus, false))
|
||||
if len(storeSkus) > 0 {
|
||||
var (
|
||||
skuBindInfos []*StoreSkuBindInfo
|
||||
@@ -4380,6 +4382,7 @@ func focusC4Matters(ctx *jxcontext.Context, db *dao.DaoDB, v *model.Sku) (err er
|
||||
`
|
||||
sqlParams := []interface{}{v.EclpID, utils.DefaultTimeValue}
|
||||
err = dao.GetRow(db, &skuName2, sql, sqlParams)
|
||||
fmt.Println("skuName2", utils.Format4Output(skuName2, false))
|
||||
if skuName2 != nil {
|
||||
skuBindInfo := &StoreSkuBindInfo{
|
||||
NameID: skuName2.ID,
|
||||
|
||||
Reference in New Issue
Block a user