You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.5 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. using Microsoft.Extensions.Configuration;
  2. using Shentun.Peis.Enums;
  3. using Shentun.Peis.Models;
  4. using Shentun.Peis.PlugIns;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Reflection;
  10. using System.Text;
  11. using System.Threading.Tasks;
  12. using Volo.Abp.Domain.Repositories;
  13. using Volo.Abp.Domain.Services;
  14. namespace Shentun.Peis.ChargeRequestAsbitems
  15. {
  16. public class ChargeRequestAsbitemManager : DomainService
  17. {
  18. private readonly IRepository<ChargeRequestAsbitem, Guid> _repository;
  19. public ChargeRequestAsbitemManager(IRepository<ChargeRequestAsbitem, Guid> repository,
  20. IRepository<ThirdInterface, Guid> thirdInterfaceRepository)
  21. {
  22. _repository = repository;
  23. }
  24. /// <summary>
  25. /// 创建
  26. /// </summary>
  27. /// <param name="entity"></param>
  28. /// <returns></returns>
  29. public async Task<ChargeRequestAsbitem> CreateAsync(
  30. ChargeRequestAsbitem entity
  31. )
  32. {
  33. return new ChargeRequestAsbitem(
  34. GuidGenerator.Create()
  35. )
  36. {
  37. ChargeRequestId = entity.ChargeRequestId,
  38. AsbitemId = entity.AsbitemId,
  39. RegisterCheckAsbitemId = entity.RegisterCheckAsbitemId,
  40. ChargePrice = entity.ChargePrice,
  41. Amount = entity.Amount,
  42. IsCharge = 'N',
  43. };
  44. }
  45. }
  46. }