fix 汇总消费需要ABS
This commit is contained in:
@@ -26,7 +26,7 @@ public class CostUploadJob : BaseJob
|
|||||||
|
|
||||||
var year = now.Month == 1 ? now.Year - 1 : now.Year;
|
var year = now.Month == 1 ? now.Year - 1 : now.Year;
|
||||||
var month = now.Month == 1 ? 12 : now.Month - 1;
|
var month = now.Month == 1 ? 12 : now.Month - 1;
|
||||||
|
|
||||||
var s = new DateTime(year, month, 1);
|
var s = new DateTime(year, month, 1);
|
||||||
var e = new DateTime(year, month + 1, 1);
|
var e = new DateTime(year, month + 1, 1);
|
||||||
var endDayOfMonth = e.AddDays(-1);
|
var endDayOfMonth = e.AddDays(-1);
|
||||||
@@ -60,7 +60,7 @@ public class CostUploadJob : BaseJob
|
|||||||
{
|
{
|
||||||
WorkCode = userCode,
|
WorkCode = userCode,
|
||||||
BeginDate = endDayOfMonth.ToString("yyyy-MM-dd"),
|
BeginDate = endDayOfMonth.ToString("yyyy-MM-dd"),
|
||||||
Charge = balance,
|
Charge = Math.Abs(balance),
|
||||||
Code= "2086"
|
Code= "2086"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user