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
ca7867ee
Commit
ca7867ee
authored
3 years ago
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
026cc2b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
StudentModule.cs
Edu.Module.User/StudentModule.cs
+9
-0
UserController.cs
Edu.WebApi/Controllers/User/UserController.cs
+30
-1
No files found.
Edu.Module.User/StudentModule.cs
View file @
ca7867ee
...
@@ -127,6 +127,15 @@ namespace Edu.Module.User
...
@@ -127,6 +127,15 @@ namespace Edu.Module.User
new
WhereHelper
(
nameof
(
RB_Student_ViewModel
.
Group_Id
),
model
.
Group_Id
),
new
WhereHelper
(
nameof
(
RB_Student_ViewModel
.
Group_Id
),
model
.
Group_Id
),
new
WhereHelper
(
nameof
(
RB_Student_ViewModel
.
StuTel
),
model
.
StuTel
),
new
WhereHelper
(
nameof
(
RB_Student_ViewModel
.
StuTel
),
model
.
StuTel
),
};
};
if
(
model
.
StuId
>
0
)
{
where
.
Add
(
new
WhereHelper
()
{
FiledName
=
nameof
(
RB_Student_ViewModel
.
StuId
),
FiledValue
=
model
.
StuId
,
OperatorEnum
=
OperatorEnum
.
NotEqual
});
}
return
studentRepository
.
Exists
(
where
);
return
studentRepository
.
Exists
(
where
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Edu.WebApi/Controllers/User/UserController.cs
View file @
ca7867ee
...
@@ -793,7 +793,36 @@ namespace Edu.WebApi.Controllers.User
...
@@ -793,7 +793,36 @@ namespace Edu.WebApi.Controllers.User
{
{
var
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
,
0
);
var
StuId
=
base
.
ParmJObj
.
GetInt
(
"StuId"
,
0
);
var
extModel
=
studentModule
.
GetStudentModule
(
StuId
);
var
extModel
=
studentModule
.
GetStudentModule
(
StuId
);
return
ApiResult
.
Success
(
data
:
extModel
);
var
obj
=
new
{
extModel
.
StuId
,
extModel
.
StuName
,
extModel
.
StuTel
,
extModel
.
StuIcon
,
extModel
.
StuSex
,
extModel
.
StuBirth
,
extModel
.
ProviceId
,
extModel
.
CityId
,
extModel
.
AreaId
,
extModel
.
IsDisable
,
extModel
.
StuStatus
,
extModel
.
Interest
,
extModel
.
JapanBaseInfo
,
extModel
.
CustomerId
,
extModel
.
StuProfession
,
extModel
.
StuEducation
,
StuEducationName
=
extModel
.
StuEducation
.
ToName
(),
extModel
.
StuPurpose
,
StuPurposeName
=
extModel
.
StuPurpose
.
ToName
(),
extModel
.
StuSource
,
StuSourceName
=
extModel
.
StuSource
.
ToName
(),
extModel
.
StuAddress
,
extModel
.
StuContract
,
extModel
.
StuContractMobile
,
extModel
.
StuIDCard
,
extModel
.
StuIDCardAddress
,
};
return
ApiResult
.
Success
(
data
:
obj
);
}
}
/// <summary>
/// <summary>
...
...
This diff is collapsed.
Click to expand it.
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