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
d3ff23c5
Commit
d3ff23c5
authored
Dec 02, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增领取门票接口和获取所有已领门票用户接口
parent
c1129076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
BranchCompanyVehicleCountBiz.java
...fc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
+10
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyVehicleCountBiz.java
View file @
d3ff23c5
...
@@ -12,6 +12,10 @@ import com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper;
...
@@ -12,6 +12,10 @@ import com.xxfc.platform.vehicle.mapper.BranchCompanyVehicleCountMapper;
import
com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo
;
import
com.xxfc.platform.vehicle.pojo.BranchCompanyVehicleCountVo
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO
;
import
com.xxfc.platform.vehicle.pojo.dto.BranchCompanyVehicleCountDTO
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.joda.time.DateTime
;
import
org.joda.time.format.DateTimeFormat
;
import
org.joda.time.format.DateTimeFormatter
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.scheduling.annotation.Scheduled
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -24,6 +28,8 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -24,6 +28,8 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
@Autowired
@Autowired
VehicleBiz
vehicleBiz
;
VehicleBiz
vehicleBiz
;
public
static
final
DateTimeFormatter
DATE_TIME_FORMATTER
=
DateTimeFormat
.
forPattern
(
"yyyy-MM-dd"
);
public
ObjectRestResponse
add
(
BranchCompanyVehicleCount
branchCompanyVehicleCount
)
{
public
ObjectRestResponse
add
(
BranchCompanyVehicleCount
branchCompanyVehicleCount
)
{
if
(
branchCompanyVehicleCount
==
null
)
{
if
(
branchCompanyVehicleCount
==
null
)
{
...
@@ -88,6 +94,10 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
...
@@ -88,6 +94,10 @@ public class BranchCompanyVehicleCountBiz extends BaseBiz<BranchCompanyVehicleCo
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
Integer
type
=
branchCompanyVehicleCountDTO
.
getType
()
==
null
?
1
:
branchCompanyVehicleCountDTO
.
getType
();
branchCompanyVehicleCountDTO
.
setPage
(
page
);
branchCompanyVehicleCountDTO
.
setPage
(
page
);
branchCompanyVehicleCountDTO
.
setLimit
(
limit
);
branchCompanyVehicleCountDTO
.
setLimit
(
limit
);
if
(
StringUtils
.
isBlank
(
branchCompanyVehicleCountDTO
.
getStartTime
())
||
StringUtils
.
isBlank
(
branchCompanyVehicleCountDTO
.
getEndTime
()))
{
branchCompanyVehicleCountDTO
.
setStartTime
(
DateTime
.
now
().
toString
(
DATE_TIME_FORMATTER
));
branchCompanyVehicleCountDTO
.
setEndTime
(
DateTime
.
now
().
toString
(
DATE_TIME_FORMATTER
));
}
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
Query
query
=
new
Query
(
branchCompanyVehicleCountDTO
);
if
(
type
==
1
)
{
//按天
if
(
type
==
1
)
{
//按天
return
ObjectRestResponse
.
succ
(
countByDay
(
query
));
return
ObjectRestResponse
.
succ
(
countByDay
(
query
));
...
...
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