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
b59c7fd6
Commit
b59c7fd6
authored
Jul 30, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
751705e7
bb121755
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
VehicleDispatchInfoDto.java
...xfc/platform/vehicle/pojo/dto/VehicleDispatchInfoDto.java
+9
-2
VehicleDispatchInfoBiz.java
...com/xxfc/platform/vehicle/biz/VehicleDispatchInfoBiz.java
+3
-1
VehicleDispatchInfoMapper.xml
...r/src/main/resources/mapper/VehicleDispatchInfoMapper.xml
+3
-1
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/dto/VehicleDispatchInfoDto.java
View file @
b59c7fd6
...
@@ -9,8 +9,11 @@ import java.util.List;
...
@@ -9,8 +9,11 @@ import java.util.List;
@Data
@Data
public
class
VehicleDispatchInfoDto
extends
PageParam
{
public
class
VehicleDispatchInfoDto
extends
PageParam
{
@ApiModelProperty
(
value
=
"分公司"
)
@ApiModelProperty
(
value
=
"分公司id"
)
private
List
<
Integer
>
companyList
;
private
String
companyId
;
@ApiModelProperty
(
value
=
"片区id"
)
private
String
zoneId
;
@ApiModelProperty
(
value
=
"状态"
)
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
status
;
private
Integer
status
;
...
@@ -18,5 +21,9 @@ public class VehicleDispatchInfoDto extends PageParam {
...
@@ -18,5 +21,9 @@ public class VehicleDispatchInfoDto extends PageParam {
@ApiModelProperty
(
value
=
"预定月份"
)
@ApiModelProperty
(
value
=
"预定月份"
)
private
String
dispatchMonth
;
private
String
dispatchMonth
;
@ApiModelProperty
(
value
=
"预定月份"
)
private
List
<
Integer
>
companyList
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleDispatchInfoBiz.java
View file @
b59c7fd6
...
@@ -60,7 +60,9 @@ public class VehicleDispatchInfoBiz extends BaseBiz<VehicleDispatchInfoMapper,Ve
...
@@ -60,7 +60,9 @@ public class VehicleDispatchInfoBiz extends BaseBiz<VehicleDispatchInfoMapper,Ve
if
(
userDTO
!=
null
)
{
if
(
userDTO
!=
null
)
{
List
<
Integer
>
companyList
=
new
ArrayList
<>();
List
<
Integer
>
companyList
=
new
ArrayList
<>();
if
(
userDTO
.
getDataAll
()
==
1
)
{
if
(
userDTO
.
getDataAll
()
==
1
)
{
companyList
=
dispatchInfoDto
.
getCompanyList
();
String
zoneId
=
dispatchInfoDto
.
getZoneId
();
String
companyId
=
dispatchInfoDto
.
getCompanyId
();
companyList
=
vehicleBiz
.
dataCompany
(
zoneId
,
companyId
);
}
else
{
}
else
{
companyList
=
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
());
companyList
=
vehicleBiz
.
dataCompany
(
userDTO
.
getDataZone
(),
userDTO
.
getDataCompany
());
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleDispatchInfoMapper.xml
View file @
b59c7fd6
...
@@ -8,6 +8,8 @@
...
@@ -8,6 +8,8 @@
SELECT
SELECT
DISTINCT
DISTINCT
i.id,
i.id,
i.account_id as accountId,
i.account_name as accountName,
i.company_id as companyId,
i.company_id as companyId,
c.`name` as companyName,
c.`name` as companyName,
i.mode_id as modeId,
i.mode_id as modeId,
...
@@ -72,6 +74,6 @@
...
@@ -72,6 +74,6 @@
</trim>
</trim>
)
)
</where>
</where>
order by
i
.actual_start_date
order by
r
.actual_start_date
</select>
</select>
</mapper>
</mapper>
\ 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