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
55 lines
1.5 KiB
using Microsoft.Extensions.Configuration;
|
|
using Shentun.Peis.Enums;
|
|
using Shentun.Peis.Models;
|
|
using Shentun.Peis.PlugIns;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Repositories;
|
|
using Volo.Abp.Domain.Services;
|
|
|
|
namespace Shentun.Peis.ChargeRequestAsbitems
|
|
{
|
|
public class ChargeRequestAsbitemManager : DomainService
|
|
{
|
|
private readonly IRepository<ChargeRequestAsbitem, Guid> _repository;
|
|
|
|
public ChargeRequestAsbitemManager(IRepository<ChargeRequestAsbitem, Guid> repository,
|
|
IRepository<ThirdInterface, Guid> thirdInterfaceRepository)
|
|
{
|
|
_repository = repository;
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 创建
|
|
/// </summary>
|
|
/// <param name="entity"></param>
|
|
/// <returns></returns>
|
|
public async Task<ChargeRequestAsbitem> CreateAsync(
|
|
ChargeRequestAsbitem entity
|
|
)
|
|
{
|
|
|
|
return new ChargeRequestAsbitem(
|
|
GuidGenerator.Create()
|
|
)
|
|
{
|
|
ChargeRequestId = entity.ChargeRequestId,
|
|
AsbitemId = entity.AsbitemId,
|
|
RegisterCheckAsbitemId = entity.RegisterCheckAsbitemId,
|
|
ChargePrice = entity.ChargePrice,
|
|
Amount = entity.Amount,
|
|
IsCharge = 'N',
|
|
|
|
};
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|