@@ -1589,6 +1589,7 @@ class TrademarkService extends ServiceBase {
...
@@ -1589,6 +1589,7 @@ class TrademarkService extends ServiceBase {
}
}
}
}
//商标信息查询-tm信息推送接口
asyncqueryTmInfoForPush(){
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;";
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;";
...
@@ -1612,14 +1613,38 @@ class TrademarkService extends ServiceBase {
...
@@ -1612,14 +1613,38 @@ class TrademarkService extends ServiceBase {
}
}
}
}
//商标信息查询(bussinessId)-联系人地址信息推送接口
asyncqueryTmInfo(orderNum){
try{
letsql="SELECT businessId FROM `h_trade_mark` WHERE orderNum = '"+orderNum+"' AND tmSourceType = '32';";
lettmResult=awaitthis.dao.customQuery(sql);
returntmResult;
}catch(e){
console.log('queryTmInfo查询失败');
returne;
}
}
//联系人信息查询-联系人地址信息推送接口
//联系人信息查询-联系人地址信息推送接口
asyncqueryTmCustomerInfo(orderNum){
asyncqueryTmCustomerInfo(){
try{
try{
letsql="SELECT orderNum,contactAddress,customerContact,mobile,email,zipCode FROM `h_tmcustomer_info` WHERE contactAddress != '' AND addressIsPushed = '0' LIMIT 50;";
letsql="SELECT orderNum,contactAddress,customerContact,mobile,email,zipCode FROM `h_tmcustomer_info` WHERE contactAddress != '' AND addressIsPushed = '0' LIMIT 50;";
letcustomerResult=awaitthis.dao.customQuery(sql);
letcustomerResult=awaitthis.dao.customQuery(sql);
returncustomerResult;
returncustomerResult;
}catch(e){
}catch(e){
console.log('queryTmCustomerInfoForPush查询失败');
console.log('queryTmCustomerInfo查询失败');
returne;
}
}
//联系人信息更新-更新推送状态为1(已推送)
asyncupdateTmCustomerInfo(orderNum){
try{
letsql="UPDATE `h_tmcustomer_info` SET addressIsPushed = '1' WHERE orderNum = '"+orderNum+"';";