Browse Source

二轮测试修改bug完成

HQ
liuyunfeng 7 months ago
parent
commit
5d3b517c43
  1. 2
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgCheck/BillM100s/MenBanPackingRecService.cs
  2. 2
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgCheck/BillM100s/ZhuHuBanPackingRecService.cs
  3. 5
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Services/EdiParseDomainService.cs
  4. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Services/HQ_M100DomainService.cs

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

@ -360,7 +360,7 @@ namespace Win.Sfs.SettleAccount.FISes
{ {
if (alreadyPrintItem.BillStatus == BillStatusEnum.BreakNum && waitPrintLst[0].BillStatus == BillStatusEnum.BreakNum) if (alreadyPrintItem.BillStatus == BillStatusEnum.BreakNum && waitPrintLst[0].BillStatus == BillStatusEnum.BreakNum)
{ {
throw new BusinessException("1001", "未打印列表和已打印列表出现都是断号的情况号码未【" + alreadyPrintItem.HostSN2 + "】,不能报废!"); throw new BusinessException("1001", "未打印列表和已打印列表出现都是断号状态【" + alreadyPrintItem.HostSN2 + "】,不能报废!");
} }
//未打印有一条补打的记录,忽略已打印的对应记录,将未打印记录的补打状态改成顺序打印状态 //未打印有一条补打的记录,忽略已打印的对应记录,将未打印记录的补打状态改成顺序打印状态
if (waitPrintLst[0].PrintType == WY.NewJit.PrintTable.PrintTypeEnum.ReplenishPrint) if (waitPrintLst[0].PrintType == WY.NewJit.PrintTable.PrintTypeEnum.ReplenishPrint)

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

@ -396,7 +396,7 @@ namespace Win.Sfs.SettleAccount.FISes
{ {
if (alreadyPrintItem.BillStatus == BillStatusEnum.BreakNum && waitPrintLst[0].BillStatus == BillStatusEnum.BreakNum) if (alreadyPrintItem.BillStatus == BillStatusEnum.BreakNum && waitPrintLst[0].BillStatus == BillStatusEnum.BreakNum)
{ {
throw new BusinessException("1001", "未打印列表和已打印列表出现都是断号的情况号码未【" + alreadyPrintItem.HostSN2 + "】,不能报废!"); throw new BusinessException("1001", "未打印列表和已打印列表出现都是柱护板断号状态【" + alreadyPrintItem.HostSN2 + "】,不能报废!");
} }
//未打印有一条补打的记录,忽略已打印的对应记录,将未打印记录的补打状态改成顺序打印状态 //未打印有一条补打的记录,忽略已打印的对应记录,将未打印记录的补打状态改成顺序打印状态
if (waitPrintLst[0].PrintType == WY.NewJit.PrintTable.PrintTypeEnum.ReplenishPrint) if (waitPrintLst[0].PrintType == WY.NewJit.PrintTable.PrintTypeEnum.ReplenishPrint)

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

@ -311,8 +311,11 @@ namespace WY.NewJit.EdiReceive.Services
{ {
throw new Exception($"{_errorMessagePrefix}更新M100失败:{m100Obj.HostSN2}"); throw new Exception($"{_errorMessagePrefix}更新M100失败:{m100Obj.HostSN2}");
} }
bool hasBeforeNotPrint = await _hqM100DomainServie.BeforeNotPrint((int)(m100Obj.HostSN2));
bool isReplenishPrint = hasBeforeNotPrint ? false : true; //未打印表包含重新解析之前的记录,设置成正常打印,否则设置成补打
//判断未打印表是否有数据,有则更新,没有则插入 //判断未打印表是否有数据,有则更新,没有则插入
ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, true); ObjectResultDto wpRet = await _hqM100DomainServie.InsertOrUpdateWaitPrintByM100(m100Ret, false, isReplenishPrint);
if (wpRet.Status == false) if (wpRet.Status == false)
{ {
throw new Exception(wpRet.Message); throw new Exception(wpRet.Message);

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

@ -195,5 +195,17 @@ namespace WY.NewJit.MsgCheck
} }
return ret; return ret;
} }
/// <summary>
/// 根据传入参数hostSN2,判断存在小于hostSN2的未打印记录
/// </summary>
/// <param name="hostSN2"></param>
/// <returns></returns>
public async Task<bool> BeforeNotPrint(int hostSN2)
{
var qry = await _waitPrintRepository.GetQueryableAsync();
bool hasBeforeNotPrint = qry.Any(itm => itm.HostSN2 < hostSN2 && itm.PrintType == PrintTypeEnum.OrderPrint && itm.BillStatus == BillStatusEnum.Match);
return hasBeforeNotPrint;
}
} }
} }

Loading…
Cancel
Save