This commit is contained in:
邹宗楠
2024-09-20 22:39:26 +08:00
parent fa01c593c7
commit bf48833ac6
2 changed files with 4 additions and 6 deletions

View File

@@ -758,6 +758,10 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
if jxStoreID == 0 {
return nil
}
storeDetail, err1 := dao.GetStoreDetail(db, jxStoreID, order.VendorID, order.VendorOrgCode)
if err1 != nil || storeDetail.IsSync != model.YES {
return nil
}
orderSkus := order.Skus
var vendorSkuIDs []string

View File

@@ -14,7 +14,6 @@ import (
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/partner"
"git.rosy.net.cn/jx-callback/globals"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego/server/web"
"strings"
@@ -255,15 +254,10 @@ func (c *BiddingController) DownSupermarketSign() {
keyPart = append(keyPart, time.Now().Format("20060102T150405")+".xlsx")
key := "export/" + strings.Join(keyPart, "_")
excelURL, err2 := jxutils.UploadExportContent(excelBin, key)
globals.SugarLogger.Debugf("-----------------excelURL:%s", excelURL)
globals.SugarLogger.Debugf("-----------------err2:%v", err2)
fmt.Println(fmt.Sprintf("-----%s:%v", excelURL, err2))
if err = err2; err == nil {
//task.SetNoticeMsg(excelURL)
if authInfo, err := params.Ctx.GetV2AuthInfo(); err == nil {
noticeMsg := fmt.Sprintf("path=%s\n", excelURL)
globals.SugarLogger.Debugf("-----------------noticeMsg:%s", noticeMsg)
fmt.Println(fmt.Sprintf("---------path :%s", noticeMsg))
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, authInfo.UserID, "导出签约门店数据", noticeMsg)
}
}