heteng 3 лет назад
Родитель
Сommit
7f7f045d07

+ 1 - 132
MicroServices/Business/Business.Application/ResourceExamineManagement/ResourceExamineAppService.cs

@@ -342,59 +342,6 @@ namespace Business.ResourceExamineManagement
         }
         #endregion
 
-        /// <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);
-
-            ////删除数据
-            ////根据id删除数据
-            ////await _ic_item_stock.DeleteByIds(136123);
-
-            ////根据id删除表数据
-            //List<long> aa = new List<long>();
-            //aa.Add(136131);
-            //aa.Add(136132);
-            //aa.Add(136133);
-            //FilterDefinition<ic_item_stock> filter = Builders<ic_item_stock>.Filter.In(s => s.icitem_id, aa);
-            //await _ic_item_stock.Delete(filter);
-
-            //根据条件删除数据
-            //await _ic_item_stock.Delete(p=>p.icitem_name == "test");
-
-            //await _ic_item_stock.DeleteByIds(aa);
-            //await _ic_item_stock.DeleteAll();
-        }
-
         /// <summary>
         /// 资源检查
         /// </summary>
@@ -488,7 +435,7 @@ namespace Business.ResourceExamineManagement
         }
 
         /// <summary>
-        /// 获取icbom,icbomchild数据
+        /// 递归:获取icbom,icbomchild数据
         /// </summary>
         /// <param name="icBoms"></param>
         /// <param name="bomlist"></param>
@@ -518,84 +465,6 @@ namespace Business.ResourceExamineManagement
             }
         }
 
-        /// <summary>
-        /// 测试使用新增销售订单数据
-        /// </summary>
-        /// <param name="tenantId"></param>
-        /// <param name="factoryId"></param>
-        /// <returns></returns>
-        public long Save(long tenantId, long factoryId)
-        {
-            //销售订单
-            crm_seorder crm_Seorder = new crm_seorder()
-            {
-                IsDeleted = false,
-                bill_no = "SO201900000020",
-                order_type = 1,
-                trade_type = 1,
-                sale_style = 1,
-                custom_id = 1001,
-                custom_name = "温州正泰电器科技有限公司",
-                custom_no = "01.0098",
-                date = DateTime.Now.Date,
-                currency = 1,
-                exchange_rate = 1,
-                biller = "张晓延",
-                emp_no = "8604",
-                emp_name = "王劲松",
-                auditor = "邹晓燕",
-                audit_date = DateTime.Now.Date,
-                status = 1,
-                closed = true,
-                op_time = DateTime.Now.Date,
-                tenant_id = tenantId,
-                factory_id = factoryId,
-                org_id = tenantId
-            };
-            crm_Seorder.GenerateNewId();
-            crm_seorderentry crm_Seorderentry = new crm_seorderentry()
-            {
-                IsDeleted = false,
-                seorder_id = crm_Seorder.Id,
-                bill_no = "SO201900000020",
-                entry_seq = 1,
-                map_name = "自动转换开关电器",
-                map_number = "L6.733036.5",
-                item_number = "9.1.03.01.0541",
-                item_name = "自动转换开关电器",
-                fms_number = "988123",
-                specification = "FDQ3-RMQ6-63/4JC1R_基本型",
-                bom_number = "BOM00042070",
-                unit = "台",
-                qty = 1000,
-                price = 100,
-                tax_price = 0,
-                amount = 0,
-                tax_rate = 13,
-                discount_amount = 0,
-                discount_rate = 0,
-                aux_price_discount = 70,
-                total_amount = 0,
-                plan_date = DateTime.Parse("2023-04-29 00:00:00"),
-                planner_name = "钱萍萍",
-                planner_no = "9022",
-                state = true,
-                rstate = 0,
-                is_checked = true,
-                deliver_count = 0,
-                deliver_notice_count = 0,
-                tenant_id = tenantId,
-                factory_id = factoryId,
-                org_id = tenantId,
-            };
-            crm_Seorderentry.GenerateNewId();
-
-            _mysql_crm_seorder.InsertAsync(crm_Seorder);
-            _mysql_crm_seorderentry.InsertAsync(crm_Seorderentry);
-
-            return crm_Seorderentry.Id;
-        }
-
         /// <summary>
         /// 数据库快照
         /// </summary>