aa
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"git.rosy.net.cn/jx-callback/business/jxstore/report"
|
"git.rosy.net.cn/jx-callback/business/jxcallback/orderman"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@@ -1924,7 +1924,58 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
// dao.UpdateEntity(db, v, "ConsigneeMobile2")
|
// dao.UpdateEntity(db, v, "ConsigneeMobile2")
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
report.RefreshJDMembers(jxcontext.AdminCtx)
|
var (
|
||||||
|
db = dao.GetDB()
|
||||||
|
goods []*model.GoodsOrder
|
||||||
|
)
|
||||||
|
sql := `
|
||||||
|
SELECT * FROM goods_order WHERE IF(jx_store_id = 0, store_id, jx_store_id) IN (
|
||||||
|
100115,
|
||||||
|
100123,
|
||||||
|
100135,
|
||||||
|
100140,
|
||||||
|
100471,
|
||||||
|
101036,
|
||||||
|
101039,
|
||||||
|
101942,
|
||||||
|
102383,
|
||||||
|
102630,
|
||||||
|
102671,
|
||||||
|
102736,
|
||||||
|
102740,
|
||||||
|
102996,
|
||||||
|
103205,
|
||||||
|
103408,
|
||||||
|
666677,
|
||||||
|
667234,
|
||||||
|
667272,
|
||||||
|
667278,
|
||||||
|
667281,
|
||||||
|
667284,
|
||||||
|
667292,
|
||||||
|
667297,
|
||||||
|
667304,
|
||||||
|
667308,
|
||||||
|
667312,
|
||||||
|
667332,
|
||||||
|
667540,
|
||||||
|
668125,
|
||||||
|
668131,
|
||||||
|
668144,
|
||||||
|
668150,
|
||||||
|
668152,
|
||||||
|
668159,
|
||||||
|
668183,
|
||||||
|
668185
|
||||||
|
) AND order_created_at > '2021-05-29 17:00:00' AND status = 110
|
||||||
|
`
|
||||||
|
dao.GetRows(db, &goods, sql, nil)
|
||||||
|
for _, v := range goods {
|
||||||
|
skus, _ := dao.GetSimpleOrderSkus(db, v.VendorOrderID, nil)
|
||||||
|
for _, vv := range skus {
|
||||||
|
orderman.RefreshOrderSkuInfo(jxcontext.AdminCtx, v.VendorOrderID, v.VendorID, vv.SkuID)
|
||||||
|
}
|
||||||
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user