Commit fa725f7e by Kim Jinsung

Merge branch 'contract/sato/1.0.600_59888' into 'contract/sato/1.0.600'

#59888 typoによるcategory_idが保存できない問題の修正とジャンル別に分ける処理をcategoryId基準で分けるように変更

See merge request !325
parents 40a29f11 f2c1b719
......@@ -220,7 +220,7 @@ public class ContentDao extends AbstractDao {
}
// ABookCheck用
column = cursor.getColumnIndex("categeory_id");
column = cursor.getColumnIndex("category_id");
if (column != -1) {
dto.categoryId = cursor.getInt(column);
}
......
......@@ -3,6 +3,8 @@ package jp.agentec.abook.abv.bl.dto;
import java.util.List;
public class CategoryContentDto {
public int categoryId;
public String categoryName;
public List<ContentDto> contentDtoArray;
}
......@@ -1323,7 +1323,7 @@ public class OperationLogic extends AbstractLogic {
CategoryContentDto categoryContentDto = new CategoryContentDto();
for (ContentDto contentDto : contentDtoList) {
if (contentDto.categoryNames.equals(categoryContentDto.categoryName)) {
if (contentDto.categoryId == categoryContentDto.categoryId) {
saveContentDtoArray.add(contentDto);
} else {
if (saveContentDtoArray.size() != 0) {
......@@ -1332,6 +1332,7 @@ public class OperationLogic extends AbstractLogic {
}
categoryContentDto = new CategoryContentDto();
saveContentDtoArray = new ArrayList<ContentDto>();
categoryContentDto.categoryId = contentDto.categoryId;
categoryContentDto.categoryName = contentDto.categoryNames;
saveContentDtoArray.add(contentDto);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment