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" + " TM_PG_TIME_STOCK_DETAIL \n" +
" A LEFT JOIN ( \n" + " A LEFT JOIN ( \n" +
" SELECT DISTINCT \n" + " SELECT DISTINCT \n" +
" [PartCode], \n" + " PartCode, \n" +
" ( ISNULL ( [PartDesc1], '' ) + ISNULL ( [PartDesc2], '' ) ) PartDesc, \n" + " ( ISNULL ( [PartDesc1], '' ) + ISNULL ( [PartDesc2], '' ) ) PartDesc, \n" +
" PartGroup \n" + " PartGroup \n" +
" FROM \n" + " FROM \n" +
" [VIEW_PG_SIMPLE_PART] \n" + " VIEW_PG_SIMPLE_PART \n" +
" ) B ON A.PartCode = B.PartCode where a.version='{0}'"; " ) B ON A.PartCode = B.PartCode where a.version='{0}'";
str = string.Format(str, version); str = string.Format(str, version);
var _list = DbConnection.Query<SalesStockSum>(str); 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 }) var _fislist = _lst.GroupBy(p => new { p.SapMaterialCode, p.MaterialDesc, p.MaterialGroup, p.MaterialCode })
.Select(p => new UnSettledSum .Select(p => new UnSettledSum
{ {
= "PLJS",
= version, = version,
= p.Key.SapMaterialCode, = p.Key.SapMaterialCode,
= p.Key.MaterialCode, = 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 }) var kanbanList = _ls.GroupBy(p => new { p.SapCode, p.MaterialDesc, p.MaterialGroup, p.CustomerPartCode })
.Select(p => new UnSettledSum .Select(p => new UnSettledSum
{ {
= "PLJS",
= version, = version,
= p.Key.SapCode, = p.Key.SapCode,
= p.Key.CustomerPartCode, = p.Key.CustomerPartCode,
@ -287,6 +289,7 @@ namespace SettleAccount.Job.Services.Report
var kanbanList = _ls.GroupBy(p => new { p.Sap编码, p., p., p. }) var kanbanList = _ls.GroupBy(p => new { p.Sap编码, p., p., p. })
.Select(p => new UnSettledSum .Select(p => new UnSettledSum
{ {
="PLJS",
=version, =version,
= p.Key.Sap编码, = p.Key.Sap编码,
= p.Key., = p.Key.,
@ -325,6 +328,7 @@ namespace SettleAccount.Job.Services.Report
var kanbanList = _ls.GroupBy(p => new { p.SAP编码, p., p. }) var kanbanList = _ls.GroupBy(p => new { p.SAP编码, p., p. })
.Select(p => new UnSettledSum .Select(p => new UnSettledSum
{ {
= "BJJS",
= version, = version,
= p.Key.SAP编码, = p.Key.SAP编码,
= p.Key., = p.Key.,
@ -355,7 +359,7 @@ namespace SettleAccount.Job.Services.Report
var _lst = _wmsDapper.GetSalesStockSum(version); var _lst = _wmsDapper.GetSalesStockSum(version);
var query = from itm in _lst var query = from itm in _lst
join itm1 in _ls 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 into temp
from tm in temp.DefaultIfEmpty() from tm in temp.DefaultIfEmpty()
select new UnSettledSum select new UnSettledSum

Loading…
Cancel
Save