letsql="UPDATE h_tmcustomer_info SET contactAddress = '"+contactAddress+"' , addressIsPushed = '0' WHERE id IN (SELECT id FROM (SELECT cu.id FROM h_tmapplier_info AS ap LEFT JOIN h_tmcustomer_info AS cu ON ap.orderNum = cu.orderNum WHERE cu.mobile = '"+mobile+"' AND ap.applyName = '"+applyName+"') AS a)";
letobj={
customerContact:customer.customerContact,
contactAddress:customer.contactAddress,
mobile:customer.mobile,
email:customer.email,
}
letsql="UPDATE h_tmcustomer_info SET customerContact = '"+obj.customerContact+"',contactAddress = '"+obj.contactAddress+"',mobile = '"+obj.mobile+"',email = '"+obj.email+"',addressIsPushed = '0' WHERE id IN (SELECT id FROM (SELECT cu.id FROM h_tmapplier_info AS ap LEFT JOIN h_tmcustomer_info AS cu ON ap.orderNum = cu.orderNum WHERE ap.creditCode = '"+creditCode+"') AS a);";