|
|
@@ -1309,7 +1309,7 @@ namespace Business.ResourceExamineManagement
|
|
|
foreach (var item in rtn.DayBulletinBoardList)
|
|
|
{
|
|
|
var detail = ObjectMapper.Map<DayBulletinBoard, b_day_bulletin_board>(item);
|
|
|
- detail.GenerateNewId();
|
|
|
+ detail.GenerateNewId(help.NextId());
|
|
|
detail.create_time = DateTime.Now.Date;
|
|
|
detail.tenant_id = param.tenantId;
|
|
|
detail.factory_id = param.factoryId;
|
|
|
@@ -1317,15 +1317,15 @@ namespace Business.ResourceExamineManagement
|
|
|
}
|
|
|
if (examineList.Any())
|
|
|
{
|
|
|
- await _businessBangDbContext.b_order_examine_result.BulkInsertAsync(examineList,options=>options.AutoMapOutputDirection = false);
|
|
|
+ await _businessBangDbContext.b_order_examine_result.BulkInsertAsync(examineList, options => options.InsertKeepIdentity = true);
|
|
|
}
|
|
|
if (orderDetails.Any())
|
|
|
{
|
|
|
- await _businessBangDbContext.b_order_detail.BulkInsertAsync(orderDetails, options => options.AutoMapOutputDirection = false);
|
|
|
+ await _businessBangDbContext.b_order_detail.BulkInsertAsync(orderDetails, options=> options.InsertKeepIdentity = true);
|
|
|
}
|
|
|
if (daybulletinboards.Any())
|
|
|
{
|
|
|
- await _businessBangDbContext.b_day_bulletin_board.BulkInsertAsync(daybulletinboards, options => options.AutoMapOutputDirection = false);
|
|
|
+ //await _businessBangDbContext.b_day_bulletin_board.BulkInsertAsync(daybulletinboards, options => options.AutoMapOutputDirection = false);
|
|
|
}
|
|
|
|
|
|
return JsonConvert.SerializeObject(rtn);
|