Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
service_mall
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
冯秋丽
service_mall
Commits
170afe91
Commit
170afe91
authored
Dec 09, 2020
by
冯秋丽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
post更改为get
parent
480ddf1a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
29 deletions
+19
-29
PlanMicro.java
src/main/java/com/servicemall/loyalty/micro/PlanMicro.java
+5
-7
SelectedMicro.java
...ain/java/com/servicemall/loyalty/micro/SelectedMicro.java
+5
-7
CouponMicro.java
src/main/java/com/servicemall/right/micro/CouponMicro.java
+7
-13
SliderMicro.java
src/main/java/com/servicemall/website/micro/SliderMicro.java
+2
-2
No files found.
src/main/java/com/servicemall/loyalty/micro/PlanMicro.java
View file @
170afe91
...
...
@@ -6,8 +6,6 @@ import java.util.HashMap;
import
javax.servlet.http.HttpServletRequest
;
import
com.servicemall.right.data.Coupon
;
import
com.servicemall.right.service.CouponService
;
import
io.swagger.annotations.*
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -339,17 +337,17 @@ public final class PlanMicro {
*
* @return
*/
@
Pos
tMapping
(
"/queryloyaltyplanlist"
)
@ApiOperation
(
value
=
"获取计划列表"
,
notes
=
"车龄不是必填其他都是必填"
,
httpMethod
=
"
POS
T"
)
@
Ge
tMapping
(
"/queryloyaltyplanlist"
)
@ApiOperation
(
value
=
"获取计划列表"
,
notes
=
"车龄不是必填其他都是必填"
,
httpMethod
=
"
GE
T"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"dms_code"
,
value
=
"经销商code"
,
dataType
=
"string"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"baumuster"
,
value
=
"车辆baumuster"
,
dataType
=
"string"
,
required
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"carAge"
,
value
=
"车龄"
,
dataType
=
"string"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"int"
,
required
=
tru
e
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"int"
,
required
=
tru
e
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"int"
,
required
=
fals
e
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"int"
,
required
=
fals
e
)
})
@ResponseBody
public
ResponseBase
list
(
String
baumuster
,
String
dms_code
,
String
carAge
,
Integer
pageNo
,
Integer
pageSize
)
{
public
ResponseBase
list
(
String
baumuster
,
String
dms_code
,
String
carAge
,
@RequestParam
(
defaultValue
=
"1"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
defaultValue
=
"10"
,
required
=
false
)
Integer
pageSize
)
{
// 分页数据
Pagination
pagination
=
new
Pagination
();
...
...
src/main/java/com/servicemall/loyalty/micro/SelectedMicro.java
View file @
170afe91
...
...
@@ -35,15 +35,13 @@ public class SelectedMicro {
*
* @return 返回结果记录,并转化为相应的POJO对象列表
*/
@
Pos
tMapping
(
"/selectedlist"
)
@ApiOperation
(
value
=
"获取精选列表"
,
notes
=
"精选包含计划/活动/轮胎等"
,
httpMethod
=
"
POS
T"
)
@
Ge
tMapping
(
"/selectedlist"
)
@ApiOperation
(
value
=
"获取精选列表"
,
notes
=
"精选包含计划/活动/轮胎等"
,
httpMethod
=
"
GE
T"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"
Integer
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"
Integer
"
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"
int
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"
int
"
)
})
public
ResponseBase
list
(
Integer
pageNo
,
Integer
pageSize
)
{
if
(
pageNo
==
null
)
pageNo
=
1
;
if
(
pageSize
==
null
)
pageSize
=
10
;
public
ResponseBase
list
(
@RequestParam
(
defaultValue
=
"1"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
defaultValue
=
"10"
,
required
=
false
)
Integer
pageSize
)
{
// 分页数据
Pagination
pagination
=
new
Pagination
();
...
...
src/main/java/com/servicemall/right/micro/CouponMicro.java
View file @
170afe91
...
...
@@ -9,11 +9,7 @@ import javax.servlet.http.HttpServletRequest;
import
com.servicemall.loyalty.data.Selected
;
import
com.servicemall.loyalty.service.SeletedService
;
import
io.swagger.annotations.*
;
import
org.springframework.web.bind.annotation.CrossOrigin
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.*
;
import
springfox.documentation.annotations.ApiIgnore
;
import
team.bangbang.common.data.Pagination
;
...
...
@@ -334,16 +330,14 @@ public final class CouponMicro {
*
* @return
*/
@
Pos
tMapping
(
"/querycouponlist"
)
@ApiOperation
(
value
=
"获取优惠券列表"
,
notes
=
"优惠券列表"
,
httpMethod
=
"
POS
T"
)
@
Ge
tMapping
(
"/querycouponlist"
)
@ApiOperation
(
value
=
"获取优惠券列表"
,
notes
=
"优惠券列表"
,
httpMethod
=
"
GE
T"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"dms_code"
,
value
=
"经销商code"
,
dataType
=
"string"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"
Integer"
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"
Integer"
)
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"dms_code"
,
value
=
"经销商code"
,
dataType
=
"string"
,
required
=
false
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageNo"
,
value
=
"分页参数 - 页号,默认为1"
,
dataType
=
"
int"
,
required
=
false
),
@ApiImplicitParam
(
paramType
=
"query"
,
name
=
"pageSize"
,
value
=
"分页参数 - 每页最大记录数量,默认为10"
,
dataType
=
"
int"
,
required
=
false
)
})
public
ResponseBase
list
(
String
dms_code
,
Integer
pageNo
,
Integer
pageSize
)
{
if
(
pageNo
==
null
)
pageNo
=
1
;
if
(
pageSize
==
null
)
pageSize
=
10
;
public
ResponseBase
list
(
String
dms_code
,
@RequestParam
(
defaultValue
=
"1"
,
required
=
false
)
Integer
pageNo
,
@RequestParam
(
defaultValue
=
"10"
,
required
=
false
)
Integer
pageSize
)
{
// 分页数据
Pagination
pagination
=
new
Pagination
();
...
...
src/main/java/com/servicemall/website/micro/SliderMicro.java
View file @
170afe91
...
...
@@ -48,8 +48,8 @@ public final class SliderMicro {
*
* @return 返回结果记录,并转化为相应的POJO对象列表
*/
@ApiOperation
(
value
=
"轮播图"
,
notes
=
"首页轮播图"
,
httpMethod
=
"
POS
T"
)
@
Pos
tMapping
(
"/slidelist"
)
@ApiOperation
(
value
=
"轮播图"
,
notes
=
"首页轮播图"
,
httpMethod
=
"
GE
T"
)
@
Ge
tMapping
(
"/slidelist"
)
@ResponseBody
public
ResponseBase
slidelist
()
{
DataResponse
<
Map
<
String
,
Object
>>
result
=
new
DataResponse
<
Map
<
String
,
Object
>>();
...
...
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