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
ad47ba56
Commit
ad47ba56
authored
Sep 27, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
品牌
parent
1cd331d9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
BaseController.java
...m/github/wxiaoqi/security/common/rest/BaseController.java
+19
-1
VehicleBrand.java
...n/java/com/xxfc/platform/vehicle/entity/VehicleBrand.java
+0
-7
VehicleBrandMapper.xml
...e-server/src/main/resources/mapper/VehicleBrandMapper.xml
+0
-1
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/rest/BaseController.java
View file @
ad47ba56
...
...
@@ -12,6 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.*
;
import
javax.servlet.http.HttpServletRequest
;
import
java.lang.reflect.Field
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -56,6 +57,14 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
return
new
ObjectRestResponse
<
Entity
>();
}
@ApiOperation
(
"修改"
)
@RequestMapping
(
value
=
"/"
,
method
=
RequestMethod
.
PUT
)
@ResponseBody
public
ObjectRestResponse
<
Entity
>
update2
(
@RequestBody
Entity
entity
)
throws
Exception
{
baseBiz
.
updateSelectiveById
(
entity
);
return
new
ObjectRestResponse
<
Entity
>();
}
@ApiOperation
(
"删除"
)
@RequestMapping
(
value
=
"/{id}"
,
method
=
RequestMethod
.
DELETE
)
@ResponseBody
...
...
@@ -101,7 +110,16 @@ public class BaseController<Biz extends BaseBiz,Entity> extends CommonBaseContro
@RequestMapping
(
value
=
"/del"
,
method
=
RequestMethod
.
DELETE
)
@ResponseBody
public
ObjectRestResponse
del
(
Entity
entity
){
Field
field
=
ReflectionUtils
.
getAccessibleField
(
entity
,
"isDel"
);
Field
field2
=
ReflectionUtils
.
getAccessibleField
(
entity
,
"delete"
);
if
(
null
!=
field
)
{
ReflectionUtils
.
setFieldValue
(
entity
,
"isDel"
,
1
);
}
if
(
null
!=
field2
)
{
ReflectionUtils
.
setFieldValue
(
entity
,
"delete"
,
1
);
}
baseBiz
.
updateSelectiveById
(
entity
);
return
ObjectRestResponse
.
succ
();
}
...
...
xx-vehicle/xx-vehicle-api/src/main/java/com/xxfc/platform/vehicle/entity/VehicleBrand.java
View file @
ad47ba56
...
...
@@ -48,13 +48,6 @@ public class VehicleBrand implements Serializable {
@ApiModelProperty
(
value
=
"品牌英文名称"
)
private
String
enName
;
/**
* 品牌首字母
*/
@Column
(
name
=
"index"
)
@ApiModelProperty
(
value
=
"品牌首字母"
)
private
String
index
;
/**
* 品牌logo
*/
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleBrandMapper.xml
View file @
ad47ba56
...
...
@@ -9,7 +9,6 @@
<result
property=
"code"
column=
"code"
/>
<result
property=
"cnName"
column=
"cn_name"
/>
<result
property=
"enName"
column=
"en_name"
/>
<result
property=
"index"
column=
"index"
/>
<result
property=
"logo"
column=
"logo"
/>
<result
property=
"banner"
column=
"banner"
/>
<result
property=
"story"
column=
"story"
/>
...
...
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