This commit is contained in:
邹宗楠
2026-03-02 14:11:05 +08:00
parent 535ed6677d
commit 563ef89dfd
6 changed files with 14 additions and 8 deletions

View File

@@ -661,8 +661,6 @@ func GetStores(ctx *jxcontext.Context, keyword string, params map[string]interfa
//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)
@@ -1417,6 +1415,7 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
}
dao.WrapAddIDCULDEntity(store, userName)
store.ID = existingID
store.SMSNotify = 0 // 禁止使用订单短信通知
if err = dao.CreateEntity(db, store); err == nil {
if globals.IsAddEvent {
err = AddEventDetail(db, ctx, model.OperateAdd, store.ID, model.ThingTypeStore, store.ID, "", "")
@@ -1434,7 +1433,7 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
Status: model.StoreStatusOpened,
PricePercentagePack: "无",
VendorID: model.VendorIDJX,
//DeliverySelf: 0,liulei
DeliverySelf: 1,
}, false)
//尝试把平台负责人加到他自己的权限里
if store.MarketManPhone != "" {