aa
This commit is contained in:
@@ -8,8 +8,6 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.rosy.net.cn/baseapi/platformapi/fnpsapi"
|
|
||||||
|
|
||||||
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
"git.rosy.net.cn/jx-callback/business/auth2/authprovider/weixin"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
"git.rosy.net.cn/jx-callback/business/partner/delivery"
|
||||||
"github.com/360EntSecGroup-Skylar/excelize"
|
"github.com/360EntSecGroup-Skylar/excelize"
|
||||||
@@ -1829,19 +1827,16 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
var (
|
var (
|
||||||
db = dao.GetDB()
|
db = dao.GetDB()
|
||||||
|
skuNames []*model.SkuName
|
||||||
)
|
)
|
||||||
|
|
||||||
csList, _ := dao.GetStoreCourierList(db, nil, []int{model.VendorIDFengNiao}, model.StoreStatusAll, model.StoreAuditStatusAll)
|
sql := `
|
||||||
for _, v := range csList {
|
SELECT * from sku_name where img = 'https://image.jxc4.com/noGoodsImg.jpg' AND deleted_at = '1970-01-01 00:00:00'
|
||||||
stores, _ := dao.GetStoreList(db, []int{v.StoreID}, nil, nil, nil, nil, "")
|
`
|
||||||
store := stores[0]
|
err = dao.GetRows(db, &skuNames, sql, nil)
|
||||||
if !strings.Contains(store.Name, "京西菜市-") {
|
for _, v := range skuNames {
|
||||||
api.FnAPI.UpdateStore(&fnpsapi.CreateStoreParam{
|
cms.DeleteSkuName(ctx, v.ID, "jxadmin")
|
||||||
ChainStoreCode: utils.Int2Str(v.StoreID),
|
|
||||||
ChainStoreName: "京西菜市-" + store.Name,
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user