同步MySQL版本

This commit is contained in:
zmrid 2023-02-23 20:00:55 +08:00
parent 52f4aa154e
commit d71b063d1d
2 changed files with 3 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);
}