Commit 494ba7e2 by lizefeng

新增现金流项目列表查询

parent e19a02b9
......@@ -500,5 +500,10 @@ namespace AutoTurnOver.DB
RabbitMQHelper.EnqueneMsg("aims:deviation-v3:input", new t_task_queue { id = item.ToJson(), create_time = DateTime.Now });
}
}
public static List<string> GetProjects()
{
return _connection.Query<string>("select DISTINCT project from dc_ana_deviation_sku").ToList();
}
}
}
......@@ -25,5 +25,9 @@ namespace AutoTurnOver.Services
return datas;
}
public List<string> GetProjects()
{
return dc_ana_deviation_dao.GetProjects();
}
}
}
......@@ -49,5 +49,10 @@ namespace AutoTurnOver.Controllers
total = total,
});
}
public JsonResult Projects()
{
return new JsonResult(new DeviationServices().GetProjects().Select(s=>new { Name = s}));
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment