Browse Source

환불관리 변경메모 이모티콘 제거 커밋

card007 4 năm trước cách đây
mục cha
commit
1720bb72eb

+ 7 - 0
pom.xml

@@ -237,6 +237,13 @@
 			<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/xalan.jar</systemPath>
 		</dependency>
 		<!-- \\\ WEB-INF lib -->
+
+		<!-- 이모티콘 처리 관련 -->
+		<dependency>
+			<groupId>com.vdurmont</groupId>
+			<artifactId>emoji-java</artifactId>
+			<version>5.1.1</version>
+		</dependency>
 	</dependencies>
 	
 	<build>

+ 11 - 1
src/main/java/com/style24/admin/biz/service/TsaWithdrawService.java

@@ -1,5 +1,6 @@
 package com.style24.admin.biz.service;
 
+import java.util.ArrayList;
 import java.util.Collection;
 import java.util.List;
 
@@ -26,6 +27,7 @@ import com.style24.persistence.domain.OrderChange;
 import com.style24.persistence.domain.Withdraw;
 import com.style24.persistence.domain.WithdrawExc;
 import com.style24.persistence.domain.WmsWithdraw;
+import com.vdurmont.emoji.EmojiParser;
 
 import lombok.extern.slf4j.Slf4j;
 
@@ -95,7 +97,15 @@ public class TsaWithdrawService {
 	 * @since 2020. 11. 16
 	 */
 	public Collection<Withdraw> getRefundList(Withdraw withdraw) {
-		return withdrawDao.getRefundList(withdraw);
+		Collection<Withdraw> result = new ArrayList<>();
+
+		// 이모티콘 제거
+		for (Withdraw data : withdrawDao.getRefundList(withdraw)) {
+			data.setChgMemo(EmojiParser.removeAllEmojis(data.getChgMemo()));
+			result.add(data);
+		}
+
+		return result;
 	}