Uat_Study
parent
3e36981d36
commit
9b1469da37
|
@ -56,7 +56,7 @@
|
||||||
</summary>
|
</summary>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyFrontAuditConfigItem(IRaCIS.Core.Infra.EFCore.Dto.CopyFrontAuditConfigItemDto)">
|
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.CopyFrontAuditConfigItem(IRaCIS.Core.Infra.EFCore.Common.Dto.CopyFrontAuditConfigItemDto)">
|
||||||
<summary>
|
<summary>
|
||||||
复制配置项及其子项
|
复制配置项及其子项
|
||||||
</summary>
|
</summary>
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
<param name="data">数据集</param>
|
<param name="data">数据集</param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</member>
|
||||||
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.SetInspectionEnumValue(IRaCIS.Core.Infra.EFCore.Dto.SetInspectionEnumValueDto)">
|
<member name="M:IRaCIS.Core.Application.Service.FrontAuditConfigService.SetInspectionEnumValue(IRaCIS.Core.Infra.EFCore.Common.Dto.SetInspectionEnumValueDto)">
|
||||||
<summary>
|
<summary>
|
||||||
翻译稽查数据
|
翻译稽查数据
|
||||||
</summary>
|
</summary>
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
using System;
|
using System;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.ViewModel
|
namespace IRaCIS.Core.Application.ViewModel
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,8 +9,8 @@ using Microsoft.AspNetCore.Mvc;
|
||||||
using IRaCIS.Core.Application.Interfaces;
|
using IRaCIS.Core.Application.Interfaces;
|
||||||
using IRaCIS.Core.Application.ViewModel;
|
using IRaCIS.Core.Application.ViewModel;
|
||||||
using Castle.Core.Internal;
|
using Castle.Core.Internal;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using MassTransit;
|
using MassTransit;
|
||||||
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Application.Service
|
namespace IRaCIS.Core.Application.Service
|
||||||
{
|
{
|
||||||
|
|
|
@ -3,7 +3,6 @@ using IRaCIS.Core.Application.Contracts;
|
||||||
using IRaCIS.Core.Application.Service.Inspection.DTO;
|
using IRaCIS.Core.Application.Service.Inspection.DTO;
|
||||||
using IRaCIS.Core.Application.Service.Inspection.Interface;
|
using IRaCIS.Core.Application.Service.Inspection.Interface;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Converters;
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
using IRaCIS.Core.Domain.Models;
|
using IRaCIS.Core.Domain.Models;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using IRaCIS.Core.Infrastructure.Extention;
|
using IRaCIS.Core.Infrastructure.Extention;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
|
@ -53,7 +52,7 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Added).ToList(), "Add");
|
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Added).ToList(), "Add");
|
||||||
|
|
||||||
// 修改
|
// 修改
|
||||||
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified||x.State==EntityState.Unchanged).ToList(), "Update");
|
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Modified).ToList(), "Update");
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Deleted).ToList(), "Deleted");
|
await InsertAddEntitys(entitys.Where(x => x.State == EntityState.Deleted).ToList(), "Deleted");
|
||||||
|
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Dto
|
namespace IRaCIS.Core.Infra.EFCore.Common.Dto
|
||||||
{
|
{
|
||||||
public class DateDto
|
public class DateDto
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Dto
|
namespace IRaCIS.Core.Infra.EFCore.Common.Dto
|
||||||
{
|
{
|
||||||
public class ForeignKey
|
public class ForeignKey
|
||||||
{
|
{
|
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||||
using System.ComponentModel.DataAnnotations;
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore.Dto
|
namespace IRaCIS.Core.Infra.EFCore.Common.Dto
|
||||||
{
|
{
|
||||||
public class SetInspectionEnumValueDto
|
public class SetInspectionEnumValueDto
|
||||||
{
|
{
|
|
@ -16,8 +16,8 @@ using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata;
|
using Microsoft.EntityFrameworkCore.Metadata;
|
||||||
using Microsoft.EntityFrameworkCore.ValueGeneration;
|
using Microsoft.EntityFrameworkCore.ValueGeneration;
|
||||||
using UserTypeGroup = IRaCIS.Core.Domain.Models.UserTypeGroup;
|
using UserTypeGroup = IRaCIS.Core.Domain.Models.UserTypeGroup;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using IRaCIS.Core.Infra.EFCore.Common;
|
using IRaCIS.Core.Infra.EFCore.Common;
|
||||||
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore
|
namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
|
@ -371,7 +371,7 @@ namespace IRaCIS.Core.Infra.EFCore
|
||||||
|
|
||||||
public async Task AddAudit()
|
public async Task AddAudit()
|
||||||
{
|
{
|
||||||
var entities = ChangeTracker.Entries().Where(u => (u.State == EntityState.Modified||u.State==EntityState.Unchanged || u.State == EntityState.Deleted || u.State == EntityState.Added)).Where(x => x.Entity.GetType() != typeof(DataInspection)).ToList();
|
var entities = ChangeTracker.Entries().Where(u => (u.State == EntityState.Modified|| u.State == EntityState.Deleted || u.State == EntityState.Added)).Where(x => x.Entity.GetType() != typeof(DataInspection)).ToList();
|
||||||
AuditingData auditingData = new AuditingData(this, _userInfo);
|
AuditingData auditingData = new AuditingData(this, _userInfo);
|
||||||
await auditingData.IncomingEntitys(entities);
|
await auditingData.IncomingEntitys(entities);
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,7 +13,7 @@ using System.Linq.Expressions;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using EFCore.BulkExtensions;
|
using EFCore.BulkExtensions;
|
||||||
using IRaCIS.Core.Domain.Share;
|
using IRaCIS.Core.Domain.Share;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore
|
namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,9 +17,9 @@ using IRaCIS.Core.Infrastructure;
|
||||||
using IRaCIS.Core.Infrastructure.Extention;
|
using IRaCIS.Core.Infrastructure.Extention;
|
||||||
using Microsoft.Data.SqlClient;
|
using Microsoft.Data.SqlClient;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using IRaCIS.Core.Infra.EFCore.Dto;
|
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using IRaCIS.Core.Domain.Common;
|
using IRaCIS.Core.Domain.Common;
|
||||||
|
using IRaCIS.Core.Infra.EFCore.Common.Dto;
|
||||||
|
|
||||||
namespace IRaCIS.Core.Infra.EFCore
|
namespace IRaCIS.Core.Infra.EFCore
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue