@@ -70,14 +70,14 @@ public class IRycjtjServiceImpl implements IRycjtjService {
if(unitgrade==10){
}elseif(ifslgzd==1){
filterMap.put("sqlwhere","(lrdwdm like '%s%' or lrdwdm like '%S%' or lrdwdm like '%88____')");
filterMap.put("sqlwhere","(lrdwdm like '"+unit_matchstring.substring(0,4)+"%s%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%S%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%88____')");
}elseif(ifslgzd==2){
filterMap.put("sqlwhere","(lrdwdm like '%g%' or lrdwdm like '%G%')");
filterMap.put("sqlwhere","(lrdwdm like '"+unit_matchstring.substring(0,4)+"%g%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%G%')");
}else{
filterMap.put("sqlwhere","lrdwdm not like '%s%' and lrdwdm not like '%S%' and lrdwdm not like '%G%' and lrdwdm not like '%g%' and lrdwdm not like '%88____'");
filterMap.put("sqlwhere","lrdwdm not like '"+unit_matchstring.substring(0,4)+"%s%' and lrdwdm not like '"+unit_matchstring.substring(0,4)+"%S%' and lrdwdm not like '"+unit_matchstring.substring(0,4)+"%G%' and lrdwdm not like '"+unit_matchstring.substring(0,4)+"%g%' and lrdwdm not like '"+unit_matchstring.substring(0,4)+"%88____'");
}
filterMap1.put("sqlwhere","(lrdwdm like '%s%' or lrdwdm like '%S%' or lrdwdm like '%88____')");
filterMap2.put("sqlwhere","(lrdwdm like '%G%' or lrdwdm like '%g%')");
filterMap1.put("sqlwhere","(lrdwdm like '"+unit_matchstring.substring(0,4)+"%s%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%S%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%88____')");
filterMap2.put("sqlwhere","(lrdwdm like '"+unit_matchstring.substring(0,4)+"%G%' or lrdwdm like '"+unit_matchstring.substring(0,4)+"%g%')");
if(nuitCodes!=null){
if(ifslgzd==0){
...
...
@@ -286,6 +286,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
filterMap.put("sqlwhere","(code like '%s%' or code like '%S%' or code like '%88____')");
filterMap.put("sqlwhere","(code like '"+unit_matchstring.substring(0,4)+"%s%' or code like '"+unit_matchstring.substring(0,4)+"%S%' or code like '"+unit_matchstring.substring(0,4)+"%88____')");
}elseif(ifslgzd==2){
filterMap.put("sqlwhere","(code like '%g%' or code like '%G%')");
filterMap.put("sqlwhere","(code like '"+unit_matchstring.substring(0,4)+"%g%' or code like '"+unit_matchstring.substring(0,4)+"%G%')");
}else{
filterMap.put("sqlwhere","code not like '%s%' and code not like '%S%' and code not like '%G%' and code not like '%g%' and code not like '%88____'");
filterMap.put("sqlwhere","code not like '"+unit_matchstring.substring(0,4)+"%s%' and code not like '"+unit_matchstring.substring(0,4)+"%S%' and code not like '"+unit_matchstring.substring(0,4)+"%G%' and code not like '"+unit_matchstring.substring(0,4)+"%g%' and code not like '"+unit_matchstring.substring(0,4)+"%88____'");
}
unitCodeBean=khtjDao.getUnitCodeList(filterMap);
}
...
...
@@ -530,7 +534,7 @@ public class IRycjtjServiceImpl implements IRycjtjService {
from TB_RY_RYCJ,AFIS_QUALITY_CK where TB_RY_RYCJ.RYBH=AFIS_QUALITY_CK.R_RYBH(+) AND (TB_RY_RYCJ.SCBZ='0' or TB_RY_RYCJ.SCBZ is null) AND (IFHB<![CDATA[<>]]>'1' OR IFHB IS NULL)
<iftest="lrdwdm != null and lrdwdm != ''">and LRDWDM like #{lrdwdm , jdbcType=VARCHAR }||'%'</if>
<iftest="ifslgzd != null and ifslgzd == 1"> and (LRDWDM like '%s%' or LRDWDM like '%S%' or LRDWDM like '%88____')</if>
<iftest="ifslgzd != null and ifslgzd == 2"> and (LRDWDM like '%g%' or LRDWDM like '%G%')</if>
<iftest="flrsjStr != null and flrsjStr != ''"> AND LRSJ <![CDATA[>=]]> to_date(#{flrsjStr, jdbcType=VARCHAR },'yyyy-mm-dd') </if>
<iftest="elrsjStr != null and elrsjStr != ''"> AND LRSJ <![CDATA[<]]> to_date(#{elrsjStr , jdbcType=VARCHAR },'yyyy-mm-dd')+1 </if>
) where 1=1
...
...
@@ -579,6 +581,8 @@
<iftest="tjtype != null and tjtype != '' and tjtype == 'xtzrs'"> and 1=1</if>
<iftest="tjtype != null and tjtype != '' and tjtype == 'csycs'"> and (tbbz = '1' or tbbz = '2')</if>