letsql="UPDATE h_tmcustomer_info SET contactAddress = '"+contactAddress+"' 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)";
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)";
@@ -1590,63 +1590,76 @@ class TrademarkService extends ServiceBase {
}
asyncqueryTmInfoForPush(){
try{
try{
letsql="SELECT id,orderNum,tmFormType,tmName,picUrl,nclOneCodes,nclSmallCodes,principal,tmRegistNum,tmStatus,tmStatusName,tmSourceTypeName,channelOrderListInfo, businessId,`updated_at`,lastUp FROM `h_trade_mark` WHERE channelOrderListInfo NOT LIKE '%,%' AND channelOrderListInfo NOT LIKE '%,%' AND channelOrderListInfo IS NOT NULL AND channelOrderListInfo !='' AND isPushed!=1 LIMIT 200;";
lettmResult=awaitthis.dao.customQuery(sql);
returntmResult;
}catch(e){
}catch(e){
console.log('queryTmInfoForPush查询失败');
returne;
}
}
//联系人信息查询-tm信息推送接口
asyncqueryTmCustomerInfoForPush(orderNum){
try{
try{
letsql="SELECT * FROM `h_tmcustomer_info` WHERE orderNum='"+orderNum+"';";
letcustomerResult=awaitthis.dao.customQuery(sql);
returncustomerResult;
}catch(e){
}catch(e){
console.log('queryTmCustomerInfoForPush查询失败');
returne;
}
}
//联系人信息查询-联系人地址信息推送接口
asyncqueryTmCustomerInfo(orderNum){
try{
letsql="SELECT * FROM `h_tmcustomer_info` WHERE orderNum='"+orderNum+"';";
letcustomerResult=awaitthis.dao.customQuery(sql);
returncustomerResult;
}catch(e){
console.log('queryTmCustomerInfoForPush查询失败');
returne;
}
}
asyncqueryTmFlowInfoForPush(tmRegistNum){
try{
letsql="SELECT * FROM `h_tm_flow` WHERE tmRegistNum='"+tmRegistNum+"';";
try{
letsql="SELECT * FROM `h_tm_flow` WHERE tmRegistNum='"+tmRegistNum+"';";