同步MySQL版本
This commit is contained in:
parent
52f4aa154e
commit
d71b063d1d
|
|
@ -79,8 +79,8 @@ namespace iMES.Custom.Controllers
|
|||
[AllowAnonymous]
|
||||
public JsonResult GetAppHomeProcessTop5()
|
||||
{
|
||||
string woSql = @" SELECT TOP 5 [ProcessName] name, SUM([PlanQty]) data
|
||||
FROM[iMES].[dbo].[Production_WorkOrderList] GROUP BY ProcessName ";
|
||||
string woSql = @" SELECT ProcessName name, SUM(PlanQty) data
|
||||
FROM Production_WorkOrderList GROUP BY ProcessName ";
|
||||
List<BoardEntity> list = DBServerProvider.SqlDapper.QueryList<BoardEntity>(woSql, new { });
|
||||
return JsonNormal(list);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ namespace iMES.System.Controllers
|
|||
[Route("getVersionInfo"), HttpGet]
|
||||
public JsonResult GetVersionInfo()
|
||||
{
|
||||
string sql = " select top 8 * from Sys_VersionInfo order by CreateDate desc ";
|
||||
string sql = " select * from Sys_VersionInfo order by CreateDate desc ";
|
||||
List<Sys_VersionInfo> list = DBServerProvider.SqlDapper.QueryList<Sys_VersionInfo>(sql, new { });
|
||||
return Json(list);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue