|
@@ -99,16 +99,16 @@
|
|
|
<update id="updateWmsIfDeliveryOrderItemCancel" parameterType="WmsDelivery">
|
|
<update id="updateWmsIfDeliveryOrderItemCancel" parameterType="WmsDelivery">
|
|
|
/* TscWmsDelivery.updateWmsIfDeliveryOrderItemCancel */
|
|
/* TscWmsDelivery.updateWmsIfDeliveryOrderItemCancel */
|
|
|
UPDATE istyle24_Wmsif.dbo.TB_IF_DeliveryOrderItem SET
|
|
UPDATE istyle24_Wmsif.dbo.TB_IF_DeliveryOrderItem SET
|
|
|
- StatusCd = CASE WHEN (Qty - Cqty) = #{chgQty} THEN '60' ELSE StatusCd END
|
|
|
|
|
- , IsCancel = CASE WHEN (Qty - Cqty) = #{chgQty} THEN 1 ELSE IsCancel END
|
|
|
|
|
- , Cqty = #{chgQty}
|
|
|
|
|
|
|
+ StatusCd = CASE WHEN (Qty - Cqty) = #{itemQty} THEN '60' ELSE StatusCd END
|
|
|
|
|
+ , IsCancel = CASE WHEN (Qty - Cqty) = #{itemQty} THEN 1 ELSE IsCancel END
|
|
|
|
|
+ , Cqty = #{itemQty}
|
|
|
WHERE 1=1
|
|
WHERE 1=1
|
|
|
<if test='ordDtlNo != null and ordDtlNo != ""'>
|
|
<if test='ordDtlNo != null and ordDtlNo != ""'>
|
|
|
AND OrderDtlNo = #{ordDtlNo}
|
|
AND OrderDtlNo = #{ordDtlNo}
|
|
|
</if>
|
|
</if>
|
|
|
- <if test='ordDtlNo = null or ordDtlNo = ""'>
|
|
|
|
|
|
|
+ <if test='ordDtlNo == null or ordDtlNo == ""'>
|
|
|
AND ProductNo = #{productNo}
|
|
AND ProductNo = #{productNo}
|
|
|
- AND SKUCode = #{skuCode}
|
|
|
|
|
|
|
+ AND SKUCode = #{optCd}
|
|
|
</if>
|
|
</if>
|
|
|
AND (GiftYn != 'Y' OR GiftYn IS NULL)
|
|
AND (GiftYn != 'Y' OR GiftYn IS NULL)
|
|
|
</update>
|
|
</update>
|