|
@ -69,7 +69,7 @@ public class DeliverRequestAppService : |
|
|
public override async Task<DeliverRequestDTO> CreateAsync(DeliverRequestEditInput input) |
|
|
public override async Task<DeliverRequestDTO> CreateAsync(DeliverRequestEditInput input) |
|
|
{ |
|
|
{ |
|
|
var entity = ObjectMapper.Map<DeliverRequestEditInput, DeliverRequest>(input); |
|
|
var entity = ObjectMapper.Map<DeliverRequestEditInput, DeliverRequest>(input); |
|
|
|
|
|
await SetRequestAutoPropertiesAsync(entity).ConfigureAwait(false); |
|
|
await _deliverRequestManager.CreateAsync(entity).ConfigureAwait(false); |
|
|
await _deliverRequestManager.CreateAsync(entity).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
var dto = ObjectMapper.Map<DeliverRequest, DeliverRequestDTO>(entity); |
|
|
var dto = ObjectMapper.Map<DeliverRequest, DeliverRequestDTO>(entity); |
|
@ -248,7 +248,16 @@ public class DeliverRequestAppService : |
|
|
|
|
|
|
|
|
private async Task SetRequestAutoPropertiesAsync(DeliverRequest entity) |
|
|
private async Task SetRequestAutoPropertiesAsync(DeliverRequest entity) |
|
|
{ |
|
|
{ |
|
|
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.Deliver, EnumTransSubType.Deliver_Standard).ConfigureAwait(false); |
|
|
var transType = EnumTransSubType.Deliver_Standard; |
|
|
|
|
|
if (entity.DeliverRequestType == EnumDeliverRequestType.FIS) |
|
|
|
|
|
{ |
|
|
|
|
|
transType = EnumTransSubType.Deliver_FIS; |
|
|
|
|
|
} |
|
|
|
|
|
else if (entity.DeliverRequestType == EnumDeliverRequestType.RAW) |
|
|
|
|
|
{ |
|
|
|
|
|
transType = EnumTransSubType.Deliver_RAW; |
|
|
|
|
|
} |
|
|
|
|
|
var tranType = await TransactionTypeAclService.GetByTransTypeAsync(EnumTransType.Deliver, transType).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
Check.NotNull(tranType, "事务类型", "事务类型不存在"); |
|
|
Check.NotNull(tranType, "事务类型", "事务类型不存在"); |
|
|
|
|
|
|
|
@ -257,7 +266,7 @@ public class DeliverRequestAppService : |
|
|
entity.AutoAgree = tranType.AutoAgreeRequest; |
|
|
entity.AutoAgree = tranType.AutoAgreeRequest; |
|
|
entity.AutoHandle = tranType.AutoHandleRequest; |
|
|
entity.AutoHandle = tranType.AutoHandleRequest; |
|
|
entity.DirectCreateNote = tranType.DirectCreateNote; |
|
|
entity.DirectCreateNote = tranType.DirectCreateNote; |
|
|
entity.DeliverRequestType = EnumDeliverRequestType.Normal; |
|
|
entity.DeliverRequestType = entity.DeliverRequestType; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private static void CheckTransactionType(TransactionTypeDTO transactionType, ItemBasicDTO item) |
|
|
private static void CheckTransactionType(TransactionTypeDTO transactionType, ItemBasicDTO item) |
|
|