Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-enterprise
Commits
72ad8d77
Commit
72ad8d77
authored
Mar 24, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
卡券组件:卡券组件列表接口
parent
6e4c4ebe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
CustomPageController.java
...m/gic/enterprise/web/controller/CustomPageController.java
+18
-0
ShelfCouponVO.java
...rc/main/java/com/gic/enterprise/web/vo/ShelfCouponVO.java
+39
-0
dubbo-gic-platform-enterprise-web.xml
.../src/main/resources/dubbo-gic-platform-enterprise-web.xml
+2
-0
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/CustomPageController.java
View file @
72ad8d77
...
...
@@ -7,6 +7,10 @@ import java.util.Map;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.download.utils.OperationResultUtils
;
import
com.gic.enterprise.error.ErrorCode
;
import
com.gic.enterprise.web.vo.ShelfCouponVO
;
import
com.gic.marketing.api.service.coupon.CouponShelfApiService
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -30,6 +34,8 @@ public class CustomPageController {
@Autowired
private
AppletCustomPageApiService
appletCustomPageApiService
;
@Autowired
private
CouponShelfApiService
couponShelfApiService
;
@RequestMapping
(
"/save-page"
)
public
RestResponse
savePage
(
String
param
,
Integer
pageId
,
Integer
saveType
,
Integer
appType
,
String
appId
)
{
...
...
@@ -75,6 +81,18 @@ public class CustomPageController {
return
OperationResultUtils
.
operationResult
(
result
,
"删除装修页面"
,
OperationResultUtils
.
getOperationObject
(
result
));
}
@RequestMapping
(
"/list-shelf-coupon"
)
public
RestResponse
listShelfCoupon
(
String
memberCardId
)
{
if
(
StringUtils
.
isBlank
(
memberCardId
))
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"会员卡ID不能为空"
);
}
if
(!
StringUtils
.
isNumeric
(
memberCardId
))
{
return
RestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"会员卡ID值非法"
);
}
return
ResultControllerUtils
.
commonResult
(
couponShelfApiService
.
listShelf
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
(),
Long
.
parseLong
(
memberCardId
)),
ShelfCouponVO
.
class
);
}
/**
* 数据资产类型
* @Title: listDataIcon
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/vo/ShelfCouponVO.java
0 → 100644
View file @
72ad8d77
package
com
.
gic
.
enterprise
.
web
.
vo
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
java.io.Serializable
;
/**
* 卡券组件,卡券组件计划列表
* @ClassName: ShelfCouponVO
* @Description:
* @author guojuxing
* @date 2020/3/24 2:59 PM
*/
public
class
ShelfCouponVO
implements
Serializable
{
private
static
final
long
serialVersionUID
=
3617935422350069220L
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
couponShelfId
;
/**展架名称*/
private
String
title
;
public
Long
getCouponShelfId
()
{
return
couponShelfId
;
}
public
ShelfCouponVO
setCouponShelfId
(
Long
couponShelfId
)
{
this
.
couponShelfId
=
couponShelfId
;
return
this
;
}
public
String
getTitle
()
{
return
title
;
}
public
ShelfCouponVO
setTitle
(
String
title
)
{
this
.
title
=
title
;
return
this
;
}
}
gic-platform-enterprise-web/src/main/resources/dubbo-gic-platform-enterprise-web.xml
View file @
72ad8d77
...
...
@@ -111,4 +111,6 @@
<dubbo:reference
interface=
"com.gic.open.api.service.market.MarketUserApiService"
id=
"marketUserApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.enterprise.service.ProjectItemApiService"
id=
"projectItemApiService"
timeout=
"6000"
/>
<dubbo:reference
interface=
"com.gic.marketing.api.service.coupon.CouponShelfApiService"
id=
"couponShelfApiService"
timeout=
"6000"
/>
</beans>
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