优化查询今天工单

This commit is contained in:
quowingwang 2026-01-05 15:03:58 +08:00
parent b111bbf65e
commit ffe009e6d3
2 changed files with 5 additions and 13 deletions

View File

@ -1,8 +1,8 @@
{ {
"dbConfigs": [ "dbConfigs": [
{ {
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ay2509055-guiyang-fluorescence-lmes;Port=3308;", //"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog=ay2509055-guiyang-fluorescence-lmes;Port=3308;",
//"Conn": "Data Source=192.168.1.48;User ID=root;Password=123456;Initial Catalog=ay2509055-guiyang-fluorescence-lmes;Port=3306;", "Conn": "Data Source=192.168.1.48;User ID=root;Password=123456;Initial Catalog=ay2509055-guiyang-fluorescence-lmes;Port=3306;",
"DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4 "DbType": 0, // MySql = 0, SqlServer = 1, Oracle = 3PgSql = 4
"ConfigId": "0", // "ConfigId": "0", //
"IsAutoCloseConnection": true "IsAutoCloseConnection": true
@ -12,8 +12,8 @@
// //
"CodeGenDbConfig": { "CodeGenDbConfig": {
//{dbName} //{dbName}
"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog={dbName};Port=3308;", //"Conn": "Data Source=139.224.232.211;User ID=root;Password=doantech123;Initial Catalog={dbName};Port=3308;",
//"Conn": "Data Source=192.168.1.48;User ID=root;Password=123456;Initial Catalog={dbName};Port=3306;", "Conn": "Data Source=192.168.1.48;User ID=root;Password=123456;Initial Catalog={dbName};Port=3306;",
"DbType": 0, "DbType": 0,
"IsAutoCloseConnection": true, "IsAutoCloseConnection": true,
"DbName": "ay2509055-guiyang-fluorescence-lmes" //,Oracle "DbName": "ay2509055-guiyang-fluorescence-lmes" //,Oracle

View File

@ -433,16 +433,8 @@ namespace RIZO.Service.Mes.WorkOrderInfo
List<WorkOrder> workOrders = Queryable() List<WorkOrder> workOrders = Queryable()
.Where(predicate.ToExpression()) .Where(predicate.ToExpression())
.ToList(); .ToList();
if (workOrders.Any())
{
return ApiResult.Success(workOrders); return ApiResult.Success(workOrders);
} }
else
{
return new ApiResult(201, "无工单数据");
}
}
catch (Exception ex) catch (Exception ex)
{ {
return ApiResult.Error(ex.Message); return ApiResult.Error(ex.Message);