1
This commit is contained in:
@@ -758,6 +758,10 @@ func (c *OrderManager) updateOrderSkuOtherInfo(order *model.GoodsOrder, db *dao.
|
|||||||
if jxStoreID == 0 {
|
if jxStoreID == 0 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
storeDetail, err1 := dao.GetStoreDetail(db, jxStoreID, order.VendorID, order.VendorOrgCode)
|
||||||
|
if err1 != nil || storeDetail.IsSync != model.YES {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
orderSkus := order.Skus
|
orderSkus := order.Skus
|
||||||
|
|
||||||
var vendorSkuIDs []string
|
var vendorSkuIDs []string
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import (
|
|||||||
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
"git.rosy.net.cn/jx-callback/business/jxutils/tasksch"
|
||||||
"git.rosy.net.cn/jx-callback/business/model"
|
"git.rosy.net.cn/jx-callback/business/model"
|
||||||
"git.rosy.net.cn/jx-callback/business/partner"
|
"git.rosy.net.cn/jx-callback/business/partner"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
|
||||||
"git.rosy.net.cn/jx-callback/globals/api"
|
"git.rosy.net.cn/jx-callback/globals/api"
|
||||||
"github.com/astaxie/beego/server/web"
|
"github.com/astaxie/beego/server/web"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -255,15 +254,10 @@ func (c *BiddingController) DownSupermarketSign() {
|
|||||||
keyPart = append(keyPart, time.Now().Format("20060102T150405")+".xlsx")
|
keyPart = append(keyPart, time.Now().Format("20060102T150405")+".xlsx")
|
||||||
key := "export/" + strings.Join(keyPart, "_")
|
key := "export/" + strings.Join(keyPart, "_")
|
||||||
excelURL, err2 := jxutils.UploadExportContent(excelBin, key)
|
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 {
|
if err = err2; err == nil {
|
||||||
//task.SetNoticeMsg(excelURL)
|
//task.SetNoticeMsg(excelURL)
|
||||||
if authInfo, err := params.Ctx.GetV2AuthInfo(); err == nil {
|
if authInfo, err := params.Ctx.GetV2AuthInfo(); err == nil {
|
||||||
noticeMsg := fmt.Sprintf("path=%s\n", excelURL)
|
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)
|
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, authInfo.UserID, "导出签约门店数据", noticeMsg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user