|
|
@@ -46,6 +46,8 @@
|
|
|
) OCD
|
|
|
ON OD.ORD_DTL_NO = OCD.ORD_DTL_NO
|
|
|
</if>
|
|
|
+ LEFT OUTER JOIN TB_CUSTOMER CU
|
|
|
+ ON O.CUST_NO = CU.CUST_NO
|
|
|
WHERE 1=1
|
|
|
AND OD.ORD_DTL_STAT <![CDATA[<>]]> 'G013_00'
|
|
|
<if test='siteCd != null and siteCd != ""'>
|
|
|
@@ -105,7 +107,7 @@
|
|
|
AND O.ORD_NM = #{orderNm}
|
|
|
</if>
|
|
|
<if test='custId != null and custId != ""'>
|
|
|
- AND O.CUST_NO = #{custId}
|
|
|
+ AND CU.CUST_ID = #{custId}
|
|
|
</if>
|
|
|
<if test='orderPhnno != null and orderPhnno != ""'>
|
|
|
AND O.ORD_PHNNO = #{orderPhnno}
|
|
|
@@ -122,8 +124,8 @@
|
|
|
<if test='orderNm != null and orderNm != ""'>
|
|
|
AND O.ORD_NM = #{orderNm}
|
|
|
</if>
|
|
|
- <if test='custId != null and custId != ""'>
|
|
|
- AND O.CUST_NO = #{custId}
|
|
|
+ <if test='custNo != null and custNo != ""'>
|
|
|
+ AND O.CUST_NO = #{custNo}
|
|
|
</if>
|
|
|
<if test='orderPhnno != null and orderPhnno != ""'>
|
|
|
AND O.ORD_PHNNO = #{orderPhnno}
|
|
|
@@ -308,6 +310,8 @@
|
|
|
) OCD
|
|
|
ON OD.ORD_DTL_NO = OCD.ORD_DTL_NO
|
|
|
</if>
|
|
|
+ LEFT OUTER JOIN TB_CUSTOMER CU
|
|
|
+ ON O.CUST_NO = CU.CUST_NO
|
|
|
WHERE 1=1
|
|
|
AND OD.ORD_DTL_STAT <![CDATA[<>]]> 'G013_00'
|
|
|
<if test='siteCd != null and siteCd != ""'>
|
|
|
@@ -364,7 +368,7 @@
|
|
|
AND O.ORD_NM = #{orderNm}
|
|
|
</if>
|
|
|
<if test='custId != null and custId != ""'>
|
|
|
- AND O.CUST_NO = #{custId}
|
|
|
+ AND CU.CUST_ID = #{custId}
|
|
|
</if>
|
|
|
<if test='orderPhnno != null and orderPhnno != ""'>
|
|
|
AND O.ORD_PHNNO = #{orderPhnno}
|
|
|
@@ -387,8 +391,8 @@
|
|
|
<if test='orderNm != null and orderNm != ""'>
|
|
|
AND O.ORD_NM = #{orderNm}
|
|
|
</if>
|
|
|
- <if test='custId != null and custId != ""'>
|
|
|
- AND O.CUST_NO = #{custId}
|
|
|
+ <if test='custNo != null and custNo != ""'>
|
|
|
+ AND O.CUST_NO = #{custNo}
|
|
|
</if>
|
|
|
<if test='orderPhnno != null and orderPhnno != ""'>
|
|
|
AND O.ORD_PHNNO = #{orderPhnno}
|