|
|
@@ -45,6 +45,9 @@ func NewTaskService(ctx context.Context) (svc *taskService, err error) {
|
|
|
// GetList 任务信息列表
|
|
|
func (s *taskService) GetList(req *model.SearchPlatTaskReq) (total int, TaskList []*model.PlatTaskEx, err error) {
|
|
|
TaskModel := s.Dao.LeftJoin("plat_task_handle", "plat_task_handle.task_id=plat_task.id")
|
|
|
+ if req.TaskId != "" {
|
|
|
+ TaskModel = TaskModel.Where("plat_task.id", req.TaskId)
|
|
|
+ }
|
|
|
if req.TaskTitle != "" {
|
|
|
TaskModel = TaskModel.Where("plat_task.task_title LIKE ?", "%"+req.TaskTitle+"%")
|
|
|
}
|