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
690fd145
Commit
690fd145
authored
Aug 09, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加model相关修改
parent
16257299
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
2 deletions
+29
-2
BaseOrderBiz.java
...c/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
+5
-0
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+24
-2
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/biz/BaseOrderBiz.java
View file @
690fd145
...
...
@@ -372,6 +372,11 @@ public class BaseOrderBiz extends BaseBiz<BaseOrderMapper, BaseOrder> {
sendQueue
(
orderMQDTO
,
sign
);
}
@Override
public
void
updateSelectiveById
(
BaseOrder
entity
)
{
super
.
updateSelectiveById
(
entity
);
}
/**
* 更新(不成功抛异常)
*
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
690fd145
...
...
@@ -500,7 +500,7 @@
<select
id=
"searchUsableModel"
parameterType=
"java.util.Map"
resultMap=
"searchUsableModelMap"
>
select distinct vm.id as model_id, bc.id as company_id
(
select distinct vm.id as model_id, bc.id as company_id
<if
test=
" catas != null "
>
,GROUP_CONCAT(vc.cata_id) as catas
</if>
...
...
@@ -520,7 +520,29 @@
and vm.id is not null
and vm.status = 1
and vm.isdel = 0
and bc.id is not null
and bc.id is not null)
<if
test=
"startCompanyId != null or parkBranchCompanyId != null "
>
union
(select id as model_id,
<choose>
<when
test=
"startCompanyId != null"
>
#{startCompanyId} as company_id,
</when>
<otherwise>
#{parkBranchCompanyId} as company_id,
</otherwise>
</choose>
<if
test=
" catas != null "
>
null as catas
</if>
<if
test=
" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true"
>
0 as hasVehicle
</if>
<if
test=
"lon != null and lat != null"
>
0 as distance
</if>
from vehicle_model where vehicle_model.isdel = 0)
</if>
GROUP BY model_id, company_id
<if
test=
"lon != null and lat != null"
>
, distance
</if>
<!--<if test=" yearMonthAndParam !=null and yearNo4Where != null and yearNo4Where == true">, hasVehicle</if>-->
...
...
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