|
|
@@ -30,7 +30,10 @@ func TaskList(c *gin.Context) { |
|
|
|
if store.Pid > 0 { |
|
|
|
contact = append(contact, utils.IntToStr(store.Id)) |
|
|
|
} |
|
|
|
sess := svc.MasterDb(c).Where("store_id=? and is_delete=0", storeId).In("contact", contact) |
|
|
|
sess := svc.MasterDb(c).Where("store_id=? and is_delete=0", storeId) |
|
|
|
if store.Pid > 0 { |
|
|
|
sess.In("contact", contact) |
|
|
|
} |
|
|
|
if args.TaskType != "" { |
|
|
|
sess.And("first_cid=?", args.TaskType) |
|
|
|
} |
|
|
|