Browse Source

Json记录到Log中

master
mahao 2 years ago
parent
commit
1fdd45512b
  1. 2
      src/WmsWebApi.Application/Boms/BomService.cs
  2. 1
      src/WmsWebApi.Application/OtherZll/OtherZllService.cs
  3. 2
      src/WmsWebApi.Application/PPlan/PPlanService.cs
  4. 2
      src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs
  5. 2
      src/WmsWebApi.Application/Purchase/PurchaseService.cs
  6. 2
      src/WmsWebApi.Application/StockMove/StockMoveService.cs
  7. 2
      src/WmsWebApi.Application/TbParts/PartService.cs
  8. 2
      src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs

2
src/WmsWebApi.Application/Boms/BomService.cs

@ -238,6 +238,8 @@ public class BomService : ApplicationService, IBomService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(bomdto.JSON);
if (bNotFind) if (bNotFind)
{ {
bomdto.ITYPE = result.MESSAGE; bomdto.ITYPE = result.MESSAGE;

1
src/WmsWebApi.Application/OtherZll/OtherZllService.cs

@ -374,6 +374,7 @@ public class OtherZllService : ApplicationService, IOtherZllService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(dto.JSON);
try try
{ {
await AddOtherZLLDtoNowUnitOfWorkAsync(dto); await AddOtherZLLDtoNowUnitOfWorkAsync(dto);

2
src/WmsWebApi.Application/PPlan/PPlanService.cs

@ -204,6 +204,8 @@ public class PPlanService : ApplicationService, IPPlanService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(dto.JSON);
if (bUpdate) if (bUpdate)
{ {
dto.ITYPE = "更新!"; dto.ITYPE = "更新!";

2
src/WmsWebApi.Application/ProductRecieve/ProductRecieveService.cs

@ -288,6 +288,8 @@ public class ProductRecieveService : ApplicationService, IProductRecieveService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(apiPRdto.JSON);
if (bErr) if (bErr)
{ {
result.TYPE = 'E'; result.TYPE = 'E';

2
src/WmsWebApi.Application/Purchase/PurchaseService.cs

@ -391,6 +391,8 @@ public class PurchaseService : ApplicationService, IPurchaseService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(dto.JSON);
if (bUpdate) if (bUpdate)
{ {
dto.ITYPE = $"err:单据 {_purchaseDto.MBLNR} 已存在!"; dto.ITYPE = $"err:单据 {_purchaseDto.MBLNR} 已存在!";

2
src/WmsWebApi.Application/StockMove/StockMoveService.cs

@ -429,6 +429,8 @@ public class StockMoveService : ApplicationService, IStockMoveService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(apiSSdto.JSON);
if (bErr) if (bErr)
{ {
result.TYPE = 'E'; result.TYPE = 'E';

2
src/WmsWebApi.Application/TbParts/PartService.cs

@ -306,6 +306,8 @@ public class PartService : ApplicationService, IPartService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(partdto.JSON);
if (bUpdate) if (bUpdate)
{ {
partdto.ITYPE = "更新"; partdto.ITYPE = "更新";

2
src/WmsWebApi.Application/ZlldcjLogs/ZlldcjLogAppService.cs

@ -278,6 +278,8 @@ public class ZlldcjLogAppService : ApplicationService, IZlldcjLogAppService
{ {
if (IsRequestRetry == false) if (IsRequestRetry == false)
{ {
Logger.LogInformation(zlldcjdto.JSON);
if (bErr) if (bErr)
{ {
zlldcjdto.ITYPE = result.MESSAGE; zlldcjdto.ITYPE = result.MESSAGE;

Loading…
Cancel
Save