Commit 0f1ac400 by linboxuan

update async getProductPrice(actionBody){

parent bbbf4433
......@@ -170,6 +170,15 @@ class ProductService extends ServiceBase {
producesql += ` AND pc.additions_desc = '${actionBody.companyType}'`
}
break;
// 2020 0927 lin 新增 /zzfw/wangwen/ 询价方法
case 'zzfw':
if(actionBody.city){
let str = actionBody.city;
producesql += ` AND pc.price_desc LIKE '%${str}%'`;
}else{
return system.getResultFail(null,'actionBody.serviceType can not be empty!')
}
break;
default:
producesql += ` AND pt.channel_item_code = '${code2}'`;
break;
......
......@@ -356,6 +356,7 @@ class OpPlatformUtils {
// }
// var result = await cacheManager["AppUserPinByLoginVcodeCache"].cache(inputkey, pobj, system.exTime);
// 2020 0805 lin 修改 cache 改为buildCache。buildCache为新增的方法。与cache的区别是 不去get获取 直接走buildCacheVal
// 修改原因:cache的方法大概是去缓存取如果有就返回,不更新过期时间,buildCache为查一遍user信息 刷新一下过期时间,redis key不变
var result = await cacheManager["AppUserPinByLoginVcodeCache"].buildCache(inputkey, pobj, system.exTime);
if (result && result.status == 0 && pobj.actionBody.reqType != "reg") {
var userpinKey = this.getUserPinKey(pobj.actionBody.userpin);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment