|
@@ -5615,6 +5615,9 @@ Group by PriceType ", dto.diId);
|
|
|
const int payingOfficial = 50;
|
|
|
const int notPayingOfficial = 200;
|
|
|
|
|
|
+ const int payInvitation = 100;
|
|
|
+ const int notpayInvitation = 400;
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -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)
|
|
|
{
|
|
|
- infos.Add($"{item.Client} 为付费公务提成金额为 {payingOfficial}");
|
|
|
- money += payingOfficial;
|
|
|
+ infos.Add($"{item.Client}为调研 / 参观性质点位,提成金额为50");
|
|
|
+ money += 50;
|
|
|
+ continue;
|
|
|
}
|
|
|
- else
|
|
|
+
|
|
|
+
|
|
|
+ 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;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|