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
dbead0b4
Commit
dbead0b4
authored
Aug 05, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3eb7635a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
24 deletions
+15
-24
VehicleModel.java
...n/java/com/xxfc/platform/vehicle/entity/VehicleModel.java
+3
-0
VehicleModelQueryCondition.java
...xfc/platform/vehicle/pojo/VehicleModelQueryCondition.java
+2
-0
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+6
-24
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+1
-0
VehicleModelMapper.xml
...e-server/src/main/resources/mapper/VehicleModelMapper.xml
+3
-0
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/VehicleModel.java
View file @
dbead0b4
...
...
@@ -145,4 +145,7 @@ public class VehicleModel implements Serializable {
@ApiModelProperty
(
value
=
"购买价格"
)
private
BigDecimal
buyPrice
;
@Column
(
name
=
"status"
)
@ApiModelProperty
(
value
=
"状态 0--下架;1--上架"
)
private
Integer
status
;
}
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/pojo/VehicleModelQueryCondition.java
View file @
dbead0b4
...
...
@@ -26,6 +26,8 @@ public class VehicleModelQueryCondition {
private
String
takeALieTheNumber
;
@ApiModelProperty
(
value
=
"是否删除"
)
private
Integer
isDel
;
@ApiModelProperty
(
value
=
"状态"
)
private
Integer
status
;
@ApiModelProperty
(
"分类逗号分割"
)
String
catasStr
;
@ApiModelProperty
(
value
=
"分类列表"
,
hidden
=
true
)
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
dbead0b4
...
...
@@ -46,6 +46,8 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
import
static
com
.
github
.
wxiaoqi
.
security
.
common
.
constant
.
CommonConstants
.
SYS_TRUE
;
@RestController
@RequestMapping
(
"vehicleModel"
)
@Api
(
value
=
"车型controller"
,
tags
=
{
"车型操作接口"
})
...
...
@@ -112,6 +114,10 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
vmqc
.
setIsDel
(
0
);
}
if
(
vmqc
.
getStatus
()==
null
)
{
vmqc
.
setStatus
(
SYS_TRUE
);
}
if
(
vmqc
==
null
||
vmqc
.
getPage
()
==
null
||
vmqc
.
getLimit
()
==
null
||
vmqc
.
getPage
()
<
0
||
vmqc
.
getLimit
()
<=
0
)
{
return
ObjectRestResponse
.
createDefaultFail
();
}
...
...
@@ -125,7 +131,6 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
}
/**
* 添加车型
*
...
...
@@ -307,27 +312,4 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
return
baseBiz
.
goodList
(
page
,
limit
);
}
/**
* 车型列表查
*
* @param vmqc 条件
* @return
*/
@ApiOperation
(
"车型列表"
)
@PostMapping
(
value
=
"/app/findVehicleModelPage"
)
public
ObjectRestResponse
<
VehicleModelVo
>
findVehicleModelPage
(
@RequestBody
@ApiParam
(
"查询条件"
)
VehicleModelQueryCondition
vmqc
)
{
if
(
vmqc
.
getIsDel
()==
null
)
{
vmqc
.
setIsDel
(
0
);
}
if
(
vmqc
==
null
||
vmqc
.
getPage
()
==
null
||
vmqc
.
getLimit
()
==
null
||
vmqc
.
getPage
()
<
0
||
vmqc
.
getLimit
()
<=
0
)
{
return
ObjectRestResponse
.
createDefaultFail
();
}
return
vehicleModelBiz
.
findVehicleModelPage
(
vmqc
);
}
}
\ No newline at end of file
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
dbead0b4
...
...
@@ -382,6 +382,7 @@
<include
refid=
"searchUsableSql"
/>
and vm.id is not null
and vm.status = 1
and bc.id is not null
GROUP BY model_id, company_id
<if
test=
"lon != null and lat != null"
>
, distance
</if>
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleModelMapper.xml
View file @
dbead0b4
...
...
@@ -17,6 +17,9 @@
<if
test=
"isDel !=null "
>
and isdel=#{isDel}
</if>
<if
test=
"status != null"
>
and status = #{status}
</if>
<if
test=
"vehicleName !=null and vehicleName !=''"
>
AND vmqc.name LIKE CONCAT('%',#{vehicleName},'%')
</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