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
62cfcc2e
Commit
62cfcc2e
authored
Nov 26, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
f5dd4810
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
RB_Customer_BalanceDetail_ViewModel.cs
...ViewModel/Customer/RB_Customer_BalanceDetail_ViewModel.cs
+20
-0
RB_Customer_BalanceDetailRepository.cs
...epository/Customer/RB_Customer_BalanceDetailRepository.cs
+3
-2
No files found.
Edu.Model/ViewModel/Customer/RB_Customer_BalanceDetail_ViewModel.cs
View file @
62cfcc2e
...
@@ -10,6 +10,21 @@ namespace Edu.Model.ViewModel.Customer
...
@@ -10,6 +10,21 @@ namespace Edu.Model.ViewModel.Customer
/// </summary>
/// </summary>
public
class
RB_Customer_BalanceDetail_ViewModel
:
RB_Customer_BalanceDetail
public
class
RB_Customer_BalanceDetail_ViewModel
:
RB_Customer_BalanceDetail
{
{
/// <summary>
/// 班级名称
/// </summary>
public
string
ClassName
{
get
;
set
;
}
/// <summary>
/// 班级编号
/// </summary>
public
string
ClassNo
{
get
;
set
;
}
/// <summary>
/// 客户名称
/// </summary>
public
string
CustomerName
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 返佣类型字符串
/// 返佣类型字符串
/// </summary>
/// </summary>
...
@@ -49,5 +64,10 @@ namespace Edu.Model.ViewModel.Customer
...
@@ -49,5 +64,10 @@ namespace Edu.Model.ViewModel.Customer
return
str
;
return
str
;
}
}
}
}
/// <summary>
/// 操作时间字符串
/// </summary>
public
string
UpdateTimeStr
{
get
{
return
Common
.
ConvertHelper
.
FormatTime
(
this
.
UpdateTime
);
}
}
}
}
}
}
Edu.Repository/Customer/RB_Customer_BalanceDetailRepository.cs
View file @
62cfcc2e
...
@@ -24,8 +24,9 @@ namespace Edu.Repository.Customer
...
@@ -24,8 +24,9 @@ namespace Edu.Repository.Customer
{
{
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@"
builder
.
AppendFormat
(
@"
SELECT A.*
SELECT A.*,IFNULL(b.ClassName,'') AS ClassName,IFNULL(B.ClassNo,'') AS ClassNo,IFNULL(C.CustomerName,'') AS CustomerName
FROM RB_Customer_BalanceDetail AS A
FROM RB_Customer_BalanceDetail AS A LEFT JOIN rb_class AS B ON A.ClassId=B.ClassId
LEFT JOIN rb_customer AS C ON A.CustomerId=C.CustomerId
WHERE 1=1
WHERE 1=1
"
);
"
);
if
(
query
!=
null
)
if
(
query
!=
null
)
...
...
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