Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Education
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄奎
Education
Commits
ba73be59
Commit
ba73be59
authored
Mar 15, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报价单 收支明细
parent
6f42368a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
0 deletions
+63
-0
RB_Finance.cs
Edu.Model/Entity/Finance/RB_Finance.cs
+4
-0
RB_FinanceRepository.cs
Edu.Repository/Finance/RB_FinanceRepository.cs
+8
-0
FinanceController.cs
Edu.WebApi/Controllers/Finance/FinanceController.cs
+51
-0
No files found.
Edu.Model/Entity/Finance/RB_Finance.cs
View file @
ba73be59
...
...
@@ -292,6 +292,10 @@ namespace Edu.Model.Entity.Finance
/// 23 电商erp已发货退货退款 2020-09-15 ld
/// 24 电商erp未发货退款(制单就原路退款) 2020-09-15 ld
/// 25 和平甲鹤 已复制单据
/// 26 教育教师奖金单据
/// 27 教育教师绩效单据 2020-12-18 ld
/// 28 教育退课单据 2020-12-23 ld
/// 29 教育报价单-订单 2021-03-15 ld
/// </summary>
public
int
?
OtherType
{
get
=>
otherType
;
set
=>
otherType
=
value
;
}
...
...
Edu.Repository/Finance/RB_FinanceRepository.cs
View file @
ba73be59
...
...
@@ -91,6 +91,14 @@ namespace Edu.Repository.Finance
{
where
+=
string
.
Format
(
" AND A."
+
nameof
(
RB_Finance
.
FinanceType
)
+
" ={0}"
,
model
.
FinanceType
);
}
if
(
model
.
OtherType
>
0
)
{
where
+=
string
.
Format
(
" AND A."
+
nameof
(
RB_Finance
.
OtherType
)
+
" ={0}"
,
model
.
OtherType
);
}
if
(
model
.
ReFinanceId
>
0
)
{
where
+=
string
.
Format
(
" AND A."
+
nameof
(
RB_Finance
.
ReFinanceId
)
+
" ={0}"
,
model
.
ReFinanceId
);
}
if
(
model
.
Status
>
0
)
{
where
+=
string
.
Format
(
" AND A."
+
nameof
(
RB_Finance
.
Status
)
+
" ={0}"
,
(
int
)
model
.
Status
);
...
...
Edu.WebApi/Controllers/Finance/FinanceController.cs
View file @
ba73be59
...
...
@@ -574,5 +574,56 @@ namespace Edu.WebApi.Controllers.Finance
return
""
;
}
}
#
region
获取报价单单据列表
/// <summary>
/// 获取报价单收支明细
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
public
ApiResult
GetOfferOrderBalanceSheet
()
{
int
OfferId
=
base
.
ParmJObj
.
GetInt
(
"OfferId"
,
0
);
if
(
OfferId
<=
0
)
{
return
ApiResult
.
Failed
(
"班级Id不存在"
);
}
RB_Finance_Extend
model
=
new
RB_Finance_Extend
()
{
OtherType
=
29
,
ReFinanceId
=
OfferId
,
OrderSource
=
OrderResourceEnum
.
Education
,
RB_Group_Id
=
base
.
UserInfo
.
Group_Id
,
FinanceType
=
2
,
IsSelectNormal
=
1
};
var
financeList
=
financeModule
.
GetFinanceInfoList
(
model
);
var
recultFiniceList
=
financeList
.
Select
(
x
=>
new
{
x
.
FrID
,
x
.
Type
,
x
.
TCID
,
x
.
OrderID
,
x
.
Money
,
x
.
PayMoney
,
AirTotalMoney
=
x
.
AirTotalMoney
??
0
,
AirTotalPayMoney
=
x
.
AirTotalPayMoney
??
0
,
CostTypeList
=
x
.
CostTypeList
.
Distinct
().
ToList
(),
x
.
OrderSource
,
AuditList
=
x
.
AuditList
.
Select
(
t
=>
new
{
t
.
AuditEmId
,
t
.
AuditEmName
,
AuditDate
=
t
.
AuditDate
.
HasValue
?
t
.
AuditDate
.
Value
.
ToString
(
"yyyy/MM/dd"
)
:
""
}),
StatusStr
=
EnumHelper
.
ToName
(
x
.
Status
.
Value
),
x
.
RB_CreateByName
,
CreateDate
=
x
.
CreateDate
.
Value
.
ToString
(
"yyyy-MM-dd"
),
TradeDate
=
x
.
TradeDate
.
HasValue
?
x
.
TradeDate
.
Value
.
ToString
(
"yyyy-MM-dd"
)
:
""
,
TradeWayList
=
x
.
BankList
?.
Select
(
y
=>
new
{
y
.
AccountType
,
y
.
Alias
,
y
.
BankNo
,
TypeName
=
EnumHelper
.
ToName
(
y
.
Type
),
y
.
CurrencyName
,
y
.
OriginalMoney
,
y
.
Money
,
y
.
Rate
})
});
var
resultData
=
new
{
IncomeList
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
),
//学费收入
ExpendList
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
OUT
),
//其他支出
IncomeReceive
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
).
Sum
(
x
=>
x
.
Money
),
IncomeActual
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
IN
).
Sum
(
x
=>
x
.
PayMoney
),
ExpendReceive
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
OUT
).
Sum
(
x
=>
x
.
Money
),
ExpendActual
=
recultFiniceList
.
Where
(
t
=>
t
.
Type
==
WFTempLateClassEnum
.
OUT
).
Sum
(
x
=>
x
.
PayMoney
)
};
return
ApiResult
.
Success
(
""
,
resultData
);
}
#
endregion
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment