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

53 lines
1.4 KiB
C#

using DS.Module.Core;
using DS.WMS.Core.Fee.Dtos;
using DS.WMS.Core.Fee.Entity;
namespace DS.WMS.Core.Fee.Interface;
public interface IFeeRecordService
{
/// <summary>
/// 列表
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
DataResult<List<FeeRecordRes>> GetListByPage(PageRequest request);
/// <summary>
/// 列表
/// </summary>
/// <param name="query">查询条件</param>
/// <returns></returns>
DataResult<List<FeeRecord>> GetList(string query);
/// <summary>
/// 提交
/// </summary>
/// <param name="bid">业务ID</param>
/// <param name="items">要提交的费用记录</param>
/// <returns></returns>
DataResult InsertOrUpdate(long bid, IEnumerable<FeeRecord> items);
/// <summary>
/// 根据费用模板引入
/// </summary>
/// <param name="bid"></param>
/// <param name="tidArray"></param>
/// <returns></returns>
DataResult CreateByTemplate(long bid, params long[] tidArray);
/// <summary>
/// 根据费用明细转换为模板明细
/// </summary>
/// <param name="idArray">费用明细ID</param>
/// <returns></returns>
DataResult<List<FeeTemplateDetailRes>> ReadAsTemplate(params long[] idArray);
/// <summary>
/// 删除
/// </summary>
/// <param name="ids"></param>
/// <returns></returns>
DataResult Delete(params long[] ids);
}