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)
|
sqlParams = append(sqlParams, pageSize, offset)
|
||||||
//mapLimit := false
|
//mapLimit := false
|
||||||
txDB, _ := dao.Begin(db)
|
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 {
|
if err = dao.GetRowsTx(txDB, &storeList, sql, sqlParams...); err == nil {
|
||||||
retVal.Stores = storeList
|
retVal.Stores = storeList
|
||||||
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
|
retVal.TotalCount = dao.GetLastTotalRowCount2(db, txDB)
|
||||||
@@ -1431,6 +1434,7 @@ func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (i
|
|||||||
Status: model.StoreStatusOpened,
|
Status: model.StoreStatusOpened,
|
||||||
PricePercentagePack: "无",
|
PricePercentagePack: "无",
|
||||||
VendorID: model.VendorIDJX,
|
VendorID: model.VendorIDJX,
|
||||||
|
//DeliverySelf: 0,liulei
|
||||||
}, false)
|
}, false)
|
||||||
//尝试把平台负责人加到他自己的权限里
|
//尝试把平台负责人加到他自己的权限里
|
||||||
if store.MarketManPhone != "" {
|
if store.MarketManPhone != "" {
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ type Store struct {
|
|||||||
IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"` // 身份证正面
|
IDCardFront string `orm:"size(255);column(id_card_front)" json:"idCardFront"` // 身份证正面
|
||||||
IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"` // 身份证背面
|
IDCardBack string `orm:"size(255);column(id_card_back)" json:"idCardBack"` // 身份证背面
|
||||||
IDCardHand string `orm:"size(255);column(id_card_hand)" json:"idCardHand"` // 手持身份证正面
|
IDCardHand string `orm:"size(255);column(id_card_hand)" json:"idCardHand"` // 手持身份证正面
|
||||||
Licence string `orm:"size(255)" json:"licence"` // 营业执照图片
|
Licence string `orm:"size(255)" json:"licence"` // 营业执照图片
|
||||||
LicenceCode string `orm:"size(32)" json:"licenceCode"`
|
LicenceCode string `orm:"size(32)" json:"licenceCode"`
|
||||||
|
|
||||||
LicenceType int8 `json:"licenceType"` // 营业执照类型,0:个人,1:公司
|
LicenceType int8 `json:"licenceType"` // 营业执照类型,0:个人,1:公司
|
||||||
@@ -481,23 +481,23 @@ type StoreMap struct {
|
|||||||
|
|
||||||
StoreID int `orm:"column(store_id)" json:"storeID"`
|
StoreID int `orm:"column(store_id)" json:"storeID"`
|
||||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||||
VendorOrgCode string `orm:"size(32)" json:"vendorOrgCode"` // 同一平台下不同的商户代码,如果只有一个,可以为空
|
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
|
Status int `json:"status"` // 取值同Store.Status
|
||||||
IsOnline int `json:"isOnline"` //上下线状态, -1是下线,1是上线
|
IsOnline int `json:"isOnline"` //上下线状态, -1是下线,1是上线
|
||||||
StoreName string `orm:"size(255)" json:"storeName"` // 平台门店的名字,由平台到京西
|
StoreName string `orm:"size(255)" json:"storeName"` // 平台门店的名字,由平台到京西
|
||||||
VendorStoreName string `orm:"size(255)" json:"vendorStoreName"` //平台门店名,由京西到平台
|
VendorStoreName string `orm:"size(255)" json:"vendorStoreName"` //平台门店名,由京西到平台
|
||||||
VendorPayPercentage int `json:"vendorPayPercentage"` //平台结算比例
|
VendorPayPercentage int `json:"vendorPayPercentage"` //平台结算比例
|
||||||
PricePercentage int16 `orm:"default(100)" json:"pricePercentage"` // todo 厂商价格相对于本地价格的百分比,这个字段的修改会比较特殊,因为可能需要刷新厂商价格
|
PricePercentage int16 `orm:"default(100)" json:"pricePercentage"` // todo 厂商价格相对于本地价格的百分比,这个字段的修改会比较特殊,因为可能需要刷新厂商价格
|
||||||
PricePercentagePack string `orm:"size(32)" json:"pricePercentagePack"` //
|
PricePercentagePack string `orm:"size(32)" json:"pricePercentagePack"` //
|
||||||
FreightDeductionPack string `orm:"size(32)" json:"freightDeductionPack"` //
|
FreightDeductionPack string `orm:"size(32)" json:"freightDeductionPack"` //
|
||||||
AutoPickup int8 `orm:"default(1)" json:"autoPickup"` // 是否自动拣货
|
AutoPickup int8 `orm:"default(1)" json:"autoPickup"` // 是否自动拣货
|
||||||
DeliveryType int8 `orm:"default(0)" json:"deliveryType"` // 配送类型
|
DeliveryType int8 `orm:"default(0)" json:"deliveryType"` // 配送类型
|
||||||
DeliveryFeeDeductionSill int `json:"deliveryFeeDeductionSill"` //在vendorID=14,存储满 x 包邮金额
|
DeliveryFeeDeductionSill int `json:"deliveryFeeDeductionSill"` //在vendorID=14,存储满 x 包邮金额
|
||||||
DeliveryFeeDeductionFee int `json:"deliveryFeeDeductionFee"` //在vendorID=14,存储打包费
|
DeliveryFeeDeductionFee int `json:"deliveryFeeDeductionFee"` //在vendorID=14,存储打包费
|
||||||
DeliveryCompetition int8 `orm:"default(1)" json:"deliveryCompetition"` // 是否支持配送竞争
|
DeliveryCompetition int8 `orm:"default(1)" json:"deliveryCompetition"` // 是否支持配送竞争
|
||||||
CreateDeliveryType int `orm:"default(0)" json:"createDeliveryType"` //默认0系统发单,1为门店发单
|
CreateDeliveryType int `orm:"default(0)" json:"createDeliveryType"` //默认0系统发单,1为门店发单
|
||||||
IsService int `orm:"default(0)" json:"isService"` // 默认0非服务商,1服务商
|
IsService int `orm:"default(0)" json:"isService"` // 默认0非服务商,1服务商
|
||||||
SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
|
SyncStatus int8 `orm:"default(2)" json:"syncStatus"`
|
||||||
IsSync int8 `orm:"default(1)" json:"isSync"` // 是否同步
|
IsSync int8 `orm:"default(1)" json:"isSync"` // 是否同步
|
||||||
SyncRule int8 `orm:"default(0)" json:"syncRule"` //目前用于京东商城晚上的同步规则,0表示关闭,1表示小同步,2表示大同步
|
SyncRule int8 `orm:"default(0)" json:"syncRule"` //目前用于京东商城晚上的同步规则,0表示关闭,1表示小同步,2表示大同步
|
||||||
@@ -519,6 +519,7 @@ type StoreMap struct {
|
|||||||
VendorAccount string `orm:"size(255)" json:"vendorAccount"` //商户在平台上的账号(授权用
|
VendorAccount string `orm:"size(255)" json:"vendorAccount"` //商户在平台上的账号(授权用
|
||||||
VendorPasswaord string `orm:"size(255)" json:"vendorPasswaord"` //商户在平台上的密码( aes cbc base64后的
|
VendorPasswaord string `orm:"size(255)" json:"vendorPasswaord"` //商户在平台上的密码( aes cbc base64后的
|
||||||
AuditStatus int `json:"auditStatus"` //审核状态(授权状态
|
AuditStatus int `json:"auditStatus"` //审核状态(授权状态
|
||||||
|
// DeliverySelf liulei int `orm:"column(delivery_self);size(48);default(0)" json:"deliverySelf"` // 是否支持自提(0-不支持,1-支持)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (*StoreMap) TableUnique() [][]string {
|
func (*StoreMap) TableUnique() [][]string {
|
||||||
|
|||||||
Reference in New Issue
Block a user