|
|
@ -108,7 +108,8 @@ public class OutBoundDaoImpl implements OutBoundDao { |
|
|
StringBuilder sql = new StringBuilder(); |
|
|
StringBuilder sql = new StringBuilder(); |
|
|
Map<String, Object> paramMap = new HashMap<String, Object>(); |
|
|
Map<String, Object> paramMap = new HashMap<String, Object>(); |
|
|
sql.append("SELECT sps.Site site, cnd.DelNotifyNo delNotifyNo, cnd.DelNotifyItemNo delNotifyItemNo, cnd.OrderNo orderNo,"); |
|
|
sql.append("SELECT sps.Site site, cnd.DelNotifyNo delNotifyNo, cnd.DelNotifyItemNo delNotifyItemNo, cnd.OrderNo orderNo,"); |
|
|
sql.append(" (CASE WHEN sps.AQQFlag = 'Y' AND sps.OldRecordFlag = 'N' THEN 0.5 ELSE 1 END) qty,"); |
|
|
|
|
|
|
|
|
// sql.append(" (CASE WHEN sps.AQQFlag = 'Y' AND sps.OldRecordFlag = 'N' THEN 0.5 ELSE 1 END) qty,"); |
|
|
|
|
|
sql.append(" 1 as qty,"); |
|
|
sql.append(" cnd.ItemNo itemNo, sps.SerialNo serialNo, sps.ReceiveFlag receiveFlag, sps.DeliveryFlag deliveryFlag"); |
|
|
sql.append(" cnd.ItemNo itemNo, sps.SerialNo serialNo, sps.ReceiveFlag receiveFlag, sps.DeliveryFlag deliveryFlag"); |
|
|
sql.append(" FROM SalesPartSerialNoList sps"); |
|
|
sql.append(" FROM SalesPartSerialNoList sps"); |
|
|
sql.append(" LEFT JOIN CODelNotifyDetail cnd ON cnd.Site = sps.Site AND cnd.OrderNo = sps.OrderNo AND cnd.ItemNo = sps.ItemNo"); |
|
|
sql.append(" LEFT JOIN CODelNotifyDetail cnd ON cnd.Site = sps.Site AND cnd.OrderNo = sps.OrderNo AND cnd.ItemNo = sps.ItemNo"); |
|
|
|