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
abeaf5e9
Commit
abeaf5e9
authored
Nov 15, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-bg-update' into base-modify
parents
5f352ba2
5cfada0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
17 deletions
+6
-17
BackgroundBaseOrderBiz.java
...a/com/xxfc/platform/order/biz/BackgroundBaseOrderBiz.java
+4
-4
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+2
-13
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BackgroundBaseOrderBiz.java
View file @
abeaf5e9
...
@@ -46,6 +46,10 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder>
...
@@ -46,6 +46,10 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder>
List
<
BranchCompany
>
branchCompanies
=
vehicleFeign
.
companyAll
(
userDTO
.
getDataAll
(),
userDTO
.
getDataCompany
(),
userDTO
.
getDataZone
());
List
<
BranchCompany
>
branchCompanies
=
vehicleFeign
.
companyAll
(
userDTO
.
getDataAll
(),
userDTO
.
getDataCompany
(),
userDTO
.
getDataZone
());
List
<
Integer
>
companyIds
=
branchCompanies
.
stream
().
map
(
BranchCompany:
:
getId
).
collect
(
Collectors
.
toList
());
List
<
Integer
>
companyIds
=
branchCompanies
.
stream
().
map
(
BranchCompany:
:
getId
).
collect
(
Collectors
.
toList
());
//大区搜索
//大区搜索
//有当前大区权限才能搜索到数据
if
(
dto
.
getZoneId
()
!=
null
&&
(
userDTO
.
getDataAll
()
==
1
||
userDTO
.
getZoneId
().
equals
(
dto
.
getZoneId
())
||
userDTO
.
getDataZone
().
contains
(
dto
.
getZoneId
()+
""
)))
{
companyIds
.
clear
();
}
//所属公司筛选
//所属公司筛选
if
(
dto
.
getStartCompanyId
()
!=
null
)
{
if
(
dto
.
getStartCompanyId
()
!=
null
)
{
if
(
companyIds
.
size
()
>
0
)
{
if
(
companyIds
.
size
()
>
0
)
{
...
@@ -59,10 +63,6 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder>
...
@@ -59,10 +63,6 @@ public class BackgroundBaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder>
companyIds
.
add
(
dto
.
getStartCompanyId
());
companyIds
.
add
(
dto
.
getStartCompanyId
());
}
}
}
}
//有当前大区权限才能搜索到数据
if
(
dto
.
getZoneId
()
!=
null
&&
(
userDTO
.
getDataAll
()
==
1
||
userDTO
.
getZoneId
().
equals
(
dto
.
getZoneId
())
||
userDTO
.
getDataZone
().
contains
(
dto
.
getZoneId
()+
""
)))
{
companyIds
.
clear
();
}
dto
.
setCompanyIds
(
companyIds
);
dto
.
setCompanyIds
(
companyIds
);
if
(
dto
.
getStartTime
()
!=
null
)
{
if
(
dto
.
getStartTime
()
!=
null
)
{
if
(
dto
.
getEndTime
()
==
null
)
{
if
(
dto
.
getEndTime
()
==
null
)
{
...
...
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
abeaf5e9
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
and v1.number_plate like CONCAT ("%", #{plateNumber}, "%")
and v1.number_plate like CONCAT ("%", #{plateNumber}, "%")
</if>
</if>
<if
test=
"vehicleCode != null"
>
<if
test=
"vehicleCode != null"
>
and
o
1.code = #{vehicleCode}
and
v
1.code = #{vehicleCode}
</if>
</if>
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and o1.start_time between #{startTime} and #{endTime}
and o1.start_time between #{startTime} and #{endTime}
...
@@ -308,18 +308,7 @@
...
@@ -308,18 +308,7 @@
)
)
</if>
</if>
<if
test=
"zoneId != null"
>
<if
test=
"zoneId != null"
>
and (bc1.zone_id = #{zoneId} or bc1.zone_id = #{zoneId})
and (bc1.zone_id = #{zoneId} or bc2.zone_id = #{zoneId})
</if>
<if
test=
"zoneIds != null and zoneIds.size > 0"
>
and (o1.start_zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
<!-- or t.start_zone_id in-->
<!-- <foreach collection="zoneIds" item="id" open="(" separator="," close=")">-->
<!-- #{id}-->
<!-- </foreach>-->
)
</if>
</if>
</where>
</where>
order by b1.crt_time desc
order by b1.crt_time desc
...
...
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