Merge branch 'main' of http://192.168.0.251:3000/localnet/localhost-back.git into main
This commit is contained in:
commit
5835b39da7
@ -23,6 +23,7 @@ import org.springframework.stereotype.Service;
|
|||||||
import io.company.localhost.common.dto.MapDto;
|
import io.company.localhost.common.dto.MapDto;
|
||||||
import io.company.localhost.mapper.commoncodMapper;
|
import io.company.localhost.mapper.commoncodMapper;
|
||||||
import io.company.localhost.mapper.worddictyMapper;
|
import io.company.localhost.mapper.worddictyMapper;
|
||||||
|
import io.company.localhost.utils.BlobUtil;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
|
||||||
@Service
|
@Service
|
||||||
@ -32,9 +33,14 @@ public class worddictyService {
|
|||||||
private final worddictyMapper worddictymapper;
|
private final worddictyMapper worddictymapper;
|
||||||
private final commoncodMapper commoncodmapper;
|
private final commoncodMapper commoncodmapper;
|
||||||
|
|
||||||
|
|
||||||
public List<MapDto> getWordList(MapDto map) {
|
public List<MapDto> getWordList(MapDto map) {
|
||||||
List<MapDto> wordList = worddictymapper.getWordList(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<>();
|
List<MapDto> processedList = new ArrayList<>();
|
||||||
|
|
||||||
// 데이터 가공
|
// 데이터 가공
|
||||||
@ -60,7 +66,6 @@ public class worddictyService {
|
|||||||
}
|
}
|
||||||
return processedList;
|
return processedList;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long insertWord(MapDto map) {
|
public Long insertWord(MapDto map) {
|
||||||
|
|
||||||
if (map.containsKey("CMNCODNAM") && map.get("CMNCODNAM") != null) {
|
if (map.containsKey("CMNCODNAM") && map.get("CMNCODNAM") != null) {
|
||||||
@ -68,28 +73,16 @@ public class worddictyService {
|
|||||||
}
|
}
|
||||||
return worddictymapper.insertWord(map);
|
return worddictymapper.insertWord(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Long updateWord(MapDto map) {
|
public Long updateWord(MapDto map) {
|
||||||
return worddictymapper.updateWord(map);
|
return worddictymapper.updateWord(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MapDto getWordDetail(MapDto map) {
|
public MapDto getWordDetail(MapDto map) {
|
||||||
return worddictymapper.getWordDetail(map);
|
return worddictymapper.getWordDetail(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getTotal(MapDto map) {
|
public int getTotal(MapDto map) {
|
||||||
return worddictymapper.getTotal(map);
|
return worddictymapper.getTotal(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Long updateword(MapDto map) {
|
public Long updateword(MapDto map) {
|
||||||
return worddictymapper.updateword(map);
|
return worddictymapper.updateword(map);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -145,5 +145,4 @@
|
|||||||
m.MEMBERLEA ="N"
|
m.MEMBERLEA ="N"
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
@ -92,5 +92,4 @@
|
|||||||
WHERE PROJCTSEQ = #{projctSeq}
|
WHERE PROJCTSEQ = #{projctSeq}
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user