- fix bug in UpdateStore(GetRows)

This commit is contained in:
gazebo
2018-10-26 20:09:56 +08:00
parent f12cfafe23
commit 0397729aa0
6 changed files with 29 additions and 19 deletions

View File

@@ -144,7 +144,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
WHERE t1.id = ?
ORDER BY t2.updated_at
`
if err = dao.GetRow(db, &stores, sql, model.VendorIDEBAI, utils.DefaultTimeValue, storeID); err == nil {
if err = dao.GetRows(db, &stores, sql, model.VendorIDEBAI, utils.DefaultTimeValue, storeID); err == nil {
for _, store := range stores {
params := genStoreMapFromStore(store)
// globals.SugarLogger.Debug(utils.Format4Output(params, false))