Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
97b7035b2a
  1. 4
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsDapperRepository.cs
  2. 6
      src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

4
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/WmsDapperRepository.cs

@ -99,11 +99,11 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
" TM_PG_TIME_STOCK_DETAIL \n" +
" A LEFT JOIN ( \n" +
" SELECT DISTINCT \n" +
" [PartCode], \n" +
" PartCode, \n" +
" ( ISNULL ( [PartDesc1], '' ) + ISNULL ( [PartDesc2], '' ) ) PartDesc, \n" +
" PartGroup \n" +
" FROM \n" +
" [VIEW_PG_SIMPLE_PART] \n" +
" VIEW_PG_SIMPLE_PART \n" +
" ) B ON A.PartCode = B.PartCode where a.version='{0}'";
str = string.Format(str, version);
var _list = DbConnection.Query<SalesStockSum>(str);

6
src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

@ -160,6 +160,7 @@ namespace SettleAccount.Job.Services.Report
var _fislist = _lst.GroupBy(p => new { p.SapMaterialCode, p.MaterialDesc, p.MaterialGroup, p.MaterialCode })
.Select(p => new UnSettledSum
{
= "PLJS",
= version,
= p.Key.SapMaterialCode,
= p.Key.MaterialCode,
@ -237,6 +238,7 @@ namespace SettleAccount.Job.Services.Report
var kanbanList = _ls.GroupBy(p => new { p.SapCode, p.MaterialDesc, p.MaterialGroup, p.CustomerPartCode })
.Select(p => new UnSettledSum
{
= "PLJS",
= version,
= p.Key.SapCode,
= p.Key.CustomerPartCode,
@ -287,6 +289,7 @@ namespace SettleAccount.Job.Services.Report
var kanbanList = _ls.GroupBy(p => new { p.Sap编码, p., p., p. })
.Select(p => new UnSettledSum
{
="PLJS",
=version,
= p.Key.Sap编码,
= p.Key.,
@ -325,6 +328,7 @@ namespace SettleAccount.Job.Services.Report
var kanbanList = _ls.GroupBy(p => new { p.SAP编码, p., p. })
.Select(p => new UnSettledSum
{
= "BJJS",
= version,
= p.Key.SAP编码,
= p.Key.,
@ -355,7 +359,7 @@ namespace SettleAccount.Job.Services.Report
var _lst = _wmsDapper.GetSalesStockSum(version);
var query = from itm in _lst
join itm1 in _ls
on new { Version = itm.Version, PartCode = itm.PartCode } equals new { Version = itm1., PartCode = itm1. }
on new { Version = itm.Version, PartCode = itm.PartCode, LocCode= itm.LocCode.ToUpper()} equals new { Version = itm1., PartCode = itm1., LocCode = itm1.}
into temp
from tm in temp.DefaultIfEmpty()
select new UnSettledSum

Loading…
Cancel
Save