용어집 수정 BlobUtil 추ㅏㄱ
This commit is contained in:
parent
231b763f7c
commit
17552d0867
@ -23,6 +23,7 @@ import org.springframework.stereotype.Service;
|
||||
import io.company.localhost.common.dto.MapDto;
|
||||
import io.company.localhost.mapper.commoncodMapper;
|
||||
import io.company.localhost.mapper.worddictyMapper;
|
||||
import io.company.localhost.utils.BlobUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
|
||||
@Service
|
||||
@ -32,9 +33,14 @@ public class worddictyService {
|
||||
private final worddictyMapper worddictymapper;
|
||||
private final commoncodMapper commoncodmapper;
|
||||
|
||||
|
||||
public List<MapDto> getWordList(MapDto map) {
|
||||
List<MapDto> wordList = worddictymapper.getWordList(map);
|
||||
for (MapDto word : wordList) {
|
||||
Object content = word.get("WRDDICCON");
|
||||
// BlobUtil.procBlobToString으로 content 변환
|
||||
String contentString = BlobUtil.procBlobToString(content);
|
||||
word.put("WRDDICCON", contentString);
|
||||
}
|
||||
List<MapDto> processedList = new ArrayList<>();
|
||||
|
||||
// 데이터 가공
|
||||
@ -60,7 +66,6 @@ public class worddictyService {
|
||||
}
|
||||
return processedList;
|
||||
}
|
||||
|
||||
public Long insertWord(MapDto map) {
|
||||
|
||||
if (map.containsKey("CMNCODNAM") && map.get("CMNCODNAM") != null) {
|
||||
@ -68,28 +73,16 @@ public class worddictyService {
|
||||
}
|
||||
return worddictymapper.insertWord(map);
|
||||
}
|
||||
|
||||
public Long updateWord(MapDto map) {
|
||||
return worddictymapper.updateWord(map);
|
||||
}
|
||||
|
||||
public MapDto getWordDetail(MapDto map) {
|
||||
return worddictymapper.getWordDetail(map);
|
||||
}
|
||||
|
||||
public int getTotal(MapDto map) {
|
||||
return worddictymapper.getTotal(map);
|
||||
}
|
||||
|
||||
|
||||
public Long updateword(MapDto map) {
|
||||
return worddictymapper.updateword(map);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user