|
|
@@ -38,12 +38,18 @@ func (s *followupService) GetList(req *model.SearchPlatFollowupReq) (total int,
|
|
|
if req.CustId != "" {
|
|
|
followupModel = followupModel.Where("cust_id", req.CustId)
|
|
|
}
|
|
|
+ if req.CustName != "" {
|
|
|
+ followupModel = followupModel.WhereLike("cust_name", "%"+req.CustName+"%")
|
|
|
+ }
|
|
|
if req.TargetId != "" {
|
|
|
followupModel = followupModel.Where("target_id", req.TargetId)
|
|
|
}
|
|
|
if req.TargetType != "" {
|
|
|
followupModel = followupModel.Where("target_type", req.TargetType)
|
|
|
}
|
|
|
+ if req.TargetName != "" {
|
|
|
+ followupModel = followupModel.WhereLike("target_name", "%"+req.TargetName+"%")
|
|
|
+ }
|
|
|
// 负责人查询
|
|
|
if req.ManagerId != "" {
|
|
|
followupModel = followupModel.Where("created_by", req.ManagerId)
|
|
|
@@ -117,12 +123,18 @@ func (s *followupService) GetListByDay(req *model.SearchPlatFollowupReq) (total
|
|
|
if req.CustId != "" {
|
|
|
followupModel = followupModel.Where("cust_id", req.CustId)
|
|
|
}
|
|
|
+ if req.CustName != "" {
|
|
|
+ followupModel = followupModel.WhereLike("cust_name", "%"+req.CustName+"%")
|
|
|
+ }
|
|
|
if req.TargetId != "" {
|
|
|
followupModel = followupModel.Where("target_id", req.TargetId)
|
|
|
}
|
|
|
if req.TargetType != "" {
|
|
|
followupModel = followupModel.Where("target_type", req.TargetType)
|
|
|
}
|
|
|
+ if req.TargetName != "" {
|
|
|
+ followupModel = followupModel.WhereLike("target_name", "%"+req.TargetName+"%")
|
|
|
+ }
|
|
|
// 负责人查询
|
|
|
if req.ManagerId != "" {
|
|
|
followupModel = followupModel.Where("created_by", req.ManagerId)
|