补漏订单修改
This commit is contained in:
@@ -231,6 +231,19 @@ var (
|
||||
"18048531223": "18048531223", //石老板
|
||||
"18982250714": "18982250714", //赵敏夫
|
||||
}
|
||||
|
||||
marketManPhoneRoleMap = map[string]string{
|
||||
"marketManPhone": "市场负责人电话",
|
||||
}
|
||||
|
||||
marketManPhoneRoleMoblieMap = map[string]string{
|
||||
"13684045763": "13684045763",
|
||||
"18160030913": "18160030913",
|
||||
"18048531223": "18048531223",
|
||||
"18328080405": "18328080405",
|
||||
"17380734342": "17380734342",
|
||||
"15208271238": "15208271238",
|
||||
}
|
||||
)
|
||||
|
||||
func getStoresSql(ctx *jxcontext.Context, keyword string, params map[string]interface{}, orderTimeFrom, orderTimeTo time.Time) (sql string, sqlParams []interface{}, sqlFrom string, sqlFromParams []interface{}, err error) {
|
||||
@@ -881,6 +894,13 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa
|
||||
}
|
||||
}
|
||||
}
|
||||
if marketManPhoneRoleMap[k] != "" {
|
||||
if authInfo, err := ctx.GetV2AuthInfo(); err == nil {
|
||||
if marketManPhoneRoleMoblieMap[authInfo.Mobile] == "" {
|
||||
return 0, errors.New(fmt.Sprintf("当前用户 [%v] 无权限修改 [%v] 字段!", authInfo.Name, roleMap[k]))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// districtCode := 0
|
||||
|
||||
Reference in New Issue
Block a user