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
1d5974c9
Commit
1d5974c9
authored
Nov 30, 2020
by
hezhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
7bf94718
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
7 deletions
+27
-7
LogAspect.java
...rc/main/java/com/xxfc/platform/vehicle/aop/LogAspect.java
+6
-4
SysLogBiz.java
...rc/main/java/com/xxfc/platform/vehicle/biz/SysLogBiz.java
+14
-0
VehicleApplyBiz.java
...n/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
+0
-2
AdminVehicleApplyController.java
...tform/vehicle/rest/admin/AdminVehicleApplyController.java
+2
-0
AdminVehicleController.java
...c/platform/vehicle/rest/admin/AdminVehicleController.java
+5
-1
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/aop/LogAspect.java
View file @
1d5974c9
...
...
@@ -74,17 +74,19 @@ public class LogAspect {
Integer
state
=
0
;
for
(
int
i
=
0
;
i
<
args
.
length
;
i
++)
{
params
+=
" "
+
paramNames
[
i
]
+
": "
+
args
[
i
];
if
(
paramNames
[
i
].
contain
s
(
"vehicle"
)){
if
(
paramNames
[
i
].
equal
s
(
"vehicle"
)){
Vehicle
vehicle
=
(
Vehicle
)
args
[
i
];
vehicleId
=
vehicle
.
getId
();
state
=
vehicle
.
getState
();
}
else
if
(
paramNames
[
i
].
contain
s
(
"vehicleApply"
)){
}
else
if
(
paramNames
[
i
].
equal
s
(
"vehicleApply"
)){
VehicleApply
vehicleApply
=
(
VehicleApply
)
args
[
i
];
vehicleId
=
vehicleApply
.
getVehicleId
();
state
=
1
;
state
=
vehicleApply
.
getApplyStatus
()
==
1
?
1
:
0
;
}
}
if
(
state
>
0
){
return
;
}
sysLog
.
setParams
(
params
);
sysLog
.
setVehicleId
(
vehicleId
);
sysLog
.
setOperateType
(
state
);
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/SysLogBiz.java
View file @
1d5974c9
...
...
@@ -44,6 +44,20 @@ public class SysLogBiz extends BaseBiz<SysLogMapper, SysLog> {
}
public
void
vehicleLog
(
Vehicle
vehicle
){
try
{
SysLog
sysLog
=
new
SysLog
();
sysLog
.
setOperateType
(
vehicle
.
getState
());
sysLog
.
setVehicleId
(
vehicle
.
getId
());
sysLog
.
setType
(
3
);
sysLog
.
setOperation
(
"特惠租车上下架商品"
);
addLog
(
sysLog
);
}
catch
(
Exception
e
){
e
.
printStackTrace
();
}
}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleApplyBiz.java
View file @
1d5974c9
...
...
@@ -160,8 +160,6 @@ public class VehicleApplyBiz extends BaseBiz<VehicleApplyMapper, VehicleApply>{
sendSms
(
vehicleApply
);
}
@GlobalLog
(
type
=
2
,
value
=
"运营平台审核自动上架"
)
public
void
updVehicleApply
(
VehicleApply
vehicleApply
){
VehicleApply
vehicleApply1
=
new
VehicleApply
();
vehicleApply1
.
setId
(
vehicleApply
.
getId
());
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/AdminVehicleApplyController.java
View file @
1d5974c9
...
...
@@ -5,6 +5,7 @@ import com.github.wxiaoqi.security.admin.feign.UserFeign;
import
com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.github.wxiaoqi.security.common.rest.BaseController
;
import
com.xxfc.platform.vehicle.aop.GlobalLog
;
import
com.xxfc.platform.vehicle.biz.VehicleApplyBiz
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
import
com.xxfc.platform.vehicle.entity.VehicleApply
;
...
...
@@ -72,6 +73,7 @@ public class AdminVehicleApplyController extends BaseController<VehicleApplyBiz,
@PostMapping
(
"audit"
)
@ApiModelProperty
(
"商家入驻审核"
)
@GlobalLog
(
type
=
2
,
value
=
"运营平台审核自动上架"
)
public
ObjectRestResponse
audit
(
@RequestBody
VehicleApply
vehicleApply
)
{
baseBiz
.
audit
(
vehicleApply
);
return
ObjectRestResponse
.
succ
();
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/admin/AdminVehicleController.java
View file @
1d5974c9
...
...
@@ -6,6 +6,7 @@ import com.github.wxiaoqi.security.admin.feign.rest.UserRestInterface;
import
com.github.wxiaoqi.security.auth.client.annotation.IgnoreUserToken
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
com.xxfc.platform.vehicle.aop.GlobalLog
;
import
com.xxfc.platform.vehicle.biz.SysLogBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleBiz
;
import
com.xxfc.platform.vehicle.biz.VehicleExtensionBiz
;
import
com.xxfc.platform.vehicle.entity.Vehicle
;
...
...
@@ -40,6 +41,9 @@ public class AdminVehicleController extends BaseController<VehicleBiz>{
@Autowired
VehicleExtensionBiz
extensionBiz
;
@Autowired
SysLogBiz
sysLogBiz
;
@Override
public
UserFeign
getUserFeign
()
{
...
...
@@ -74,9 +78,9 @@ public class AdminVehicleController extends BaseController<VehicleBiz>{
@PostMapping
(
"/unauth/app/updVehicleFeign"
)
@IgnoreUserToken
@ApiModelProperty
(
"更新商品信息Feign"
)
@GlobalLog
(
type
=
3
,
value
=
"特惠租车上下架商品"
)
public
ObjectRestResponse
updVehicleFeign
(
@RequestBody
Vehicle
vehicle
)
{
baseBiz
.
updateSelectiveById
(
vehicle
);
sysLogBiz
.
vehicleLog
(
vehicle
);
return
ObjectRestResponse
.
succ
();
}
...
...
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