diff --git a/src/Shentun.Peis.Application.Contracts/PersonnelTypes/CreatePersonnelTypeDto.cs b/src/Shentun.Peis.Application.Contracts/PersonnelTypes/CreatePersonnelTypeDto.cs
index 6577e8f..1e99f12 100644
--- a/src/Shentun.Peis.Application.Contracts/PersonnelTypes/CreatePersonnelTypeDto.cs
+++ b/src/Shentun.Peis.Application.Contracts/PersonnelTypes/CreatePersonnelTypeDto.cs
@@ -7,7 +7,7 @@ namespace Shentun.Peis.PersonnelTypes
{
public class CreatePersonnelTypeDto
{
- [Required(ErrorMessage = "名称不能为空")]]
+ [Required(ErrorMessage = "名称不能为空")]
public string DisplayName { get; set; }
}
}
diff --git a/src/Shentun.Peis.Application/PersonnelTypes/PersonnelTypeAppService.cs b/src/Shentun.Peis.Application/PersonnelTypes/PersonnelTypeAppService.cs
index fed4823..3854acf 100644
--- a/src/Shentun.Peis.Application/PersonnelTypes/PersonnelTypeAppService.cs
+++ b/src/Shentun.Peis.Application/PersonnelTypes/PersonnelTypeAppService.cs
@@ -146,17 +146,7 @@ namespace Shentun.Peis.PersonnelTypes
await _manager.CheckAndDeleteAsync(id);
}
- ///
- /// 修改排序 相邻之间
- ///
- /// 需要修改的ID
- /// 目标ID
- [HttpPut("api/app/personneltype/updatesort")]
- [RemoteService(false)]
- public async Task UpdateSortAsync(Guid id, Guid targetid)
- {
- await _manager.UpdateSortAsync(id, targetid);
- }
+
///
/// 修改排序 置顶,置底
diff --git a/src/Shentun.Peis.Domain/CardRegisters/CardRegisterManager.cs b/src/Shentun.Peis.Domain/CardRegisters/CardRegisterManager.cs
index 8d7a38d..a99af83 100644
--- a/src/Shentun.Peis.Domain/CardRegisters/CardRegisterManager.cs
+++ b/src/Shentun.Peis.Domain/CardRegisters/CardRegisterManager.cs
@@ -30,7 +30,6 @@ namespace Shentun.Peis.CardRegisters
CardRegister entity
)
{
- Check.NotNull(entity, nameof(entity));
Verify(entity);
var queryable = await _repository.GetQueryableAsync();
var findedEntity = queryable.Where(x => x.CardNo == entity.CardNo && x.IsActive == 'Y').FirstOrDefault();
@@ -70,7 +69,6 @@ namespace Shentun.Peis.CardRegisters
CardRegister targetEntity
)
{
- Check.NotNull(sourceEntity, nameof(sourceEntity));
Check.NotNull(targetEntity, nameof(targetEntity));
Verify(sourceEntity);
if (sourceEntity.CardNo != targetEntity.CardNo) {
@@ -118,7 +116,7 @@ namespace Shentun.Peis.CardRegisters
}
}
}
- public void Verify(CardRegister entity)
+ private void Verify(CardRegister entity)
{
Check.NotNull(entity, nameof(entity));
Check.NotNullOrWhiteSpace(entity.CardNo, nameof(entity.CardNo));