|
|
sqls.add("update SaleDown set (sa_custid,sa_custcode,sa_custname,sa_apcustcode,sa_apcustname,sa_shcustcode,sa_shcustname,sa_sellerid,sa_seller,sa_sellercode)=(select cu_id,cu_code,cu_name,cu_arcode,cu_arname,cu_shcustcode,cu_shcustname,cu_sellerid,cu_sellername,em_code from customer left join employee on em_id=cu_sellerid where cu_uu=sa_customeruu) where sa_id in ("
|
|
sqls.add("update SaleDown set (sa_custid,sa_custcode,sa_custname,sa_apcustcode,sa_apcustname,sa_shcustcode,sa_shcustname,sa_sellerid,sa_seller,sa_sellercode)=(select cu_id,cu_code,cu_name,cu_arcode,cu_arname,cu_shcustcode,cu_shcustname,cu_sellerid,cu_sellername,em_code from customer left join employee on em_id=cu_sellerid where cu_uu=sa_customeruu) where sa_id in ("
|
|
|
- sqls.add("update SaleDownDetail set (sd_prodid,sd_prodcode,sd_custproddetail,sd_prodcustcode)=(select pc_prodid,pc_prodcode,pc_custproddetail,pc_custprodspec from productcustomer where pc_custcode=(select sa_custcode from SaleDown where sd_said=sa_id) and pc_custprodcode=sd_custprodcode and nvl(pc_custprodspec,' ')=nvl(sd_custprodspec,' ')) where sd_said in ("
|
|
|