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
f5dd4810
Commit
f5dd4810
authored
Nov 25, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a22624e0
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
94 additions
and
9 deletions
+94
-9
RB_Customer_BalanceDetail.cs
Edu.Model/Entity/Customer/RB_Customer_BalanceDetail.cs
+5
-5
RB_Customer_BalanceDetail_ViewModel.cs
...ViewModel/Customer/RB_Customer_BalanceDetail_ViewModel.cs
+40
-1
CustomerBalanceDetailModule.cs
Edu.Module.Customer/CustomerBalanceDetailModule.cs
+2
-2
RB_Customer_BalanceDetailRepository.cs
...epository/Customer/RB_Customer_BalanceDetailRepository.cs
+13
-1
B2BCustomerController.cs
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
+34
-0
No files found.
Edu.Model/Entity/Customer/RB_Customer_BalanceDetail.cs
View file @
f5dd4810
...
...
@@ -5,10 +5,10 @@ using VT.FW.DB;
namespace
Edu.Model.Entity.Customer
{
/// <summary>
/// 同行幸福存折
实体类
/// </summary>
[
Serializable
]
/// <summary>
/// 客户幸福存折和返佣
实体类
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_Customer_BalanceDetail
{
...
...
@@ -40,7 +40,7 @@ namespace Edu.Model.Entity.Customer
/// <summary>
/// 类型 1存入 2扣除
/// </summary>
public
int
Type
{
get
;
set
;
}
public
int
Balance
Type
{
get
;
set
;
}
/// <summary>
/// 变更金额
...
...
Edu.Model/ViewModel/Customer/RB_Customer_BalanceDetail_ViewModel.cs
View file @
f5dd4810
...
...
@@ -6,9 +6,48 @@ using System.Text;
namespace
Edu.Model.ViewModel.Customer
{
/// <summary>
/// 客户幸福存折扩展实体类
/// 客户幸福存折
和返佣
扩展实体类
/// </summary>
public
class
RB_Customer_BalanceDetail_ViewModel
:
RB_Customer_BalanceDetail
{
/// <summary>
/// 返佣类型字符串
/// </summary>
public
string
RebateTypeStr
{
get
{
string
str
=
""
;
if
(
this
.
RebateType
==
1
)
{
str
=
"返佣"
;
}
else
{
str
=
"幸福存折"
;
}
return
str
;
}
}
/// <summary>
/// 存入抵扣类型
/// </summary>
public
string
BalanceTypeStr
{
get
{
string
str
=
""
;
if
(
this
.
BalanceType
==
1
)
{
str
=
"存入"
;
}
else
{
str
=
"扣除"
;
}
return
str
;
}
}
}
}
Edu.Module.Customer/CustomerBalanceDetailModule.cs
View file @
f5dd4810
...
...
@@ -7,12 +7,12 @@ using System.Text;
namespace
Edu.Module.Customer
{
/// <summary>
///
同行幸福存折
处理类
///
客户幸福存折和返佣
处理类
/// </summary>
public
class
CustomerBalanceDetailModule
{
/// <summary>
///
同行幸福存折
仓储层对象
///
客户幸福存折和返佣
仓储层对象
/// </summary>
private
readonly
RB_Customer_BalanceDetailRepository
customer_BalanceDetailRepository
=
new
RB_Customer_BalanceDetailRepository
();
...
...
Edu.Repository/Customer/RB_Customer_BalanceDetailRepository.cs
View file @
f5dd4810
...
...
@@ -8,7 +8,7 @@ using System.Linq;
namespace
Edu.Repository.Customer
{
/// <summary>
/// 客户幸福存折仓储层
/// 客户幸福存折
和返佣
仓储层
/// </summary>
public
class
RB_Customer_BalanceDetailRepository
:
BaseRepository
<
RB_Customer_BalanceDetail
>
{
...
...
@@ -38,6 +38,18 @@ WHERE 1=1
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_BalanceDetail_ViewModel
.
CustomerId
),
query
.
CustomerId
);
}
if
(
query
.
RebateType
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_BalanceDetail_ViewModel
.
RebateType
),
query
.
RebateType
);
}
if
(
query
.
BalanceType
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_BalanceDetail_ViewModel
.
BalanceType
),
query
.
BalanceType
);
}
if
(
query
.
OrderId
>
0
)
{
builder
.
AppendFormat
(
" AND A.{0}={1} "
,
nameof
(
RB_Customer_BalanceDetail_ViewModel
.
OrderId
),
query
.
OrderId
);
}
}
return
GetPage
<
RB_Customer_BalanceDetail_ViewModel
>(
pageIndex
,
pageSize
,
out
rowsCount
,
builder
.
ToString
()).
ToList
();
}
...
...
Edu.WebApi/Controllers/Customer/B2BCustomerController.cs
View file @
f5dd4810
...
...
@@ -32,6 +32,11 @@ namespace Edu.WebApi.Controllers.Customer
/// </summary>
private
readonly
CustomerTaskModule
taskModule
=
new
CustomerTaskModule
();
/// <summary>
/// 客户幸福存折和返佣处理类对象
/// </summary>
private
readonly
CustomerBalanceDetailModule
balanceDetailModule
=
new
CustomerBalanceDetailModule
();
#
region
同行管理
/// <summary>
...
...
@@ -324,5 +329,34 @@ namespace Edu.WebApi.Controllers.Customer
return
ApiResult
.
Success
(
data
:
data
);
}
#
endregion
#
region
客户幸福存折和返佣
/// <summary>
/// 获取同行任务分页列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetCustomerBalanceDetailPage
()
{
var
pageModel
=
JsonHelper
.
DeserializeObject
<
ResultPageModel
>(
RequestParm
.
Msg
.
ToString
());
var
query
=
new
RB_Customer_BalanceDetail_ViewModel
()
{
Group_Id
=
base
.
UserInfo
.
Group_Id
,
RebateType
=
base
.
ParmJObj
.
GetInt
(
"RebateType"
),
BalanceType
=
base
.
ParmJObj
.
GetInt
(
"BalanceType"
),
CustomerId
=
base
.
ParmJObj
.
GetInt
(
"CustomerId"
),
OrderId
=
base
.
ParmJObj
.
GetInt
(
"OrderId"
),
};
var
list
=
balanceDetailModule
.
GetCustomerBalanceDetailPageModule
(
pageModel
.
PageIndex
,
pageModel
.
PageSize
,
out
long
rowsCount
,
query
);
foreach
(
var
item
in
list
)
{
}
pageModel
.
PageData
=
list
;
pageModel
.
Count
=
rowsCount
;
return
ApiResult
.
Success
(
data
:
pageModel
);
}
#
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