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
0d668fb9
Commit
0d668fb9
authored
Dec 08, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
5b61433d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
87 additions
and
0 deletions
+87
-0
AccountRemarkModule.cs
Edu.Module.User/AccountRemarkModule.cs
+87
-0
No files found.
Edu.Module.User/AccountRemarkModule.cs
0 → 100644
View file @
0d668fb9
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
Edu.AOP.CustomerAttribute
;
using
Edu.Model.ViewModel.User
;
using
Edu.Repository.User
;
namespace
Edu.Module.User
{
public
class
AccountRemarkModule
{
/// <summary>
/// 行政备注管理处理类对象
/// </summary>
private
readonly
RB_AccountRemarkRepository
accountRemarkRepository
=
new
RB_AccountRemarkRepository
();
/// <summary>
/// 获取行政备注列表
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_AccountRemark_ViewModel
>
GetAccountRemarkListModule
(
RB_AccountRemark_ViewModel
query
)
{
return
accountRemarkRepository
.
GetList
(
query
);
}
/// <summary>
/// 获取行政备注分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <returns></returns>
public
List
<
RB_AccountRemark_ViewModel
>
GetAccountRemarkPageListModule
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_AccountRemark_ViewModel
query
)
{
return
accountRemarkRepository
.
GetPageList
(
pageIndex
,
pageSize
,
out
rowsCount
,
query
);
}
/// <summary>
/// 获取分页列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="demodel"></param>
/// <returns></returns>
public
List
<
RB_AccountRemark_ViewList
>
GetPageList
(
int
pageIndex
,
int
pageSize
,
out
long
rowsCount
,
RB_AccountRemark_ViewList
demodel
)
{
var
list
=
accountRemarkRepository
.
GetAccountRemarkPageList
(
pageIndex
,
pageSize
,
out
rowsCount
,
demodel
);
if
(
list
!=
null
&&
list
.
Any
())
{
var
childList
=
accountRemarkRepository
.
GetListByWhere
(
demodel
);
foreach
(
var
item
in
list
)
{
item
.
AccountRemarkList
=
new
List
<
RB_AccountRemark_ViewModel
>();
item
.
AccountRemarkList
=
childList
.
Where
(
x
=>
x
.
CreateTime
.
Value
.
ToString
(
"yyyy-MM-dd"
)
==
item
.
CreateStr
).
ToList
();
}
}
return
list
;
}
/// <summary>
/// 添加修改行政备注
/// </summary>
/// <param name="model"></param>
/// <returns></returns>
public
bool
SetAccountRemarkModule
(
RB_AccountRemark_ViewModel
model
)
{
bool
flag
;
var
newId
=
accountRemarkRepository
.
Insert
(
model
);
model
.
Id
=
newId
;
flag
=
newId
>
0
;
return
flag
;
}
}
}
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