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
3ebbc35a
Commit
3ebbc35a
authored
Jul 10, 2019
by
Jeong Gilmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#33721 絞り検索のAPIとの連携
- 絞り検索のマスタデータを受信処理の修正
parent
6e941272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
+6
-17
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/ApertureMasterDataLogic.java
View file @
3ebbc35a
...
...
@@ -38,31 +38,20 @@ public class ApertureMasterDataLogic extends AbstractLogic {
//端末機の日付
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
);
//サーバーデータの日付
String
lastEditDateString
=
masterDataJson
.
lastEditDate
;
if
(
lastFetchDateString
==
null
){
//最初のマスタデータダウンロードの場合
//サーバから取得した情報がある場合、端末に保存
if
(
lastEditDateString
!=
null
)
{
//サーバーから取得した日付をキャッシュメモリに保存
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
if
(
masterDataJson
.
apertureData
!=
null
&&
masterDataJson
.
apertureData
.
keys
().
hasNext
())
{
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
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
())
{
createApertureMasterDataJson
(
masterDataJson
.
apertureData
);
// updateApertureMasterDataJson(masterDataJson.apertureData);
cache
.
setTempApertureMasterDataFetchDate
(
lastEditDateString
);
}
// updateApertureMasterDataJson(masterDataJson.apertureData);
}
}
}
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