1
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user