|
|
@@ -1281,6 +1281,7 @@ namespace Business.ResourceExamineManagement
|
|
|
//检查结果写入数据库
|
|
|
List<b_order_examine_result> examineList = new List<b_order_examine_result>();
|
|
|
List<b_order_detail> orderDetails = new List<b_order_detail>();
|
|
|
+ List<b_day_bulletin_board> daybulletinboards = new List<b_day_bulletin_board>();
|
|
|
|
|
|
foreach (var ex in rtn.KittingCheckResultList)
|
|
|
{
|
|
|
@@ -1300,6 +1301,16 @@ namespace Business.ResourceExamineManagement
|
|
|
orderDetails.Add(detail);
|
|
|
});
|
|
|
}
|
|
|
+
|
|
|
+ foreach (var item in rtn.DayBulletinBoardList)
|
|
|
+ {
|
|
|
+ var detail = ObjectMapper.Map<DayBulletinBoard, b_day_bulletin_board>(item);
|
|
|
+ detail.GenerateNewId();
|
|
|
+ detail.create_time = DateTime.Now.Date;
|
|
|
+ detail.tenant_id = param.tenantId;
|
|
|
+ detail.factory_id = param.factoryId;
|
|
|
+ daybulletinboards.Add(detail);
|
|
|
+ }
|
|
|
if (examineList.Any())
|
|
|
{
|
|
|
await _businessBangDbContext.b_order_examine_result.BulkInsertAsync(examineList,options=>options.AutoMapOutputDirection = false);
|
|
|
@@ -1308,6 +1319,10 @@ namespace Business.ResourceExamineManagement
|
|
|
{
|
|
|
await _businessBangDbContext.b_order_detail.BulkInsertAsync(orderDetails, options => options.AutoMapOutputDirection = false);
|
|
|
}
|
|
|
+ if (daybulletinboards.Any())
|
|
|
+ {
|
|
|
+ await _businessBangDbContext.b_day_bulletin_board.BulkInsertAsync(daybulletinboards, options => options.AutoMapOutputDirection = false);
|
|
|
+ }
|
|
|
|
|
|
return JsonConvert.SerializeObject(rtn);
|
|
|
}
|