diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs new file mode 100644 index 00000000..1a7bc8b5 --- /dev/null +++ b/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/Wms/WmsDetailReportDto.cs @@ -0,0 +1,115 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Win.Sfs.Shared.DtoBase; + +namespace Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput +{ + public class WmsRequestDetailReportDto: RequestDtoBase + { + [Display(Name = "行号")] + public int LineNumber { set; get; } + [Display(Name = "客户")] + public string Client { set; get; } + [Display(Name = "出库类型")] + public string Type { set; get; } + [Display(Name = "结算编码")] + public string SettleCode { set; get; } + [Display(Name = "销售渠道")] + public string SaleCode { set; get; } + [Display(Name = "客户代码")] + public string ClientCode { set; get; } + [Display(Name = "结算单")] + public string BillNum { set; get; } + [Display(Name = "结算单")] + public string MaterialCode { set; get; } + [Display(Name = "寄售类别")] + public string SaleType { set; get; } + [Display(Name = "结算数量")] + public decimal Qty { set; get; } + [Display(Name = "实际出库数量")] + public decimal OutputQty { set; get; } + [Display(Name = "差异数量")] + public decimal DiffQty { set; get; } + [Display(Name = "开票单价")] + public decimal Price { set; get; } + [Display(Name = "结算金额")] + public decimal Amt { set; get; } + [Display(Name = "已出库金额")] + public decimal OutPutAmt { set; get; } + [Display(Name = "WMS待出库金额")] + public decimal DiffAmt { set; get; } + [Display(Name = "物料组编码")] + public string MaterialGroupCode { set; get; } + [Display(Name = "物料组(车型)")] + public string MaterialGroup { set; get; } + [Display(Name = "物料组描述")] + public string MaterialDesc { set; get; } + [Display(Name = "备注")] + public string Remark1 { set; get; } + + [Display(Name = "状态")] + public int State { set; get; } + } + + + + public class WmsDetailReportDto + { + public WmsDetailReportDto() + { + + + + } + + + [Display(Name = "行号")] + public int LineNumber { set; get; } + [Display(Name = "客户")] + public string Client { set; get; } + [Display(Name = "出库类型")] + public string Type { set; get; } + [Display(Name = "结算编码")] + public string SettleCode { set; get; } + [Display(Name = "销售渠道")] + public string SaleCode { set; get; } + [Display(Name = "客户代码")] + public string ClientCode { set; get; } + [Display(Name = "结算单")] + public string BillNum { set; get; } + [Display(Name = "结算单")] + public string MaterialCode { set; get; } + [Display(Name = "寄售类别")] + public string SaleType { set; get; } + [Display(Name = "结算数量")] + public decimal Qty { set; get; } + [Display(Name = "实际出库数量")] + public decimal OutputQty { set; get; } + [Display(Name = "差异数量")] + public decimal DiffQty { set; get; } + [Display(Name = "开票单价")] + public decimal Price { set; get; } + [Display(Name = "结算金额")] + public decimal Amt { set; get; } + [Display(Name = "已出库金额")] + public decimal OutPutAmt { set; get; } + [Display(Name = "WMS待出库金额")] + public decimal DiffAmt { set; get; } + [Display(Name = "物料组编码")] + public string MaterialGroupCode { set; get; } + [Display(Name = "物料组(车型)")] + public string MaterialGroup { set; get; } + [Display(Name = "物料组描述")] + public string MaterialDesc { set; get; } + [Display(Name = "备注")] + public string Remark1 { set; get; } + + [Display(Name = "状态")] + public int State { set; get; } + } + +} diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs index 7ed42a09..353f62c5 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSJitAppService.cs @@ -54,9 +54,9 @@ namespace Win.Sfs.SettleAccount.Entities.SettleAccounts /// wms出库 /// - //[AllowAnonymous] + [Route("api/settleaccount/wmsjitoutput")] - //[Authorize(SettleAccountPermissions.WMSJIT.Default)] + public class WMSJitAppService : SettleAccountApplicationBase { diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs index 48772476..52d187db 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumAppService.cs @@ -97,6 +97,9 @@ namespace Win.Sfs.SettleAccount.Entities.WMS + + + //public async Task GetWmsSum(WmsJitOutPutDetial input) //{ diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs index 460948e3..5875aecb 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs @@ -1,17 +1,192 @@ -using System; + +using EFCore.BulkExtensions; +using Magicodes.ExporterAndImporter.Core; +using Magicodes.ExporterAndImporter.Excel; +using Microsoft.AspNetCore.Mvc; +using Shouldly; +using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Caching; +using Volo.Abp.Domain.Repositories; +using Win.Abp.Snowflakes; +using Win.Sfs.BaseData.ImportExcelCommon; +using Win.Sfs.SettleAccount.CommonManagers; +using Win.Sfs.SettleAccount.Constant; +using Win.Sfs.SettleAccount.Entities.Wms; +using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput; +using Win.Sfs.SettleAccount.Reports; +using Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report; +using Win.Sfs.Shared.DomainBase; +using Win.Sfs.Shared.Filter; namespace Win.Sfs.SettleAccount.Entities.WMS { - public class WmsUnInterface + [Route("api/settleaccount/WMSOutputSumReport")] + public class WMSOutputSumReportAppService : + SettleAccountApplicationBase { + private readonly ISettleAccountBranchEfCoreRepository _wmsRepository; + private readonly WmsOutputSumDapperRepository _dapper; + private readonly IExcelImportAppService _excelImportService; + /// + /// + /// + /// + /// + + public WMSOutputSumReportAppService( + WmsOutputSumDapperRepository dapper, + ISettleAccountBranchEfCoreRepository wmsRepository, + ISettleAccountBranchEfCoreRepository job, + IExcelImportAppService excelImportService, + IDistributedCache cache, + ISnowflakeIdGenerator snowflakeIdGenerator, + ICommonManager commonManager + ) : base(cache, excelImportService, snowflakeIdGenerator, commonManager) + { + _wmsRepository = wmsRepository; + _dapper = dapper; + } + [HttpPost] + [Route("Make")] + public async Task ReportMake(string version) + { + var _ls= _dapper.GetWmsSumExtendList(version);//报表 + var _count= _wmsRepository.Count(p => p.Version == version && p.State>0); + if (_count > 0) + { + throw new BusinessException("8899", "不能重新生成此版本!"); + } + else + { + var query = _wmsRepository.Where(p => p.Version == version); + await query.BatchDeleteAsync(); + } + List _lst = new List(); + if (_ls != null && _ls.Count() > 0) + { + foreach (var itm in _ls) + { + _lst.Add(new WmsDetailReport(Guid.NewGuid(), + int.Parse(itm.行号), + itm.客户, + itm.出库类型, + itm.结算编码, + itm.销售渠道, + itm.客户代码, + itm.结算单, + itm.物料号, + String.Empty, + itm.结算数量, + itm.实际出库数量, + itm.差异数量, + itm.开票单价, + itm.结算金额, + itm.已出库金额, + itm.WMS待出库金额, + itm.物料组编码, + itm.物料组车型, + itm.物料描述, + String.Empty, + 0, + version + + )); + } + } + await _wmsRepository.GetDbContext().BulkInsertAsync(_lst); + + return ApplicationConsts.SuccessStr; + + + } + + + + + private async Task GetCountAsync(WmsRequestDetailReportDto input) + { + // input.Filters.Add(new FilterCondition() { Action = EnumFilterAction.Equal, Column = "BillNum", Logic = EnumFilterLogic.And, Value = input.BillNum }); + return await _wmsRepository.GetCountByFilterAsync(GuidGenerator.Create(), input.Filters); + } + + + + /// + /// Wms汇总合计明细 + /// + /// + /// + [HttpPost] + [Route("WmsDetailReport")] + + virtual public async Task> GetListAsync(WmsRequestDetailReportDto input) + { + var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, input.MaxResultCount, + input.SkipCount, true); + var totalCount = await GetCountAsync(input); + return new PagedResultDto(totalCount, entities); + } + + /// + /// 导出 + /// + /// + /// + [HttpPost] + [Route("Export")] + + virtual public async Task ExportAsync(WmsRequestDetailReportDto input) + { + + var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, + 0, true); + IExporter _excel = new ExcelExporter(); + byte[] result = null; + + var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString()); + result = await _excel.ExportAsByteArray(entities); + + + result.ShouldNotBeNull(); + + //保存导出文件到服务器存成二进制 + await _excelImportService.SaveBlobAsync( + new SaveExcelImportInputDto + { + Name = _fileName, + Content = result + } + ); + return _fileName; + + + + } } + + + + + + + + + + + + + + } diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml b/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml index d8e8e4dc..295199a7 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml @@ -3617,6 +3617,27 @@ + + + + + + + + + + Wms汇总合计明细 + + + + + + + 导出 + + + + 区域相关应用服务 diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs index 00983409..8089fec4 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs @@ -90,6 +90,7 @@ using Win.Sfs.SettleAccount.Entities.BT_Car; using Win.Sfs.SettleAccount.Entities.WMS; using Win.Sfs.SettleAccount.Entities; using Win.Sfs.SettleAccount.Entities.UnHQSettleAccounts; +using Win.Sfs.SettleAccount.Entities.Wms.WmsSumOutput; namespace Win.Sfs.SettleAccount { @@ -263,13 +264,20 @@ namespace Win.Sfs.SettleAccount CreateMapWmsHQWithOutKanban(); CreateMapWmsHQCar(); CreateMapWmsOneTimeSale(); - + CreateMapWMSOutputSum(); #endregion } #region 派格出库单 + + private void CreateMapWMSOutputSum() + { + CreateMap().ReverseMap(); + CreateMap().ReverseMap(); + } + private void CreateMapWMSJit() { CreateMap().ReverseMap(); diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WmsDetailReport.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WmsDetailReport.cs new file mode 100644 index 00000000..93f43b98 --- /dev/null +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WmsDetailReport.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Win.Sfs.Shared.DomainBase; + +namespace Win.Sfs.SettleAccount.Entities +{ + public class WmsDetailReport : FullAuditedAggregateRootBase + { + public WmsDetailReport() + { + } + + public WmsDetailReport(Guid id, int lineNumber, string client, string type, string settleCode, string saleCode, string clientCode, string billNum, string materialCode, string saleType, decimal qty, decimal outputQty, decimal diffQty, decimal price, decimal amt, decimal outPutAmt, decimal diffAmt, string materialGroupCode, string materialGroup, string materialDesc, string remark1, int state, string version) : base(id) + { + LineNumber = lineNumber; + Client = client; + Type = type; + SettleCode = settleCode; + SaleCode = saleCode; + ClientCode = clientCode; + BillNum = billNum; + MaterialCode = materialCode; + //SaleType = saleType; + Qty = qty; + OutputQty = outputQty; + DiffQty = diffQty; + Price = price; + Amt = amt; + OutPutAmt = outPutAmt; + DiffAmt = diffAmt; + MaterialGroupCode = materialGroupCode; + MaterialGroup = materialGroup; + MaterialDesc = materialDesc; + Remark1 = remark1; + State = state; + Version = version; + } + + [Display(Name = "行号")] + public int LineNumber { set; get; } + + [Display(Name = "版本号")] + public string Version { set; get; } + + + [Display(Name = "客户")] + public string Client { set; get; } + [Display(Name = "出库类型")] + public string Type { set; get; } + [Display(Name = "结算编码")] + public string SettleCode { set; get; } + [Display(Name = "销售渠道")] + public string SaleCode { set; get; } + [Display(Name = "客户代码")] + public string ClientCode { set; get; } + [Display(Name = "结算单")] + public string BillNum { set; get; } + [Display(Name = "物料号")] + public string MaterialCode { set; get; } + //[Display(Name = "寄售类别")] + //public string SaleType { set; get; } + [Display(Name = "结算数量")] + public decimal Qty { set; get; } + [Display(Name = "实际出库数量")] + public decimal OutputQty { set; get; } + [Display(Name = "差异数量")] + public decimal DiffQty { set; get; } + [Display(Name = "开票单价")] + public decimal Price { set; get; } + [Display(Name = "结算金额")] + public decimal Amt { set; get; } + [Display(Name = "已出库金额")] + public decimal OutPutAmt { set; get; } + [Display(Name = "WMS待出库金额")] + public decimal DiffAmt { set; get; } + [Display(Name = "物料组编码")] + public string MaterialGroupCode { set; get; } + [Display(Name = "物料组(车型)")] + public string MaterialGroup { set; get; } + [Display(Name = "物料组描述")] + public string MaterialDesc { set; get; } + [Display(Name = "备注")] + public string Remark1 { set; get; } + + public int State { set; get; } + } +} diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs index f80957f4..a28bcd22 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Reports/ReportDetailBase.cs @@ -1,13 +1,20 @@ using Magicodes.ExporterAndImporter.Core; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; +using Win.Sfs.Shared.DomainBase; namespace Win.Sfs.SettleAccount.Reports { + + + + + public class ReportDetailBase { @@ -37,47 +44,10 @@ namespace Win.Sfs.SettleAccount.Reports public virtual decimal Price { set; get; } [ExporterHeader(DisplayName = "金额 ")] public virtual decimal Amt { set; get; } - - [ExporterHeader(DisplayName = "结算日期")] public virtual DateTime CP7Time { set; get; } [ExporterHeader(DisplayName = "开票单价")] public virtual decimal InvoicePrice { set; get; } - - - //public virtual string WmsBillNum { set; get; } - - //public virtual DateTime CP5Time { set; get; } - - //public virtual string KENNCode { set; get; } - - //public virtual string ChassisNumber { set; get; } - - //public virtual string WmsState { set; get; } - - //public virtual string SapMaterialCode { set; get; } - - //public virtual string MaterialDesc { set; get; } - - //public virtual string MaterialCode { set; get; } - - //public virtual string ParentSapMaterialCode { set; get; } - - //public virtual string ParentMaterialDesc { set; get; } - - //public virtual string MaterialGroup { set; get; } - - //public virtual decimal Price { set; get; } - - //public virtual decimal Amt { set; get; } - - - - - - - - } } diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs index bf36fd3d..bf9f99b9 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs @@ -376,8 +376,8 @@ namespace Win.Sfs.SettleAccount //一次性寄售销售库 builder.ConfigureWmsOneTimeSaleOutPutVersion(options); builder.ConfigureWmsOneTimeSaleOutPutDetial(options); - + #endregion @@ -526,6 +526,9 @@ namespace Win.Sfs.SettleAccount #region PG-派格 + + + private static void ConfigureHQFKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) { @@ -549,6 +552,36 @@ namespace Win.Sfs.SettleAccount }); } + + + private static void ConfigureWmsDetailReport(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) + { + + builder.Entity(b => + { + + b.ToTable($"{options.TablePrefix}_WmsDetailReport", options.Schema); + + b.ConfigureByConvention(); + b.Property(x => x.BillNum).IsRequired().HasMaxLength(50);//必填项 + b.Property(x => x.MaterialCode).HasMaxLength(50); + b.Property(x => x.MaterialDesc).HasMaxLength(100); + b.Property(x => x.Client).IsRequired().HasMaxLength(50); + b.Property(x => x.ClientCode).HasMaxLength(50); + b.Property(x => x.MaterialCode).HasMaxLength(50); + b.Property(x => x.MaterialDesc).HasMaxLength(150); + + b.Property(x => x.MaterialGroup).HasMaxLength(50); + b.Property(x => x.MaterialGroupCode).HasMaxLength(50); + b.Property(x=>x.SaleCode).HasMaxLength(50); + b.Property(x => x.SettleCode).HasMaxLength(50); + //创建组合索引 + + + }); + } + + private static void ConfigureHQMKanban(this ModelBuilder builder, SettleAccountModelBuilderConfigurationOptions options) { diff --git a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs index 7ee7c66c..2c8a5c01 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsOutputSumDapperRepository.cs @@ -237,7 +237,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z11' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -257,7 +257,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z12' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -277,7 +277,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z12' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " SapMaterialCode MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -297,7 +297,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z13' CODE,\n" + " '20' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -317,7 +317,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z13' CODE,\n" + " '20' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -474,7 +474,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z11' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -495,7 +495,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z12' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" + @@ -516,7 +516,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z12' CODE,\n" + " '10' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " SapMaterialCode MaterialCode,\n" + " SUM( RealityNumber ) Qty,\n" + @@ -537,7 +537,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z13' CODE,\n" + " '20' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( RealityNumber ) Qty,\n" + @@ -558,7 +558,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report " '大众' Client,\n" + " 'Z13' CODE,\n" + " '20' SaleCode,\n" + -" '10001' ClientCode,\n" + +" '100001' ClientCode,\n" + " BillNum,\n" + " MaterialCode,\n" + " SUM( Qty ) Qty,\n" +