Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
79086810
Commit
79086810
authored
Jul 10, 2019
by
Kim Jinsung
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'features/1.0.500_#33721' into 'feature/1.1.0'
#33721 絞り検索のAPIとの連携 See merge request
!19
parents
6e941272
3ebbc35a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
+4
-15
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
View file @
79086810
...
@@ -38,31 +38,20 @@ public class ApertureMasterDataLogic extends AbstractLogic {
...
@@ -38,31 +38,20 @@ public class ApertureMasterDataLogic extends AbstractLogic {
//端末機の日付
//端末機の日付
String
lastFetchDateString
=
cache
.
getTempApertureMasterDataFetchDate
();
String
lastFetchDateString
=
cache
.
getTempApertureMasterDataFetchDate
();
GetApertureMasterDataParameters
param
=
new
GetApertureMasterDataParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDateString
);
//サーバーから絞り検索マスタデータを取得
//サーバーから絞り検索マスタデータを取得
GetApertureMasterDataParameters
param
=
new
GetApertureMasterDataParameters
(
cache
.
getMemberInfo
().
sid
,
lastFetchDateString
);
ApertureMasterDataJSON
masterDataJson
=
AcmsClient
.
getInstance
(
cache
.
getUrlPath
(),
networkAdapter
).
getApertureMasterData
(
param
);
ApertureMasterDataJSON
masterDataJson
=
AcmsClient
.
getInstance
(
cache
.
getUrlPath
(),
networkAdapter
).
getApertureMasterData
(
param
);
//サーバーデータの日付
//サーバーデータの日付
String
lastEditDateString
=
masterDataJson
.
lastEditDate
;
String
lastEditDateString
=
masterDataJson
.
lastEditDate
;
if
(
lastFetchDateString
==
null
){
//サーバから取得した情報がある場合、端末に保存
//最初のマスタデータダウンロードの場合
if
(
lastEditDateString
!=
null
)
{
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
//サーバーから取得した日付をキャッシュメモリに保存
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
}
}
else
if
(
lastEditDateString
!=
null
){
//マスタデータがある場合、サーバーから修正事項があるセットだけ上書きする
Date
lastFetchDate
=
DateTimeUtil
.
toDate
(
lastFetchDateString
,
"UTC"
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
Date
lastEditDate
=
DateTimeUtil
.
toDate
(
lastEditDateString
,
"UTC"
,
DateTimeFormat
.
yyyyMMddHHmmss_hyphen
);
if
(
lastEditDate
!=
null
&&
lastEditDate
.
after
(
lastFetchDate
))
{
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
// updateApertureMasterDataJson(masterDataJson.apertureData);
// updateApertureMasterDataJson(masterDataJson.apertureData);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
}
}
}
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
...
...
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