|
@@ -5615,6 +5615,9 @@ Group by PriceType ", dto.diId);
|
|
|
const int payingOfficial = 50; // 付费单公务 50
|
|
|
const int notPayingOfficial = 200; // 不付费单场公务 200
|
|
|
|
|
|
+ const int payInvitation = 100; // 付费单邀请函 100元 / 份 一个国家只发放一份邀请函费用
|
|
|
+ const int notpayInvitation = 400; // 不付费邀请函 400 / 份 一个国家只发放一份邀请函费用,多拿的邀请函不进行叠加
|
|
|
+
|
|
|
//不付费邀请函 400 / 份 一个国家只发放一份邀请函费用,多拿的邀请函不进行叠加
|
|
|
//不付费单场公务 200 / 场 / 团 按照标准公务完成要求,确认实际场数
|
|
|
//付费单邀请函 100元 / 份 一个国家只发放一份邀请函费用
|
|
@@ -5640,6 +5643,7 @@ Group by PriceType ", dto.diId);
|
|
|
a.IsSure,
|
|
|
x.IsPay, // 是否付费
|
|
|
a.VisitPNumber,
|
|
|
+ x.OfficialForm,
|
|
|
})
|
|
|
.ToList();
|
|
|
|
|
@@ -5653,17 +5657,47 @@ Group by PriceType ", dto.diId);
|
|
|
|
|
|
var infos = new List<string>();
|
|
|
|
|
|
+ var existsCountry = new List<string>(); //邀请函国家判断
|
|
|
+
|
|
|
foreach (var item in group)
|
|
|
{
|
|
|
- if (item.IsPay == 1) //付费公务
|
|
|
+ if (item.OfficialForm == 1338 || item.OfficialForm == 384) // 调研 / 参观性质点位 50 / 场 / 团
|
|
|
{
|
|
|
- infos.Add($"{item.Client} 为付费公务提成金额为 {payingOfficial}");
|
|
|
- money += payingOfficial;
|
|
|
+ infos.Add($"{item.Client}为调研 / 参观性质点位,提成金额为50");
|
|
|
+ money += 50;
|
|
|
+ continue;
|
|
|
}
|
|
|
- else
|
|
|
+
|
|
|
+ //0带公务 1不带公务 2纯公务
|
|
|
+ if (item.Type == 0)
|
|
|
+ {
|
|
|
+ if (!existsCountry.Contains(item.Country))
|
|
|
+ {
|
|
|
+ if (item.IsPay == 1) //付费邀请函
|
|
|
+ {
|
|
|
+ infos.Add($"{item.Client} 为付费邀请函,提成金额为 {payInvitation}");
|
|
|
+ money += payingOfficial;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ infos.Add($"{item.Client} 为非付费邀请函,提成金额为 {notpayInvitation}");
|
|
|
+ money += notPayingOfficial;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ else if(item.Type == 2)
|
|
|
{
|
|
|
- infos.Add($"{item.Client} 为非付费公务提成金额为 {notPayingOfficial}");
|
|
|
- money += notPayingOfficial;
|
|
|
+ if (item.IsPay == 1) //付费公务
|
|
|
+ {
|
|
|
+ infos.Add($"{item.Client} 为付费公务,提成金额为 {payingOfficial}");
|
|
|
+ money += payingOfficial;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ infos.Add($"{item.Client} 为非付费公务,提成金额为 {notPayingOfficial}");
|
|
|
+ money += notPayingOfficial;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|