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
c539cfc1
Commit
c539cfc1
authored
Sep 21, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
fedef7b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
AppletGuideCarController.cs
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
+16
-12
No files found.
Mall.WebApi/Controllers/Product/AppletGuideCarController.cs
View file @
c539cfc1
...
...
@@ -128,6 +128,11 @@ namespace Mall.WebApi.Controllers.Product
DateTime
tempStartTime
=
Convert
.
ToDateTime
(
demodel
.
StartTime
);
DateTime
tempEndTime
=
Convert
.
ToDateTime
(
demodel
.
EndTime
);
if
(
demodel
.
CarType
.
HasValue
&&
(
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
JJ
||
demodel
.
CarType
==
Common
.
Enum
.
Goods
.
GuideCarGoodsTypeEnum
.
SJ
))
{
demodel
.
UseDay
=
1
;
}
else
{
if
(
tempStartTime
.
ToString
(
"yyyy-MM-dd"
)
==
tempEndTime
.
ToString
(
"yyyy-MM-dd"
))
//判断使用天数是否是0.5天/1天
{
TimeSpan
sp
=
tempEndTime
.
Subtract
(
tempStartTime
);
...
...
@@ -145,8 +150,7 @@ namespace Mall.WebApi.Controllers.Product
TimeSpan
sp
=
tempEndTime
.
Date
.
Subtract
(
tempStartTime
.
Date
);
demodel
.
UseDay
=
sp
.
Days
+
1
;
}
}
var
list
=
guideCarModule
.
GetAppletGuidCarPageListForCar
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
List
<
object
>
RList
=
new
List
<
object
>();
...
...
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