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 != "" {

View File

@@ -482,7 +482,7 @@ type StoreMap struct {
StoreID int `orm:"column(store_id)" json:"storeID"`
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
VendorOrgCode string `orm:"size(32)" json:"vendorOrgCode"` // 同一平台下不同的商户代码,如果只有一个,可以为空
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"`
VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` //平台门店ID
Status int `json:"status"` // 取值同Store.Status
IsOnline int `json:"isOnline"` //上下线状态, -1是下线1是上线
StoreName string `orm:"size(255)" json:"storeName"` // 平台门店的名字,由平台到京西
@@ -519,6 +519,7 @@ type StoreMap struct {
VendorAccount string `orm:"size(255)" json:"vendorAccount"` //商户在平台上的账号(授权用
VendorPasswaord string `orm:"size(255)" json:"vendorPasswaord"` //商户在平台上的密码( aes cbc base64后的
AuditStatus int `json:"auditStatus"` //审核状态(授权状态
// DeliverySelf liulei int `orm:"column(delivery_self);size(48);default(0)" json:"deliverySelf"` // 是否支持自提(0-不支持,1-支持)
}
func (*StoreMap) TableUnique() [][]string {