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
27aa4ceb
Commit
27aa4ceb
authored
Jun 10, 2019
by
youjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
76cd062d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
TourBaseController.java
...ava/com/xxfc/platform/tour/common/TourBaseController.java
+8
-8
TourGoodSpeController.java
...va/com/xxfc/platform/tour/rest/TourGoodSpeController.java
+14
-14
No files found.
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/common/TourBaseController.java
View file @
27aa4ceb
...
@@ -12,14 +12,14 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -12,14 +12,14 @@ import org.springframework.beans.factory.annotation.Autowired;
public
class
TourBaseController
<
Biz
extends
BaseBiz
>
extends
CommonBaseController
{
public
class
TourBaseController
<
Biz
extends
BaseBiz
>
extends
CommonBaseController
{
//
@Autowired
@Autowired
//
protected UserFeign userFeign;
protected
UserFeign
userFeign
;
//
@Autowired
@Autowired
//
protected UserAuthConfig userAuthConfig;
protected
UserAuthConfig
userAuthConfig
;
//
//
public AppUserDTO getUserInfo(){
public
AppUserDTO
getUserInfo
(){
//
return userFeign.userDetailByToken(userAuthConfig.getToken(request)).getData();
return
userFeign
.
userDetailByToken
(
userAuthConfig
.
getToken
(
request
)).
getData
();
//
}
}
}
}
xx-tour/xx-tour-server/src/main/java/com/xxfc/platform/tour/rest/TourGoodSpeController.java
View file @
27aa4ceb
...
@@ -14,19 +14,19 @@ import org.springframework.web.bind.annotation.*;
...
@@ -14,19 +14,19 @@ import org.springframework.web.bind.annotation.*;
public
class
TourGoodSpeController
extends
TourBaseController
<
TourGoodSpeBiz
>
{
public
class
TourGoodSpeController
extends
TourBaseController
<
TourGoodSpeBiz
>
{
//
//
//获取价格
//获取价格
//
@RequestMapping(value = "/user/prices", method = RequestMethod.POST)
@RequestMapping
(
value
=
"/user/prices"
,
method
=
RequestMethod
.
POST
)
//
public ObjectRestResponse<TourSpePriceVo> prices(@RequestBody TourSpePriceDTO priceDto) {
public
ObjectRestResponse
<
TourSpePriceVo
>
prices
(
@RequestBody
TourSpePriceDTO
priceDto
)
{
//
return baseBiz.getPricesByuserid(priceDto);
return
baseBiz
.
getPricesByuserid
(
priceDto
);
//
}
}
//
//
//减库存
//减库存
//
@RequestMapping(value = "/stock", method = RequestMethod.GET)
@RequestMapping
(
value
=
"/stock"
,
method
=
RequestMethod
.
GET
)
//
public ObjectRestResponse<TourSpePriceVo> stock(
public
ObjectRestResponse
<
TourSpePriceVo
>
stock
(
//
@RequestParam(value = "speId",defaultValue = "0")Integer speId,
@RequestParam
(
value
=
"speId"
,
defaultValue
=
"0"
)
Integer
speId
,
//
@RequestParam(value = "number",defaultValue = "0") Integer number){
@RequestParam
(
value
=
"number"
,
defaultValue
=
"0"
)
Integer
number
){
//
return baseBiz.cutStock(speId,number);
return
baseBiz
.
cutStock
(
speId
,
number
);
//
}
}
}
}
\ No newline at end of file
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