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
fb4291c3
Commit
fb4291c3
authored
Jul 27, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
5f09a6cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
AppletCustomPageApiServiceImpl.java
...se/service/outer/impl/AppletCustomPageApiServiceImpl.java
+11
-6
UnionEnterpriseAuthApiServiceImpl.java
...e/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
+1
-1
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/AppletCustomPageApiServiceImpl.java
View file @
fb4291c3
...
@@ -147,12 +147,8 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
...
@@ -147,12 +147,8 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
appletCustomPageService
.
edit
(
record
);
appletCustomPageService
.
edit
(
record
);
}
}
}
}
//顶部导航
if
(
pageType
==
AppletPageTypeEnum
.
CUSTOM
.
getCode
())
{
guideTop
(
pageType
,
jsonObject
,
enterpriseId
,
appId
,
pageId
);
String
guideTopColor
=
jsonObject
.
getString
(
"guideTopColor"
);
Integer
titleColor
=
jsonObject
.
getInteger
(
"titleColor"
);
customGuideTopApiService
.
saveCustomGuideTop
(
guideTopColor
,
titleColor
,
enterpriseId
,
appId
,
pageId
);
}
//保存组件表数据
//保存组件表数据
List
<
TabAppletPageComponent
>
componentList
=
new
ArrayList
<>();
List
<
TabAppletPageComponent
>
componentList
=
new
ArrayList
<>();
//组件key存储
//组件key存储
...
@@ -185,6 +181,15 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
...
@@ -185,6 +181,15 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
return
ServiceResponse
.
success
(
pageId
);
return
ServiceResponse
.
success
(
pageId
);
}
}
private
void
guideTop
(
Integer
pageType
,
JSONObject
jsonObject
,
Integer
enterpriseId
,
String
appId
,
Integer
pageId
)
{
//顶部导航
if
(
pageType
==
AppletPageTypeEnum
.
CUSTOM
.
getCode
())
{
String
guideTopColor
=
jsonObject
.
getString
(
"guideTopColor"
);
Integer
titleColor
=
jsonObject
.
getInteger
(
"titleColor"
);
customGuideTopApiService
.
saveCustomGuideTop
(
guideTopColor
,
titleColor
,
enterpriseId
,
appId
,
pageId
);
}
}
private
void
validPageStatus
(
Integer
pageId
,
Integer
pageType
,
Integer
pageCount
,
Integer
saveType
,
private
void
validPageStatus
(
Integer
pageId
,
Integer
pageType
,
Integer
pageCount
,
Integer
saveType
,
TabAppletCustomPage
record
,
TabAppletCustomPage
record
,
Integer
enterpriseId
,
Integer
appType
,
String
appId
)
{
Integer
enterpriseId
,
Integer
appType
,
String
appId
)
{
...
...
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/union/UnionEnterpriseAuthApiServiceImpl.java
View file @
fb4291c3
...
@@ -605,7 +605,7 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
...
@@ -605,7 +605,7 @@ public class UnionEnterpriseAuthApiServiceImpl implements UnionEnterpriseAuthApi
startDateTime
=
dateFormat
.
parse
(
dateFormat
.
format
(
dateOne
)).
getTime
();
startDateTime
=
dateFormat
.
parse
(
dateFormat
.
format
(
dateOne
)).
getTime
();
endDateTime
=
dateFormat
.
parse
(
dateFormat
.
format
(
dateTwo
)).
getTime
();
endDateTime
=
dateFormat
.
parse
(
dateFormat
.
format
(
dateTwo
)).
getTime
();
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
(
);
LOGGER
.
warn
(
"通过时间秒毫秒数判断两个时间的间隔错误:{}"
,
e
.
getMessage
(),
e
);
}
}
return
(
int
)
((
endDateTime
-
startDateTime
)
/
(
1000
*
3600
*
24
));
return
(
int
)
((
endDateTime
-
startDateTime
)
/
(
1000
*
3600
*
24
));
}
}
...
...
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