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
40ad23cd
Commit
40ad23cd
authored
Jul 02, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分服务页面一共不能超过15个
parent
5868a92a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+5
-5
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
40ad23cd
...
...
@@ -96,9 +96,6 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
//设置人群的页面
if
(
AppletPageTypeEnum
.
needCrowdWidget
(
pageType
))
{
//如果是积分服务页面并且是保存并发布,则校验,不能超过15条
validIntegralServicePageNum
(
pageId
,
pageType
,
saveType
,
enterpriseId
,
appType
,
appId
);
Long
crowdWidgetId
=
jsonObject
.
getLong
(
"crowdWidgetId"
);
record
.
setCrowdWidgetId
(
crowdWidgetId
);
boolean
isAllCrowd
=
isAllCrowd
(
crowdWidgetId
,
enterpriseId
);
...
...
@@ -132,6 +129,11 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
throw
new
CommonException
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"页面超过5个"
);
}
}
if
(
AppletPageTypeEnum
.
INTEGRAL_SERVICE
.
getCode
()
==
pageType
)
{
if
(
isAddOperation
&&
count
>=
15
)
{
throw
new
CommonException
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"页面超过15个"
);
}
}
//如果是有默认数据的类型(会员中心),第一条记录,即使saveType = 2,也自动变成1
if
(
AppletPageTypeEnum
.
hasDefault
(
pageType
))
{
...
...
@@ -427,8 +429,6 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
appletCustomPageService
.
disableFetch
(
record
.
getEnterpriseId
(),
record
.
getAppType
(),
record
.
getAppId
(),
record
.
getPageType
());
}
validIntegralServicePageNum
(
null
,
record
.
getPageType
(),
1
,
record
.
getEnterpriseId
(),
record
.
getAppType
(),
record
.
getAppId
());
appletCustomPageService
.
updateStatus
(
pageId
,
1
);
return
ServiceResponse
.
success
(
record
.
getTitle
());
}
...
...
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