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
256f2579
Commit
256f2579
authored
Jul 03, 2024
by
Daichi Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#59888 同名ジャンルがまとまってしまう問題(Checkでも同様の事象発生するため併せて修正)
parent
0a201189
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ContentDao.java
+1
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CategoryContentDto.java
+2
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
+2
-1
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/data/dao/ContentDao.java
View file @
256f2579
...
@@ -220,7 +220,7 @@ public class ContentDao extends AbstractDao {
...
@@ -220,7 +220,7 @@ public class ContentDao extends AbstractDao {
}
}
// ABookCheck用
// ABookCheck用
column
=
cursor
.
getColumnIndex
(
"categ
e
ory_id"
);
column
=
cursor
.
getColumnIndex
(
"category_id"
);
if
(
column
!=
-
1
)
{
if
(
column
!=
-
1
)
{
dto
.
categoryId
=
cursor
.
getInt
(
column
);
dto
.
categoryId
=
cursor
.
getInt
(
column
);
}
}
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/dto/CategoryContentDto.java
View file @
256f2579
...
@@ -3,6 +3,8 @@ package jp.agentec.abook.abv.bl.dto;
...
@@ -3,6 +3,8 @@ package jp.agentec.abook.abv.bl.dto;
import
java.util.List
;
import
java.util.List
;
public
class
CategoryContentDto
{
public
class
CategoryContentDto
{
public
int
categoryId
;
public
String
categoryName
;
public
String
categoryName
;
public
List
<
ContentDto
>
contentDtoArray
;
public
List
<
ContentDto
>
contentDtoArray
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/logic/OperationLogic.java
View file @
256f2579
...
@@ -1601,7 +1601,7 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1601,7 +1601,7 @@ public class OperationLogic extends AbstractLogic {
CategoryContentDto
categoryContentDto
=
new
CategoryContentDto
();
CategoryContentDto
categoryContentDto
=
new
CategoryContentDto
();
for
(
ContentDto
contentDto
:
contentDtoList
)
{
for
(
ContentDto
contentDto
:
contentDtoList
)
{
if
(
contentDto
.
category
Names
.
equals
(
categoryContentDto
.
categoryName
)
)
{
if
(
contentDto
.
category
Id
==
categoryContentDto
.
categoryId
)
{
saveContentDtoArray
.
add
(
contentDto
);
saveContentDtoArray
.
add
(
contentDto
);
}
else
{
}
else
{
if
(
saveContentDtoArray
.
size
()
!=
0
)
{
if
(
saveContentDtoArray
.
size
()
!=
0
)
{
...
@@ -1610,6 +1610,7 @@ public class OperationLogic extends AbstractLogic {
...
@@ -1610,6 +1610,7 @@ public class OperationLogic extends AbstractLogic {
}
}
categoryContentDto
=
new
CategoryContentDto
();
categoryContentDto
=
new
CategoryContentDto
();
saveContentDtoArray
=
new
ArrayList
<
ContentDto
>();
saveContentDtoArray
=
new
ArrayList
<
ContentDto
>();
categoryContentDto
.
categoryId
=
contentDto
.
categoryId
;
categoryContentDto
.
categoryName
=
contentDto
.
categoryNames
;
categoryContentDto
.
categoryName
=
contentDto
.
categoryNames
;
saveContentDtoArray
.
add
(
contentDto
);
saveContentDtoArray
.
add
(
contentDto
);
}
}
...
...
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