tsit05 4 jaren geleden
bovenliggende
commit
2c1f9fb442

+ 29 - 0
src/main/java/com/style24/admin/biz/dao/TsaWmsWithdrawDao.java

@@ -6,6 +6,8 @@ import org.springframework.dao.DataAccessException;
 
 import com.style24.persistence.domain.WmsWithdraw;
 import com.style24.persistence.domain.Withdraw;
+import com.style24.persistence.domain.WithdrawExc;
+
 import com.style24.persistence.domain.Delivery;
 import com.style24.core.support.annotation.WmsDs;
 import org.springframework.stereotype.Repository;
@@ -71,4 +73,31 @@ public interface TsaWmsWithdrawDao {
 	 */
 	void updateReRecallOrder(Withdraw withdraw);
 	
+	/**
+	 * WMS_IF 회수예외 수정 -H
+	 * @param 
+	 * @return Delivery
+	 * @author moon
+	 * @since 2021. 03. 02
+	 */
+	void updateWmsIfWithdrawExcList(WithdrawExc delivery);
+	
+	/**
+	 * WMS_IF 회수예외 수정 -D
+	 * @param 
+	 * @return Delivery
+	 * @author moon
+	 * @since 2021. 03. 02
+	 */
+	void updateWmsIfWithdrawExcItemList(WithdrawExc delivery);
+	
+	/**
+	 * WMS_IF 회수예외 수정 -M
+	 * @param 
+	 * @return Delivery
+	 * @author moon
+	 * @since 2021. 03. 02
+	 */
+	void updateWmsIfWithdrawExcMemoList(WithdrawExc delivery);	
+	
 }

+ 3 - 0
src/main/java/com/style24/admin/biz/service/TsaWithdrawService.java

@@ -138,6 +138,9 @@ public class TsaWithdrawService {
 		withdrawExc.setRecallStat("S");
 		withdrawDao.updateWithdrawException(withdrawExc);
 		
+		wmsWithdrawService.updateTbIfRecallExceptionRslt(withdrawExc);
+		
+		
 	}
 	
 	/**

+ 17 - 0
src/main/java/com/style24/admin/biz/service/TsaWmsWithdrawService.java

@@ -9,6 +9,8 @@ import lombok.extern.slf4j.Slf4j;
 import com.style24.admin.biz.dao.TsaWmsWithdrawDao;
 import com.style24.persistence.domain.WmsWithdraw;
 import com.style24.persistence.domain.Withdraw;
+import com.style24.persistence.domain.WithdrawExc;
+
 import com.style24.persistence.domain.Delivery;
 import com.style24.core.support.message.TscMessageByLocale;
 
@@ -92,5 +94,20 @@ public class TsaWmsWithdrawService {
 		wmsWithdrawDao.updateReRecallOrder(withdraw);
 	}
 	
+	/**
+	 * WMS_IF 회수예외 처리결과 등록 
+	 * @param 
+	 * @return Delivery
+	 * @author moon
+	 * @since  2021. 03. 02
+	 */
+	@Transactional("wmsTxnManager")
+	public void updateTbIfRecallExceptionRslt(WithdrawExc excData) {
+
+			excData.setIfstat("2");
+			wmsWithdrawDao.updateWmsIfWithdrawExcList(excData);
+			wmsWithdrawDao.updateWmsIfWithdrawExcItemList(excData);
+			wmsWithdrawDao.updateWmsIfWithdrawExcMemoList(excData);
+	}	
 	
 }

+ 1 - 0
src/main/java/com/style24/persistence/domain/WithdrawExc.java

@@ -71,6 +71,7 @@ public class WithdrawExc extends TscBaseDomain {
 	private String recallStatNm;
 	private String statNm;
 	private String wdBfSendYn;
+	private String Ifstat;
 	
 	private int chargeAmount;          // 요금총액
 	private int exceptionQty;          // 수량

+ 32 - 0
src/main/java/com/style24/persistence/mybatis/wms/TsaWmsWithdraw.xml

@@ -154,5 +154,37 @@
           		  
 	</insert>	
 	
+	<!-- 회수예외 수정 -H   -->
+	<update id="updateWmsIfWithdrawExcList" parameterType="WithdrawExc" >
+		/*TsbWmsDelivery.updateWmsIfWithdrawExcList*/
+		UPDATE iSTYLE24_WmsIf.DBO.TB_IF_RecallException SET 
+			   IfStat = #{ifstat}
+			 , IfDate = GETDATE()
+			 <if test='ifstat == "2"'>
+			 , CSenCloseFee = #{csAddFee}
+			 , CSMemo       = #{csMemo}
+			 </if>
+		WHERE RecallExceptionNo = #{recallExceptionNo}
+		
+	</update>
+		
+	<!-- 회수예외 수정 -D   -->
+	<update id="updateWmsIfWithdrawExcItemList" parameterType="WithdrawExc" >
+		/*TsbWmsDelivery.updateWmsIfWithdrawExcItemList*/
+		UPDATE iSTYLE24_WmsIf.DBO.TB_IF_RecallExceptionItem SET 
+			   IfStat = #{ifstat}
+			 , IfDate = GETDATE()
+		WHERE RecallExceptionNo = #{recallExceptionNo}
+	</update>
+	
+	<!-- 회수예외 수정 -M   -->
+	<update id="updateWmsIfWithdrawExcMemoList" parameterType="WithdrawExc" >
+		/*TsbWmsDelivery.updateWmsIfWithdrawExcMemoList*/
+		UPDATE iSTYLE24_WmsIf.DBO.TB_IF_RecallExceptionMemo SET 
+			   IfStat = #{ifstat}
+			 , IfDate = GETDATE()
+		WHERE RecallExceptionNo = #{recallExceptionNo}
+	</update>
+		
 	
 </mapper>