Commit f70034ff by xsren@gongsibao.com

update

parent 3c7afe5c
......@@ -111,7 +111,7 @@ class ProductService extends ServiceBase {
channel_item_code = channelItemCode;
break;
case 'zzxk':
if(actionBody.province != ''){
if(actionBody.province ){
producesql += ` AND pc.price_desc LIKE '%${actionBody.province}%'`;
}else{
return system.getResultFail(null,'actionBody.province can not be empty!')
......@@ -125,7 +125,7 @@ class ProductService extends ServiceBase {
}
break;
case 'bqfu':
if(actionBody.serviceType != ''){
if(actionBody.serviceType ){
producesql += ` AND pc.price_desc LIKE '%${actionBody.serviceType}%'`;
}else{
return system.getResultFail(null,'actionBody.serviceType can not be empty!')
......@@ -140,7 +140,7 @@ class ProductService extends ServiceBase {
break;
case 'gsfu':
if(code2 != 'ysgszc'){
if(actionBody.city != '' && actionBody.serviceType != ''){
if(actionBody.city && actionBody.serviceType ){
let str = actionBody.city + actionBody.serviceType;
producesql += ` AND pc.price_desc LIKE '%${str}%'`;
}else{
......@@ -157,12 +157,15 @@ class ProductService extends ServiceBase {
}
break;
case 'csfw':
if(actionBody.city != ''){
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!')
}
if(code2=='gsdz'){
producesql += ` AND pc.additions_desc = '${actionBody.serviceType}'`
}
break;
default:
producesql += ` AND pt.channel_item_code = '${code2}'`;
......
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