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
2dcb0a80
Commit
2dcb0a80
authored
Apr 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
09a1672d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
79 additions
and
0 deletions
+79
-0
WebController.cs
Edu.WebApi/Controllers/Web/WebController.cs
+36
-0
WebManagerController.cs
Edu.WebApi/Controllers/Web/WebManagerController.cs
+43
-0
No files found.
Edu.WebApi/Controllers/Web/WebController.cs
View file @
2dcb0a80
...
...
@@ -76,6 +76,11 @@ namespace Edu.WebApi.Controllers.Web
/// </summary>
private
readonly
StudyAbroadModule
studyAbroadModule
=
AOP
.
AOPHelper
.
CreateAOPObject
<
StudyAbroadModule
>();
/// <summary>
/// 咨询管理处理类对象
/// </summary>
private
readonly
WebAdvisoryModule
advisoryModule
=
new
WebAdvisoryModule
();
/// <summary>
/// 获取网站配置
/// </summary>
...
...
@@ -445,5 +450,36 @@ namespace Edu.WebApi.Controllers.Web
qitem
.
ImgCover
,
}));
}
/// <summary>
/// 新增咨询
/// </summary>
/// <returns></returns>
[
HttpPost
]
[
AllowAnonymous
]
public
ApiResult
AddWebAdvisory
()
{
var
extModel
=
new
RB_Web_Advisory_ViewModel
()
{
AdvType
=
base
.
ParmJObj
.
GetInt
(
"AdvType"
),
SourceId
=
base
.
ParmJObj
.
GetInt
(
"SourceId"
),
LinkMan
=
base
.
ParmJObj
.
GetStringValue
(
"LinkMan"
),
LinkTel
=
base
.
ParmJObj
.
GetStringValue
(
"LinkTel"
),
Remark
=
base
.
ParmJObj
.
GetStringValue
(
"Remark"
),
};
extModel
.
Group_Id
=
base
.
ParmJObj
.
GetInt
(
"Group_Id"
);
if
(
extModel
.
Group_Id
<=
0
)
{
string
Domain
=
base
.
ParmJObj
.
GetStringValue
(
"Domain"
);
int
groupId
=
groupModule
.
GetGroupIdByDomainModule
(
Domain
);
extModel
.
Group_Id
=
groupId
;
}
extModel
.
School_Id
=
0
;
extModel
.
CreateDate
=
DateTime
.
Now
;
extModel
.
Status
=
DateStateEnum
.
Normal
;
extModel
.
DealStatus
=
0
;
bool
flag
=
advisoryModule
.
SetWebAdvisoryModule
(
extModel
);
return
flag
?
ApiResult
.
Success
(
data
:
extModel
)
:
ApiResult
.
Failed
();
}
}
}
\ No newline at end of file
Edu.WebApi/Controllers/Web/WebManagerController.cs
View file @
2dcb0a80
...
...
@@ -527,7 +527,50 @@ namespace Edu.WebApi.Controllers.Web
return
ApiResult
.
Success
(
data
:
pageModel
);
}
/// <summary>
/// 根据编号获取咨询详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetWebAdvisory
()
{
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
,
0
);
var
extModel
=
advisoryModule
.
GetWebAdvisoryModule
(
Id
);
return
ApiResult
.
Success
(
data
:
extModel
);
}
/// <summary>
/// 修改咨询
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
UpdateWebAdvisory
()
{
var
extModel
=
new
RB_Web_Advisory_ViewModel
()
{
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
),
DealContent
=
base
.
ParmJObj
.
GetStringValue
(
"DealContent"
),
DealStatus
=
base
.
ParmJObj
.
GetInt
(
"DealStatus"
),
};
extModel
.
School_Id
=
base
.
UserInfo
.
School_Id
;
extModel
.
DealBy
=
base
.
UserInfo
.
Id
;
extModel
.
DealTime
=
DateTime
.
Now
;
bool
flag
=
advisoryModule
.
UpdateWebAdvisoryModule
(
extModel
);
return
flag
?
ApiResult
.
Success
(
data
:
extModel
)
:
ApiResult
.
Failed
();
}
/// <summary>
/// 修改咨询状态
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
RemoveWebAdvisoryStatus
()
{
var
Id
=
base
.
ParmJObj
.
GetInt
(
"Id"
,
0
);
var
Status
=
base
.
ParmJObj
.
GetInt
(
"Status"
,
0
);
var
flag
=
advisoryModule
.
RemoveWebAdvisoryStatusModule
(
Id
,
Status
);
return
flag
?
ApiResult
.
Success
()
:
ApiResult
.
Failed
();
}
#
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