Browse Source

m100查询bug

HQ
liuyunfeng 10 months ago
parent
commit
c4679816a9
  1. 4
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgCheck/BillM100s/BillM100AppService.cs
  2. 8
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Services/EdiParseDomainService.cs

4
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgCheck/BillM100s/BillM100AppService.cs

@ -547,12 +547,12 @@ select * from
} }
else else
{ {
where += " and b.BillStatus in (2,3)"; //单据状态是已匹配、已打印 //where += " and b.BillStatus in (2,3)"; //单据状态是已匹配、已打印
} }
if (input.IsNeedReplenishPrint == true) //只显示需要补打的记录 if (input.IsNeedReplenishPrint == true) //只显示需要补打的记录
{ {
where += " and b.NeedReplenishPrint = 1"; //where += " and b.NeedReplenishPrint = 1";
} }
sqlCnt = string.Format(sqlCnt, where); sqlCnt = string.Format(sqlCnt, where);

8
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Services/EdiParseDomainService.cs

@ -288,7 +288,7 @@ namespace WY.NewJit.EdiReceive.Services
var vehicleAssemblyResu = await _assemblyCfgVehicleRepository.InsertAsync(vehicleAssemblyCfgObj, true); var vehicleAssemblyResu = await _assemblyCfgVehicleRepository.InsertAsync(vehicleAssemblyCfgObj, true);
if (vehicleAssemblyResu == null) if (vehicleAssemblyResu == null)
{ {
throw new Exception("插入整车总成返回结果为空InsertAsync!"); throw new Exception($"{_errorMessagePrefix}插入整车总成失败:{m100Obj.HostSN2}");
} }
#endregion #endregion
@ -296,8 +296,12 @@ namespace WY.NewJit.EdiReceive.Services
m100Obj.SetAssemblyID(vehicleAssemblyResu.Id); m100Obj.SetAssemblyID(vehicleAssemblyResu.Id);
m100Obj.SetBillStatus(BillStatusEnum.Match); m100Obj.SetBillStatus(BillStatusEnum.Match);
var m100Ret = await _billM100Repository.UpdateAsync(m100Obj); var m100Ret = await _billM100Repository.UpdateAsync(m100Obj);
if (m100Ret == null)
{
throw new Exception($"{_errorMessagePrefix}更新M100失败:{m100Obj.HostSN2}");
}
//判断未打印表是否有数据,有则更新,没有则插入 //判断未打印表是否有数据,有则更新,没有则插入
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Obj, false, true); ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, true);
if (wpRet.Status == false) if (wpRet.Status == false)
{ {
throw new Exception(wpRet.Message); throw new Exception(wpRet.Message);

Loading…
Cancel
Save