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
db484411
Commit
db484411
authored
Nov 06, 2019
by
周健威
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
6d604054
6829c866
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletion
+19
-1
VehicleModel.java
...n/java/com/xxfc/platform/vehicle/entity/VehicleModel.java
+4
-0
VehicleModelController.java
...om/xxfc/platform/vehicle/rest/VehicleModelController.java
+15
-1
No files found.
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/VehicleModel.java
View file @
db484411
...
@@ -182,4 +182,8 @@ public class VehicleModel implements Serializable {
...
@@ -182,4 +182,8 @@ public class VehicleModel implements Serializable {
@Column
(
name
=
"img_desc"
)
@Column
(
name
=
"img_desc"
)
@ApiModelProperty
(
"seo*html标签优化"
)
@ApiModelProperty
(
"seo*html标签优化"
)
private
String
imgDesc
;
private
String
imgDesc
;
@Column
(
name
=
"app_show"
)
@ApiModelProperty
(
"是否在App展示"
)
private
Integer
appShow
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleModelController.java
View file @
db484411
...
@@ -18,6 +18,7 @@ import com.xxfc.platform.vehicle.biz.VehicleCataBiz;
...
@@ -18,6 +18,7 @@ import com.xxfc.platform.vehicle.biz.VehicleCataBiz;
import
com.xxfc.platform.vehicle.biz.VehicleModelBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleModelBiz
;
import
com.xxfc.platform.vehicle.biz.VehiclePlatCataBiz
;
import
com.xxfc.platform.vehicle.biz.VehiclePlatCataBiz
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.common.RestResponse
;
import
com.xxfc.platform.vehicle.constant.ResCode.ResCode
;
import
com.xxfc.platform.vehicle.entity.VehicleCata
;
import
com.xxfc.platform.vehicle.entity.VehicleCata
;
import
com.xxfc.platform.vehicle.entity.VehicleModel
;
import
com.xxfc.platform.vehicle.entity.VehicleModel
;
import
com.xxfc.platform.vehicle.pojo.VModelDetailVO
;
import
com.xxfc.platform.vehicle.pojo.VModelDetailVO
;
...
@@ -292,7 +293,20 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
...
@@ -292,7 +293,20 @@ public class VehicleModelController extends BaseController<VehicleModelBiz, Vehi
}
}
}
}
@ApiOperation
(
"是否在App展示"
)
@PostMapping
(
value
=
"/bg/updateAppShow"
)
public
ObjectRestResponse
<
VehicleModel
>
updateAppShow
(
@RequestBody
VehicleModel
vehicleModel
)
{
if
(
vehicleModel
==
null
||
vehicleModel
.
getId
()
==
null
)
{
return
ObjectRestResponse
.
paramIsEmpty
();
}
VehicleModel
oldValue
=
vehicleModelBiz
.
selectById
(
vehicleModel
.
getId
());
if
(
oldValue
==
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResCode
.
FIND_DATA_NOT_EXIST
.
getCode
(),
ResCode
.
FIND_DATA_NOT_EXIST
.
getDesc
());
}
oldValue
.
setAppShow
(
vehicleModel
.
getAppShow
());
vehicleModelBiz
.
updateByPrimaryKeySelective
(
oldValue
);
return
ObjectRestResponse
.
succ
();
}
@ApiOperation
(
"删除"
)
@ApiOperation
(
"删除"
)
@DeleteMapping
(
value
=
"/app/{id}"
)
@DeleteMapping
(
value
=
"/app/{id}"
)
...
...
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