This commit is contained in:
邹宗楠
2026-02-24 15:09:11 +08:00
parent 618fc1f423
commit 535ed6677d
2 changed files with 23 additions and 18 deletions

View File

@@ -660,6 +660,9 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
sqlParams = append(sqlParams, pageSize, offset)
//mapLimit := false
txDB, _ := dao.Begin(db)
globals.SugarLogger.Debugf("--------sql := %s", utils.Format4Output(sql, false))
globals.SugarLogger.Debugf("--------sqlParams := %s", utils.Format4Output(sqlParams, false))
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
retVal.Stores = storeList
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
@@ -1431,6 +1434,7 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
Status: model.StoreStatusOpened,
PricePercentagePack: "无",
VendorID: model.VendorIDJX,
//DeliverySelf: 0,liulei
}, false)
//尝试把平台负责人加到他自己的权限里
if store.MarketManPhone != "" {