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
8df50395
Commit
8df50395
authored
Nov 05, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
c1de3ab7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
VehicleFindDTO.java
...va/com/xxfc/platform/vehicle/pojo/dto/VehicleFindDTO.java
+4
-0
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+19
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/dto/VehicleFindDTO.java
View file @
8df50395
...
@@ -55,4 +55,8 @@ public class VehicleFindDTO extends PageParam implements DataInter {
...
@@ -55,4 +55,8 @@ public class VehicleFindDTO extends PageParam implements DataInter {
@ApiModelProperty
(
"店铺类型:1-店铺资产;2-店铺经营;3-店铺停靠"
)
@ApiModelProperty
(
"店铺类型:1-店铺资产;2-店铺经营;3-店铺停靠"
)
private
Integer
type
;
private
Integer
type
;
@ApiModelProperty
(
"店铺状态:1-上架中;2-下架中;3-已调出"
)
private
Integer
goodStatus
;
}
}
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
8df50395
...
@@ -1373,6 +1373,25 @@
...
@@ -1373,6 +1373,25 @@
<if
test=
"goodsType != null "
>
<if
test=
"goodsType != null "
>
AND v.`goods_type`= #{goodsType}
AND v.`goods_type`= #{goodsType}
</if>
</if>
<if
test=
"goodStatus != null and goodStatus > 0 and type != null and type > 0 "
>
<choose>
<when
test=
"goodStatus == 1 and type == 1"
>
and v.`state`= 1 and v.`subordinate_branch` == v.`park_branch_company_id` and v.`subordinate_branch` == v.`manage_company_id
</when>
<when
test=
"goodStatus == 2 and type == 1"
>
and v.`state`= 2 and v.`subordinate_branch` == v.`park_branch_company_id` and v.`subordinate_branch` == v.`manage_company_id
</when>
<when
test=
"goodStatus == 1 and type == 2"
>
and v.`state`= 1
</when>
<when
test=
"goodStatus == 2 and type == 2 "
>
and v.`state`= 2
</when>
<when
test=
"goodStatus == 3"
>
and ( v.`subordinate_branch` != v.`park_branch_company_id` or v.`subordinate_branch` != v.`manage_company_id` )
</when>
</choose>
</if>
<if
test=
"dataCompanyIds != null and dataCompanyIds.size > 0"
>
<if
test=
"dataCompanyIds != null and dataCompanyIds.size > 0"
>
<if
test=
"type != null and type > 0"
>
<if
test=
"type != null and type > 0"
>
<choose>
<choose>
...
...
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