This commit is contained in:
苏尹岚
2020-04-23 09:37:43 +08:00
parent a8d0f64823
commit 714f235e56

View File

@@ -2200,7 +2200,7 @@ func writeToExcel(excelTitle []string, dataList interface{}, ctx *jxcontext.Cont
func RefreshJdDepot(ctx *jxcontext.Context) (err error) {
var thingMaps []model.ThingMap
sql := `
SELECT * FROM thing_map WHERE thing_type = ? AND vendor_id = ? AND vendor_org_code = ? AND deleted_at = ?
SELECT * FROM thing_map WHERE thing_type = ? AND vendor_id = ? AND vendor_org_code = ? AND deleted_at = ? ORDER BY thing_id DESC
`
sqlParams := []interface{}{model.ThingTypeSku, model.VendorIDJD, "320406", utils.DefaultTimeValue}
err = dao.GetRows(dao.GetDB(), &thingMaps, sql, sqlParams)