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
cffe6af1
Commit
cffe6af1
authored
Jun 30, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分服务页面只能开启15个编辑调整
parent
aa21ae64
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+8
-3
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
cffe6af1
...
...
@@ -97,7 +97,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
//设置人群的页面
if
(
AppletPageTypeEnum
.
needCrowdWidget
(
pageType
))
{
//如果是积分服务页面并且是保存并发布,则校验,不能超过15条
validIntegralServicePageNum
(
pageType
,
saveType
,
enterpriseId
,
appType
,
appId
);
validIntegralServicePageNum
(
page
Id
,
page
Type
,
saveType
,
enterpriseId
,
appType
,
appId
);
Long
crowdWidgetId
=
jsonObject
.
getLong
(
"crowdWidgetId"
);
record
.
setCrowdWidgetId
(
crowdWidgetId
);
...
...
@@ -417,7 +417,7 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
appletCustomPageService
.
disableFetch
(
record
.
getEnterpriseId
(),
record
.
getAppType
(),
record
.
getAppId
(),
record
.
getPageType
());
}
validIntegralServicePageNum
(
record
.
getPageType
(),
1
,
record
.
getEnterpriseId
(),
record
.
getAppType
(),
record
.
getAppId
());
validIntegralServicePageNum
(
null
,
record
.
getPageType
(),
1
,
record
.
getEnterpriseId
(),
record
.
getAppType
(),
record
.
getAppId
());
appletCustomPageService
.
updateStatus
(
pageId
,
1
);
return
ServiceResponse
.
success
(
record
.
getTitle
());
...
...
@@ -540,9 +540,14 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
return
record
;
}
private
void
validIntegralServicePageNum
(
Integer
pageType
,
Integer
saveType
,
Integer
enterpriseId
,
Integer
appType
,
String
appId
)
{
private
void
validIntegralServicePageNum
(
Integer
page
Id
,
Integer
page
Type
,
Integer
saveType
,
Integer
enterpriseId
,
Integer
appType
,
String
appId
)
{
//如果是积分服务页面并且是保存并发布,则校验,不能超过15条
if
(
pageType
==
AppletPageTypeEnum
.
INTEGRAL_SERVICE
.
getCode
()
&&
saveType
==
1
)
{
TabAppletCustomPage
record
=
exist
(
pageId
);
if
(
record
!=
null
&&
record
.
getStatus
()
==
1
)
{
//如果本身就是发布状态,则不占用名额
return
;
}
List
<
TabAppletCustomPage
>
integralServiceList
=
getPageListByAppId
(
enterpriseId
,
appType
,
appId
,
AppletPageTypeEnum
.
INTEGRAL_SERVICE
.
getCode
());
if
(
integralServiceList
!=
null
&&
integralServiceList
.
size
()
>=
15
)
{
throw
new
CommonException
(
ErrorCode
.
PARAMETER_ERROR
.
getCode
(),
"积分服务页面只能开启15个"
);
...
...
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