Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
5271067a
Commit
5271067a
authored
May 19, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
46b7aa52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
EmployeeModule.cs
Mall.Module.User/EmployeeModule.cs
+12
-1
RB_Emp_ConfigRepository.cs
Mall.Repository/User/RB_Emp_ConfigRepository.cs
+1
-1
No files found.
Mall.Module.User/EmployeeModule.cs
View file @
5271067a
...
...
@@ -198,7 +198,13 @@ namespace Mall.Module.User
/// <returns></returns>
public
RB_Emp_Config_Extend
GetEmpConfigListModule
(
RB_Emp_Config_Extend
query
)
{
return
emp_ConfigRepository
.
GetEmpConfigListRepository
(
query
)?.
FirstOrDefault
();
RB_Emp_Config_Extend
extModel
=
new
RB_Emp_Config_Extend
();
var
list
=
emp_ConfigRepository
.
GetEmpConfigListRepository
(
query
);
if
(
list
!=
null
)
{
extModel
=
list
.
FirstOrDefault
();
}
return
extModel
;
}
/// <summary>
...
...
@@ -209,6 +215,11 @@ namespace Mall.Module.User
public
bool
SetEmpConfigModule
(
RB_Emp_Config_Extend
extModel
)
{
bool
flag
=
false
;
var
defaultModel
=
GetEmpConfigListModule
(
new
RB_Emp_Config_Extend
()
{
MallBaseId
=
extModel
.
MallBaseId
,
TenantId
=
extModel
.
TenantId
});
if
(
defaultModel
!=
null
&&
defaultModel
.
ConfigId
>
0
)
{
extModel
.
ConfigId
=
defaultModel
.
ConfigId
;
}
if
(
extModel
.
ConfigId
>
0
)
{
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
...
...
Mall.Repository/User/RB_Emp_ConfigRepository.cs
View file @
5271067a
...
...
@@ -20,7 +20,7 @@ namespace Mall.Repository.User
public
List
<
RB_Emp_Config_Extend
>
GetEmpConfigListRepository
(
RB_Emp_Config_Extend
query
)
{
StringBuilder
builder
=
new
StringBuilder
();
builder
.
AppendFormat
(
@" SELECT * FROM RB_Emp_Config WHERE 1=1
AND Status=0
"
);
builder
.
AppendFormat
(
@" SELECT * FROM RB_Emp_Config WHERE 1=1 "
);
if
(
query
.
TenantId
>
0
)
{
builder
.
AppendFormat
(
" AND {0}={1} "
,
nameof
(
RB_Emp_Config_Extend
.
TenantId
),
query
.
TenantId
);
...
...
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