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
19f2df32
Commit
19f2df32
authored
Sep 02, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
44dd3ed1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
103 additions
and
0 deletions
+103
-0
RB_GuideCar_CarSearch.cs
Mall.Model/Entity/GuideCar/RB_GuideCar_CarSearch.cs
+37
-0
AppletGuideCarController.cs
Mall.WebApi/Controllers/User/AppletGuideCarController.cs
+66
-0
No files found.
Mall.Model/Entity/GuideCar/RB_GuideCar_CarSearch.cs
0 → 100644
View file @
19f2df32
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
namespace
Mall.Model.Entity.GuideCar
{
/// <summary>
/// 司导-车辆搜索模板实体
/// </summary>
[
Serializable
]
[
DB
(
ConnectionName
=
"DefaultConnection"
)]
public
class
RB_GuideCar_CarSearch
{
public
int
ID
{
get
;
set
;
}
/// <summary>
/// 商户id
/// </summary>
public
int
TenantId
{
get
;
set
;
}
/// <summary>
/// 小程序id
/// </summary>
public
int
MallBaseId
{
get
;
set
;
}
public
int
Status
{
get
;
set
;
}
public
DateTime
CreateDate
{
get
;
set
;
}
public
DateTime
UpdateDate
{
get
;
set
;
}
/// <summary>
/// 背景
/// </summary>
public
string
Background
{
get
;
set
;
}
}
}
Mall.WebApi/Controllers/User/AppletGuideCarController.cs
0 → 100644
View file @
19f2df32
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Threading.Tasks
;
using
Mall.Common.API
;
using
Mall.Model.Extend.GuideCar
;
using
Mall.Module.Product
;
using
Mall.WebApi.Filter
;
using
Microsoft.AspNetCore.Cors
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
Newtonsoft.Json
;
namespace
Mall.WebApi.Controllers.User
{
[
Route
(
"api/[controller]/[action]"
)]
[
ApiExceptionFilter
]
[
ApiController
]
[
EnableCors
(
"AllowCors"
)]
public
class
AppletGuideCarController
:
BaseController
{
private
readonly
GuideCarModule
guideCarModule
=
new
GuideCarModule
();
/// <summary>
/// 获取详情
/// </summary>
/// <returns></returns>
public
ApiResult
GetGuideCarGuideModel
()
{
var
parms
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
var
query
=
JsonConvert
.
DeserializeObject
<
RB_GuideCar_Guide_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
TenantId
=
userInfo
.
TenantId
;
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
var
oldLogisticsModel
=
guideCarModule
.
GetGuideCarGuideModel
(
query
);
if
(
oldLogisticsModel
==
null
)
{
oldLogisticsModel
=
new
RB_GuideCar_Guide_Extend
();
}
return
ApiResult
.
Success
(
""
,
oldLogisticsModel
);
}
/// <summary>
/// 获取详情
/// </summary>
/// <returns></returns>
[
HttpPost
]
public
ApiResult
GetGuideCarModel
()
{
var
parms
=
RequestParm
;
var
userInfo
=
AppletUserInfo
;
var
query
=
JsonConvert
.
DeserializeObject
<
RB_GuideCar_Car_Extend
>(
RequestParm
.
msg
.
ToString
());
query
.
TenantId
=
userInfo
.
TenantId
;
query
.
MallBaseId
=
userInfo
.
MallBaseId
;
var
oldLogisticsModel
=
guideCarModule
.
GetGuideCarModel
(
query
);
if
(
oldLogisticsModel
==
null
)
{
oldLogisticsModel
=
new
RB_GuideCar_Car_Extend
();
}
return
ApiResult
.
Success
(
""
,
oldLogisticsModel
);
}
}
}
\ No newline at end of file
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