Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
d7b6aa06
Commit
d7b6aa06
authored
Jun 15, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
5f84644e
4828f6f9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
10 deletions
+31
-10
TourGoodOrderFindVo.java
...n/java/com/xxfc/platform/tour/vo/TourGoodOrderFindVo.java
+4
-4
TourGoodOrderVo.java
.../main/java/com/xxfc/platform/tour/vo/TourGoodOrderVo.java
+17
-3
TourApplication.java
...src/main/java/com/xxfc/platform/tour/TourApplication.java
+0
-2
TourGoodVerificationBiz.java
...a/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
+10
-1
No files found.
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/vo/TourGoodOrderFindVo.java
View file @
d7b6aa06
...
...
@@ -3,7 +3,7 @@ package com.xxfc.platform.tour.vo;
import
com.github.wxiaoqi.security.common.vo.PageParam
;
import
lombok.Data
;
import
javax.validation.constraints.Not
Empty
;
import
javax.validation.constraints.Not
Null
;
import
java.util.Date
;
/**
...
...
@@ -19,19 +19,19 @@ public class TourGoodOrderFindVo extends PageParam {
/**
* 公司id
*/
@Not
Empty
(
message
=
"公司id不能为空"
)
@Not
Null
(
message
=
"公司id不能为空"
)
private
Integer
companyId
;
/**
* 订单状态
*/
@Not
Empty
(
message
=
"订单状态不能为空"
)
@Not
Null
(
message
=
"订单状态不能为空"
)
private
Integer
orderStatus
;
/**
*出发时间
*/
@Not
Empty
(
message
=
"出发时间不断能空"
)
@Not
Null
(
message
=
"出发时间不断能空"
)
private
Date
trvaelTime
;
private
String
travelDate
;
...
...
xx-tour/xx-tour-api/src/main/java/com/xxfc/platform/tour/vo/TourGoodOrderVo.java
View file @
d7b6aa06
package
com
.
xxfc
.
platform
.
tour
.
vo
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
...
...
@@ -18,6 +21,7 @@ import java.util.Date;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel
(
"旅游订单vo"
)
public
class
TourGoodOrderVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
...
...
@@ -25,50 +29,60 @@ public class TourGoodOrderVo implements Serializable {
/**
* 核销订单id
*/
@ApiModelProperty
(
"核销订单id"
)
private
Integer
id
;
/**
* 商品名称
*/
@ApiModelProperty
(
"商品名称"
)
private
String
name
;
/**
* 封面
*/
@ApiModelProperty
(
"封面"
)
private
String
coverUrl
;
/**
* 出行时间
*/
@ApiModelProperty
(
"出行时间"
)
private
String
travelTime
;
/**
* 总人数
*/
@ApiModelProperty
(
"总人数"
)
private
int
headcount
;
/**
*
未
上车人数
*
已
上车人数
*/
@ApiModelProperty
(
"已上车人数"
)
private
int
tripOfNum
;
/**
*
已
上车人数
*
未
上车人数
*/
@ApiModelProperty
(
"未上车人数"
)
private
int
leaveOfnum
;
/**
* 是否出行 '状态:0-未出行;1-已出行'
*/
@ApiModelProperty
(
"出行与否"
)
private
Integer
travelStatus
;
/**
* 开始出行日期
*/
@JsonIgnore
private
Date
startDate
;
/**
* 开始出行时间
*/
private
Date
startTime
;
@JsonIgnore
private
Long
startTime
;
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/TourApplication.java
View file @
d7b6aa06
...
...
@@ -32,6 +32,4 @@ public class TourApplication {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
TourApplication
.
class
,
args
);
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/biz/TourGoodVerificationBiz.java
View file @
d7b6aa06
...
...
@@ -9,6 +9,7 @@ import com.xxfc.platform.tour.entity.TourGoodVerification;
import
com.xxfc.platform.tour.mapper.TourGoodVerificationMapper
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
java.time.LocalTime
;
import
java.util.*
;
/**
...
...
@@ -50,6 +51,14 @@ public class TourGoodVerificationBiz extends BaseBiz<TourGoodVerificationMapper,
tourGoodOrderVo
.
setLeaveOfnum
(
tourGoodOrderVo
.
getHeadcount
()-
tourGoodOrderVo
.
getTripOfNum
());
String
startDateStr
=
DateUtil
.
format
(
tourGoodOrderVo
.
getStartDate
(),
"YYYY.MM.dd"
);
tourGoodOrderVo
.
setTravelTime
(
startDateStr
);
Long
startTime
=
tourGoodOrderVo
.
getStartTime
();
if
(
null
!=
startTime
){
LocalTime
localTime
=
LocalTime
.
ofSecondOfDay
(
startTime
);
String
timeStr
=
String
.
format
(
"%s:%s:%s"
,
localTime
.
getHour
()==
0
?
"00"
:
localTime
.
getHour
(),
localTime
.
getMinute
()==
0
?
"00"
:
localTime
.
getMinute
(),
localTime
.
getSecond
()==
0
?
"00"
:
localTime
.
getSecond
());
tourGoodOrderVo
.
setTravelTime
(
String
.
format
(
"%s %s"
,
tourGoodOrderVo
.
getTravelTime
(),
timeStr
));
}
}).
count
();
return
tourGoodOrderVoPageDataVO
;
}
...
...
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