|
|
@@ -187,7 +187,7 @@ public class GEServiceImpl implements GEService {
|
|
|
"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 " +
|
|
|
- "where nvl(PARTYTYPE,' ') = 'BY') on DPOID = APOID" +
|
|
|
+ "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 " +
|
|
|
"left join N_HUASL_QD.CUSTOMTABLE on CT_CALLER = 'GESELLERBRAND' and CT_STATUS = '已审核' left join N_HUASL_QD.CUSTOMTABLEDETAIL on CD_CTID = CT_ID and cd_varchar50_1 = pr_brand " +
|