|
@@ -23,6 +23,8 @@ using Volo.Abp.ObjectMapping;
|
|
|
using Volo.Abp.Application.Services;
|
|
using Volo.Abp.Application.Services;
|
|
|
using ZstdSharp.Unsafe;
|
|
using ZstdSharp.Unsafe;
|
|
|
using System.Transactions;
|
|
using System.Transactions;
|
|
|
|
|
+using NUglify.JavaScript.Syntax;
|
|
|
|
|
+using System.Linq.Expressions;
|
|
|
|
|
|
|
|
namespace Business.ResourceExamineManagement
|
|
namespace Business.ResourceExamineManagement
|
|
|
{
|
|
{
|
|
@@ -119,6 +121,41 @@ namespace Business.ResourceExamineManagement
|
|
|
_mysql_ic_bom_child = mysql_ic_bom_child;
|
|
_mysql_ic_bom_child = mysql_ic_bom_child;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// mongoDB示例方法,后期删除
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <returns></returns>
|
|
|
|
|
+ public async Task test()
|
|
|
|
|
+ {
|
|
|
|
|
+ //多条插入
|
|
|
|
|
+ List<mes_technique> infos = new List<mes_technique>();
|
|
|
|
|
+ mes_technique info;
|
|
|
|
|
+ for (int i = 0; i < 3; i++)
|
|
|
|
|
+ {
|
|
|
|
|
+ info = new mes_technique();
|
|
|
|
|
+ info.GenerateNewId();
|
|
|
|
|
+ info.tech_name = "多条" + i;
|
|
|
|
|
+ info.level = i;
|
|
|
|
|
+ infos.Add(info);
|
|
|
|
|
+ }
|
|
|
|
|
+ await _mes_technique.InsertMany(infos);
|
|
|
|
|
+
|
|
|
|
|
+ var info2 = _mes_technique.GetAll().Result;
|
|
|
|
|
+ var a = new PschedDto();
|
|
|
|
|
+ a.count = info2.Count;
|
|
|
|
|
+
|
|
|
|
|
+ //获取数据
|
|
|
|
|
+ var info1 = await _mes_technique.GetOneByID((long)1732029975067480064);
|
|
|
|
|
+
|
|
|
|
|
+ //更新数据
|
|
|
|
|
+ info1.tech_name = "更新***";
|
|
|
|
|
+ var rlt = await _mes_technique.UpdateOne(info1, info1.Id);
|
|
|
|
|
+
|
|
|
|
|
+ //根据条件查询数据
|
|
|
|
|
+ Expression<Func<mes_technique, bool>> filter = x => x.Id == (long)1732376973889097728 && x.tech_name == "多条0";
|
|
|
|
|
+ var info3 = await _mes_technique.GetManyByCondition(filter);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 资源检查
|
|
/// 资源检查
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -127,30 +164,6 @@ namespace Business.ResourceExamineManagement
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
public async Task<PschedDto> ReceiveResult(SeorderentryDto input)
|
|
public async Task<PschedDto> ReceiveResult(SeorderentryDto input)
|
|
|
{
|
|
{
|
|
|
- ////多条插入
|
|
|
|
|
- //List<mes_technique> infos = new List<mes_technique>();
|
|
|
|
|
- //mes_technique info;
|
|
|
|
|
- //for (int i = 0; i < 3; i++)
|
|
|
|
|
- //{
|
|
|
|
|
- // info = new mes_technique();
|
|
|
|
|
- // info.GenerateNewId();
|
|
|
|
|
- // info.tech_name = "多条" + i;
|
|
|
|
|
- // info.level = i;
|
|
|
|
|
- // infos.Add(info);
|
|
|
|
|
- //}
|
|
|
|
|
- //await _mes_technique.InsertMany(infos);
|
|
|
|
|
-
|
|
|
|
|
- //var info2 = _mes_technique.GetAll().Result;
|
|
|
|
|
- //var a = new PschedDto();
|
|
|
|
|
- //a.count = info2.Count;
|
|
|
|
|
- //return a;
|
|
|
|
|
-
|
|
|
|
|
- ////获取数据
|
|
|
|
|
- //var info1 = await _mes_technique.GetOneByID((long)1732029975067480064);
|
|
|
|
|
-
|
|
|
|
|
- ////更新数据
|
|
|
|
|
- //info1.tech_name = "更新***";
|
|
|
|
|
- //var rlt =await _mes_technique.UpdateOne(info1, info1.Id);
|
|
|
|
|
return null;
|
|
return null;
|
|
|
throw new NotImplementedException();
|
|
throw new NotImplementedException();
|
|
|
|
|
|