|
|
|
@ -11,6 +11,7 @@ using DS.Module.SqlSugar;
|
|
|
|
|
using DS.Module.UserModule;
|
|
|
|
|
using DS.WMS.Core.Code.Dtos;
|
|
|
|
|
using DS.WMS.Core.Code.Entity;
|
|
|
|
|
using DS.WMS.Core.Fee.Dtos;
|
|
|
|
|
using DS.WMS.Core.Fee.Entity;
|
|
|
|
|
using DS.WMS.Core.HangfireJob.Interface;
|
|
|
|
|
using DS.WMS.Core.Info.Entity;
|
|
|
|
@ -1052,10 +1053,23 @@ public partial class SeaExportService : ISeaExportService
|
|
|
|
|
item.BusinessId = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (template.IsNotNull())
|
|
|
|
|
if (req.IsCopyFee)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
var fees = await tenantDb.Queryable<FeeRecord>().Where(x => x.BusinessId == id).ToListAsync();
|
|
|
|
|
if (fees.IsNotNull() && fees.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in fees)
|
|
|
|
|
{
|
|
|
|
|
item.Id = 0;
|
|
|
|
|
item.BusinessId = 0;
|
|
|
|
|
}
|
|
|
|
|
data.FeeList = fees.Adapt<List<FeeRecordRes>>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//if (template.IsNotNull())
|
|
|
|
|
//{
|
|
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
return await Task.FromResult(DataResult<SeaExportCopyRes>.Success("复制成功!", data, MultiLanguageConst.DataCopySuccess));
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|