修改领取任务门店参数
This commit is contained in:
@ -347,6 +347,9 @@ func (s *sTask) GetSelectorList(ctx context.Context, in *model.SelectorIn) (out
|
|||||||
// GetTask 领取任务
|
// GetTask 领取任务
|
||||||
func (s *sTask) GetTask(ctx context.Context, in *model.GetTaskIn) (out *model.GetTaskOut, err error) {
|
func (s *sTask) GetTask(ctx context.Context, in *model.GetTaskIn) (out *model.GetTaskOut, err error) {
|
||||||
var storeId int
|
var storeId int
|
||||||
|
if in.StoreId == 0 && in.NetBarAccount == "" {
|
||||||
|
return nil, ecode.Fail.Sub("请选择门店")
|
||||||
|
}
|
||||||
if in.StoreId > 0 {
|
if in.StoreId > 0 {
|
||||||
storeId = in.StoreId
|
storeId = in.StoreId
|
||||||
} else if in.NetBarAccount != "" && in.StoreId <= 0 {
|
} else if in.NetBarAccount != "" && in.StoreId <= 0 {
|
||||||
|
|||||||
Reference in New Issue
Block a user