mahao 1 year ago
parent
commit
d36fafe83f
  1. 16
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs
  2. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs
  3. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs
  4. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs

16
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/BBAC_SA_SERVICE.cs

@ -149,6 +149,19 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
importBBACSaDetail.BusinessType = importBBACSaDetail.PN.Contains("R0") ? EnumBusinessType.MaiDanJianBBAC : EnumBusinessType.JisBBAC; importBBACSaDetail.BusinessType = importBBACSaDetail.PN.Contains("R0") ? EnumBusinessType.MaiDanJianBBAC : EnumBusinessType.JisBBAC;
}); });
var jisSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.JisBBAC);
var maiDanSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.MaiDanJianBBAC);
/*
* External Call Number/PN2
* External Call Number/PN7
*/
maiDanSaDetails.ForEach(maiDanSaDetail =>
{
maiDanSaDetail.PartCode = maiDanSaDetail.PN[^2..];
maiDanSaDetail.PN = maiDanSaDetail.PN[..7];
});
//数据校验 //数据校验
var checkList = new List<ErrorExportDto>(); var checkList = new List<ErrorExportDto>();
//结算分组号 //结算分组号
@ -166,9 +179,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
if (!checkList.Any()) if (!checkList.Any())
{ {
//验证客户对应厂内零件号是否存在 //验证客户对应厂内零件号是否存在
var jisSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.JisBBAC);
var maiDanSaDetails = importBBACSaDetails.FindAll(t => t.BusinessType == EnumBusinessType.MaiDanJianHBPO);
if (jisSaDetails.Any()) if (jisSaDetails.Any())
{ {
checkList.AddRange(await CheckAsync(jisSaDetails, EnumBusinessType.JisBBAC).ConfigureAwait(false)); checkList.AddRange(await CheckAsync(jisSaDetails, EnumBusinessType.JisBBAC).ConfigureAwait(false));

4
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIS_RECORD.cs

@ -5,7 +5,11 @@ using System.ComponentModel.DataAnnotations.Schema;
namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{ {
#if DEBUG
[Table("TM_BJBMPT_JIS_RECORD")] [Table("TM_BJBMPT_JIS_RECORD")]
#else
[Table("EX_BJBMPT_JIS_RECORD")]
#endif
public class TM_BJBMPT_JIS_RECORD public class TM_BJBMPT_JIS_RECORD
{ {
[Key] [Key]

4
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_JIT_RECORD.cs

@ -8,7 +8,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
/// <summary> /// <summary>
/// Jis小件 /// Jis小件
/// </summary> /// </summary>
#if DEBUG
[Table("TM_BJBMPT_JIT_RECORD")] [Table("TM_BJBMPT_JIT_RECORD")]
#else
[Table("EX_BJBMPT_JIT_RECORD")]
#endif
public class TM_BJBMPT_JIT_RECORD public class TM_BJBMPT_JIT_RECORD
{ {
[Key] [Key]

4
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Syncs/TM_BJBMPT_OTHER_RECORD.cs

@ -8,7 +8,11 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
/// <summary> /// <summary>
/// Jit(非Jis) /// Jit(非Jis)
/// </summary> /// </summary>
#if DEBUG
[Table("TM_BJBMPT_OTHER_RECORD")] [Table("TM_BJBMPT_OTHER_RECORD")]
#else
[Table("EX_BJBMPT_JIS_RECORD")]
#endif
public class TM_BJBMPT_OTHER_RECORD public class TM_BJBMPT_OTHER_RECORD
{ {
[Key] [Key]

Loading…
Cancel
Save