|
|
@@ -175,7 +175,8 @@ public class GEServiceImpl implements GEService {
|
|
|
"PARTYCODE,PARTYNAME,nvl(cd_varchar50_1,PARTYCODE),nvl(cd_varchar50_2,PARTYNAME),'正常订单',poNo,currency,case when rate = 'null' then '0' else rate end," +
|
|
|
"poDate,soNo,case when HID = 'null' then '0' else HID end,POID " +
|
|
|
"from POORDERGR left join POORDERADDRINFOSGR on APOID = POID and nvl(PARTYTYPE,' ') = 'BY' " +
|
|
|
- "left join N_HUASL_QD.CUSTOMTABLE on ct_caller='GECUSTDZ' and CT_STATUS = '已审核' left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID and cd_varchar50_4 = PARTYNAME " +
|
|
|
+ //"left join N_HUASL_QD.CUSTOMTABLE on ct_caller='GECUSTDZ' and CT_STATUS = '已审核' left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID and cd_varchar50_4 = PARTYNAME " +
|
|
|
+ "left join (select * from N_HUASL_QD.CUSTOMTABLE left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID where ct_caller='GECUSTDZ' and CT_STATUS = '已审核') on cd_varchar50_4 = PARTYNAME " +
|
|
|
"where POID = " + poid);
|
|
|
sqls.add("insert into SALECONFIRMGRDETAIL (SCGD_ID,SCGD_SCGID,SCGD_DETNO,SCGD_REMARK,SCGD_GRDETNO,SCGD_GRPRCODE,SCGD_GRPRNAME," +
|
|
|
"SCGD_PRCODE,SCGD_PRDETAIL,SCGD_SELLERCODE,SCGD_SELLERNAME,SCGD_DELIVERY," +
|
|
|
@@ -186,7 +187,8 @@ public class GEServiceImpl implements GEService {
|
|
|
"case when orderedQty = 'null' then '0' else orderedQty end, case when unitPrice = 'null' then '0' else unitPrice end,case when totalAmount = 'null' then '0' else totalAmount end, " +
|
|
|
"PONO,case when HID = 'null' then '0' else HID end,DPOID,DETID " +
|
|
|
"from POORDERDETAILSGR left join (select APOID,nvl(cd_varchar50_1,PARTYCODE) cucode from POORDERADDRINFOSGR " +
|
|
|
- "left join N_HUASL_QD.CUSTOMTABLE on ct_caller='GECUSTDZ' and CT_STATUS = '已审核' left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID and cd_varchar50_4 = PARTYNAME " +
|
|
|
+ //"left join N_HUASL_QD.CUSTOMTABLE on ct_caller='GECUSTDZ' and CT_STATUS = '已审核' left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID and cd_varchar50_4 = PARTYNAME " +
|
|
|
+ "left join (select * from N_HUASL_QD.CUSTOMTABLE left join N_HUASL_QD.CUSTOMTABLEDETAIL ON CD_CTID = CT_ID where ct_caller='GECUSTDZ' and CT_STATUS = '已审核') on cd_varchar50_4 = PARTYNAME " +
|
|
|
"where nvl(PARTYTYPE,' ') = 'BY') on DPOID = APOID " +
|
|
|
//"left join N_HUASL_QD.PRODUCTCUSTOMER on custPartNo = pc_custprodcode and pc_custcode = cucode left join Product on pc_prodid=pr_id " +
|
|
|
"left join (select * from PRODUCTCUSTOMER left join Product on pc_prodid=pr_id where nvl(pr_status,' ') = '已审核') on custPartNo = pc_custprodcode and pc_custcode = cucode " +
|