varsql="select id,needNo,solutionNo,orderNo,solutionContent,status,statusName,created_at from n_need_solution where 1=1 ";
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 ";
varsqlCount="select count(1) as dataCount from n_need_solution where 1=1 ";
sql=sql+" and createUserId="+user.id;
sql=sql+" and createUserId="+user.id;
sqlCount=sqlCount+" and createUserId="+user.id;
sqlCount=sqlCount+" and createUserId="+user.id;
if(bizType){
sql=sql+" and solutionContent->'$.bizType' = '"+bizType+"'";
sql=sql+" and solutionContent->'$.bizType' = '"+bizType+"'";
sqlCount=sqlCount+" and solutionContent->'$.bizType' = '"+bizType+"'";
sqlCount=sqlCount+" and solutionContent->'$.bizType' = '"+bizType+"'";
}
varparamWhere={};
varparamWhere={};
if(ab.solutionNo){//方案号
if(ab.solutionNo){//方案号
sql+=" and solutionNo = :solutionNo";
sql+=" and solutionNo = :solutionNo";
...
@@ -533,6 +536,38 @@ class NeedsolutionService extends ServiceBase {
...
@@ -533,6 +536,38 @@ class NeedsolutionService extends ServiceBase {