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
90bb36e6
Commit
90bb36e6
authored
Nov 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
62cfcc2e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
RB_StudyAbroad.cs
Edu.Model/Entity/StudyAbroad/RB_StudyAbroad.cs
+5
-0
StudyAbroadModule.cs
Edu.Module.StudyAbroad/StudyAbroadModule.cs
+1
-0
PublicController.cs
Edu.WebApi/Controllers/Public/PublicController.cs
+15
-0
StudyAbroadController.cs
Edu.WebApi/Controllers/StudyAbroad/StudyAbroadController.cs
+1
-0
No files found.
Edu.Model/Entity/StudyAbroad/RB_StudyAbroad.cs
View file @
90bb36e6
...
...
@@ -147,5 +147,10 @@ namespace Edu.Model.Entity.StudyAbroad
/// 特色
/// </summary>
public
string
StudyFeature
{
get
;
set
;
}
/// <summary>
/// 留学国家编号
/// </summary>
public
int
StudyCountryId
{
get
;
set
;
}
}
}
Edu.Module.StudyAbroad/StudyAbroadModule.cs
View file @
90bb36e6
...
...
@@ -154,6 +154,7 @@ namespace Edu.Module.StudyAbroad
{
nameof
(
RB_StudyAbroad_ViewModel
.
ImgCover
),
model
.
ImgCover
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
ProductType
),
model
.
ProductType
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
StudyFeature
),
model
.
StudyFeature
},
{
nameof
(
RB_StudyAbroad_ViewModel
.
StudyCountryId
),
model
.
StudyCountryId
},
};
flag
=
studyAbroadRepository
.
Update
(
fileds
,
new
WhereHelper
(
nameof
(
RB_StudyAbroad_ViewModel
.
Id
),
model
.
Id
));
}
...
...
Edu.WebApi/Controllers/Public/PublicController.cs
View file @
90bb36e6
...
...
@@ -69,6 +69,21 @@ namespace Edu.WebApi.Controllers.Public
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 获取国家列表
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetCountryList
()
{
var
query
=
new
RB_Destination_ViewModel
()
{
ParentID
=
0
,
};
var
list
=
destinationModule
.
GetAreaListModule
(
query
);
return
ApiResult
.
Success
(
data
:
list
);
}
/// <summary>
/// 获取省市区列表
/// </summary>
...
...
Edu.WebApi/Controllers/StudyAbroad/StudyAbroadController.cs
View file @
90bb36e6
...
...
@@ -421,6 +421,7 @@ namespace Edu.WebApi.Controllers.StudyAbroad
ImgCover
=
base
.
ParmJObj
.
GetStringValue
(
"ImgCover"
),
ProductType
=(
StudyAbroadProductTypeEnum
)
base
.
ParmJObj
.
GetInt
(
"ProductType"
),
StudyFeature
=
base
.
ParmJObj
.
GetStringValue
(
"StudyFeature"
),
StudyCountryId
=
base
.
ParmJObj
.
GetInt
(
"StudyCountryId"
),
};
extModel
.
SaleState
=
Common
.
Enum
.
Sale
.
SaleStateEnum
.
NoPerfect
;
bool
flag
=
studyAbroadModule
.
SetStudyAbroadModule
(
extModel
);
...
...
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