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
c50ce5c4
Commit
c50ce5c4
authored
Jul 23, 2019
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
30ec26a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
VehicleApplication.java
...in/java/com/xxfc/platform/vehicle/VehicleApplication.java
+3
-0
VehicleWarningMsgBiz.java
...a/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
+1
-1
BaseController.java
...java/com/xxfc/platform/vehicle/common/BaseController.java
+0
-8
VehicleWarningMsgController.java
...fc/platform/vehicle/rest/VehicleWarningMsgController.java
+4
-0
No files found.
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/VehicleApplication.java
View file @
c50ce5c4
...
@@ -11,6 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -11,6 +11,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication
(
scanBasePackages
=
{
@SpringBootApplication
(
scanBasePackages
=
{
"com.xxfc.platform"
,
"com.xxfc.platform"
,
// "com.xxfc.platform.vehicle",
// "com.xxfc.platform.vehicle.biz",
// "com.xxfc.platform.vehicle.rest",
"com.github.wxiaoqi.security.common.handler"
,
"com.github.wxiaoqi.security.common.handler"
,
"com.github.wxiaoqi.security.common.log"
"com.github.wxiaoqi.security.common.log"
})
})
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/VehicleWarningMsgBiz.java
View file @
c50ce5c4
...
@@ -39,8 +39,8 @@ import java.util.Map;
...
@@ -39,8 +39,8 @@ import java.util.Map;
import
java.util.Set
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.concurrent.TimeUnit
;
@Service
@Slf4j
@Slf4j
@Service
public
class
VehicleWarningMsgBiz
extends
BaseBiz
<
VehicleWarningMsgMapper
,
VehicleWarningMsg
>
{
public
class
VehicleWarningMsgBiz
extends
BaseBiz
<
VehicleWarningMsgMapper
,
VehicleWarningMsg
>
{
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/common/BaseController.java
View file @
c50ce5c4
package
com
.
xxfc
.
platform
.
vehicle
.
common
;
package
com
.
xxfc
.
platform
.
vehicle
.
common
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.biz.BaseBiz
;
import
com.github.wxiaoqi.security.common.msg.ObjectRestResponse
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
@Slf4j
@Slf4j
public
class
BaseController
<
Biz
extends
BaseBiz
>
{
public
class
BaseController
<
Biz
extends
BaseBiz
>
{
@Autowired
@Autowired
protected
HttpServletRequest
request
;
protected
HttpServletRequest
request
;
@Autowired
@Autowired
@Lazy
protected
Biz
baseBiz
;
protected
Biz
baseBiz
;
}
}
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/rest/VehicleWarningMsgController.java
View file @
c50ce5c4
...
@@ -13,6 +13,7 @@ import com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo;
...
@@ -13,6 +13,7 @@ import com.xxfc.platform.vehicle.pojo.AddVehicleWarningMsgVo;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.github.wxiaoqi.security.common.vo.PageDataVO
;
import
com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo
;
import
com.xxfc.platform.vehicle.pojo.QueryVehicleWarningMsgVo
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -24,6 +25,9 @@ import java.util.Map;
...
@@ -24,6 +25,9 @@ import java.util.Map;
@Slf4j
@Slf4j
public
class
VehicleWarningMsgController
extends
BaseController
<
VehicleWarningMsgBiz
>
{
public
class
VehicleWarningMsgController
extends
BaseController
<
VehicleWarningMsgBiz
>
{
// @Autowired
// VehicleWarningMsgBiz vehicleWarningMsgBiz;
@RequestMapping
(
value
=
"{id}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"{id}"
,
method
=
RequestMethod
.
GET
)
private
RestResponse
<
VehicleWarningMsg
>
get
(
@PathVariable
Integer
id
)
throws
Exception
{
private
RestResponse
<
VehicleWarningMsg
>
get
(
@PathVariable
Integer
id
)
throws
Exception
{
return
RestResponse
.
codeAndData
(
RestResponse
.
SUC_CODE
,
baseBiz
.
selectById
(
id
));
return
RestResponse
.
codeAndData
(
RestResponse
.
SUC_CODE
,
baseBiz
.
selectById
(
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