@@ -220,11 +220,11 @@ class NeedsolutionService extends ServiceBase {
//select * from log where data->'$.id' = 142;
varsql="select id,needNo,channelNeedNo,solutionNo,channelSolutionNo,orderNo,solutionContent,status,statusName,created_at from n_need_solution where 1=1 ";
varsqlCount="select count(1) as dataCount from n_need_solution where 1=1 ";
sql=sql+" and createUserId="+user.id;
sqlCount=sqlCount+" and createUserId="+user.id;
if(bizType){
sql=sql+" and solutionContent->'$.bizType' = '"+bizType+"'";
sqlCount=sqlCount+" and solutionContent->'$.bizType' = '"+bizType+"'";
sql=sql+" and createUserId="+user.id;
sqlCount=sqlCount+" and createUserId="+user.id;
if(bizType){
sql=sql+" and solutionContent->'$.bizType' = '"+bizType+"'";
sqlCount=sqlCount+" and solutionContent->'$.bizType' = '"+bizType+"'";
}
varparamWhere={};
if(ab.solutionNo){//方案号
...
...
@@ -242,47 +242,47 @@ class NeedsolutionService extends ServiceBase {
sqlCount+=" and status = :status";
paramWhere.status=ab.status;
}
if(bizType=="esp.companyreg"){//普通公司注册
if(bizType=="esp.companyreg"){//普通公司注册
if(ab.companyName){//企业名称
sql=sql+" and solutionContent->'$.solution.companyName' = :companyName";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyName' = :companyName";
sql=sql+" and solutionContent->'$.solution.companyName' = :companyName";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyName' = :companyName";
paramWhere.companyName=ab.companyName;
}//
if(ab.orgType){//组织类型
sql=sql+" and solutionContent->'$.solution.orgType' = :orgType";
sqlCount=sqlCount+" and solutionContent->'$.solution.orgType' = :orgType";
sql=sql+" and solutionContent->'$.solution.orgType' = :orgType";
sqlCount=sqlCount+" and solutionContent->'$.solution.orgType' = :orgType";
paramWhere.orgType=ab.orgType;
}
if(ab.companyType){//公司性质
sql=sql+" and solutionContent->'$.solution.companyType' = :companyType";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyType' = :companyType";
sql=sql+" and solutionContent->'$.solution.companyType' = :companyType";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyType' = :companyType";
paramWhere.companyType=ab.companyType;
}
if(ab.city){//城市
sql=sql+" and solutionContent->'$.solution.city' = :city";
sqlCount=sqlCount+" and solutionContent->'$.solution.city' = :city";
sql=sql+" and solutionContent->'$.solution.city' = :city";
sqlCount=sqlCount+" and solutionContent->'$.solution.city' = :city";
paramWhere.city=ab.city;
}
if(ab.area){//区域
sql=sql+" and solutionContent->'$.solution.area' = :area";
sqlCount=sqlCount+" and solutionContent->'$.solution.area' = :area";
sql=sql+" and solutionContent->'$.solution.area' = :area";
sqlCount=sqlCount+" and solutionContent->'$.solution.area' = :area";
paramWhere.area=ab.area;
}
if(ab.companyCategory){//纳税人类型
sql=sql+" and solutionContent->'$.solution.companyCategory' = :companyCategory";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyCategory' = :companyCategory";
sql=sql+" and solutionContent->'$.solution.companyCategory' = :companyCategory";
sqlCount=sqlCount+" and solutionContent->'$.solution.companyCategory' = :companyCategory";
paramWhere.companyCategory=ab.companyCategory;
}
}
if(bizType=="esp.companyreg_cloud"){//云上公司注册
if(bizType=="esp.companyreg_cloud"){//云上公司注册
if(ab.park){//注册园区
sql=sql+" and solutionContent->'$.solution.park' = :park";
sqlCount=sqlCount+" and solutionContent->'$.solution.park' = :park";
sql=sql+" and solutionContent->'$.solution.park' = :park";
sqlCount=sqlCount+" and solutionContent->'$.solution.park' = :park";
paramWhere.park=ab.park;
}
if(ab.productType){//产品类型
sql=sql+" and solutionContent->'$.solution.productType' = :productType";
sqlCount=sqlCount+" and solutionContent->'$.solution.productType' = :productType";
sql=sql+" and solutionContent->'$.solution.productType' = :productType";
sqlCount=sqlCount+" and solutionContent->'$.solution.productType' = :productType";
paramWhere.productType=ab.productType;
}
}
...
...
@@ -299,255 +299,255 @@ class NeedsolutionService extends ServiceBase {