- 禁用门店创建与修改银行相关信息,添加Store.PayeeBankCode,删除Store.PayeeBankName
This commit is contained in:
@@ -592,6 +592,8 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
|||||||
// valid["districtCode"] = api.AutonaviAPI.GetCoordinateDistrictCode(lng, lat)
|
// valid["districtCode"] = api.AutonaviAPI.GetCoordinateDistrictCode(lng, lat)
|
||||||
// }
|
// }
|
||||||
globals.SugarLogger.Debugf("UpdateStore track:%s, valid:%s", ctx.GetTrackInfo(), utils.Format4Output(valid, true))
|
globals.SugarLogger.Debugf("UpdateStore track:%s, valid:%s", ctx.GetTrackInfo(), utils.Format4Output(valid, true))
|
||||||
|
delete(valid, "payeeBankBranchName")
|
||||||
|
delete(valid, "payeeBankCode")
|
||||||
if len(valid) > 0 {
|
if len(valid) > 0 {
|
||||||
dao.Begin(db)
|
dao.Begin(db)
|
||||||
defer func() {
|
defer func() {
|
||||||
@@ -667,6 +669,7 @@ func EnableHaveRestStores(ctx *jxcontext.Context, isAsync, isContinueWhenError b
|
|||||||
}
|
}
|
||||||
|
|
||||||
func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (id int, err error) {
|
func CreateStore(ctx *jxcontext.Context, storeExt *StoreExt, userName string) (id int, err error) {
|
||||||
|
return 0, fmt.Errorf("暂时禁用门店创建,请稍后")
|
||||||
globals.SugarLogger.Debugf("CreateStore storeExt:%s", utils.Format4Output(storeExt, false))
|
globals.SugarLogger.Debugf("CreateStore storeExt:%s", utils.Format4Output(storeExt, false))
|
||||||
store := &storeExt.Store
|
store := &storeExt.Store
|
||||||
if store.ID != 0 && !jxutils.IsLegalStoreID(store.ID) {
|
if store.ID != 0 && !jxutils.IsLegalStoreID(store.ID) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
ActTypeName = map[int]string{
|
ActTypeName = map[int]string{
|
||||||
ActSkuFake: "补贴",
|
ActSkuFake: "结算",
|
||||||
ActSkuDirectDown: "直降",
|
ActSkuDirectDown: "直降",
|
||||||
ActSkuSecKill: "秒杀",
|
ActSkuSecKill: "秒杀",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -291,8 +291,8 @@ type Store struct {
|
|||||||
|
|
||||||
PayeeName string `orm:"size(8)" json:"payeeName"` // 收款人姓名
|
PayeeName string `orm:"size(8)" json:"payeeName"` // 收款人姓名
|
||||||
PayeeAccountNo string `orm:"size(255)" json:"payeeAccountNo"` // 收款账号
|
PayeeAccountNo string `orm:"size(255)" json:"payeeAccountNo"` // 收款账号
|
||||||
PayeeBankBranchName string `orm:"size(255)" json:"payeeBankBranchName"` // 开户银行
|
PayeeBankBranchName string `orm:"size(255)" json:"payeeBankBranchName"` // 开户支行
|
||||||
PayeeBankName string `orm:"size(255)" json:"payeeBankName"` // 开户支行
|
PayeeBankCode string `orm:"size(8)" json:"payeeBankCode"` // 开户行代码
|
||||||
PayPercentage int `json:"payPercentage"`
|
PayPercentage int `json:"payPercentage"`
|
||||||
|
|
||||||
OperatorName string `orm:"size(8)" json:"operatorName"` // 运营人姓名
|
OperatorName string `orm:"size(8)" json:"operatorName"` // 运营人姓名
|
||||||
|
|||||||
Reference in New Issue
Block a user