Quellcode durchsuchen

初步调整。

tangdi vor 3 Jahren
Ursprung
Commit
ffc760f18d

+ 9 - 3
MicroServices/Business/Business.Application/ResourceExamineManagement/ProductExamineAppService.cs

@@ -79,21 +79,27 @@ namespace Business.ResourceExamineManagement
         {
             if (param.packages <= 0)
             {
-                throw new NotImplementedException("产能计算参数有误!");
+                var rtn = 10 * param.packages;
+                return rtn;
+                //throw new NotImplementedException("产能计算参数有误!");
             }
             #region 1、数据准备
             //1.1、获取工艺路径数据
             mes_technique tech = _mes_technique.Find(p => p.bom == param.bom_number && p.bomver == param.version && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted).Result.FirstOrDefault();
             if (tech == null)
             {
-                throw new NotImplementedException("请先配置工艺路径!");
+                var rtn = 10 * param.packages;
+                return rtn;
+                //throw new NotImplementedException("请先配置工艺路径!");
             }
 
             //1.2、获取工艺路径关联工序数据
             List<mes_tech_process> tech_Processes = await _mes_tech_process.GetManyByCondition(p => p.tech_id == tech.Id && p.tenant_id == param.tenantId && p.factory_id == param.factoryId && !p.IsDeleted);
             if (tech_Processes.Count == 0)
             {
-                throw new NotImplementedException("请先配置工序!");
+                var rtn = 10 * param.packages;
+                return rtn;
+                //throw new NotImplementedException("请先配置工序!");
             }
 
             //1.3、获取当前工艺路径下的工序数据