select count(*) from AFIS_QUALITY_CK A,TB_RY_RYCJ B,SYS_PARAM_DATE S,AFIS_QUALITY_CC cc where 1=1
and A.R_RYBH=B.RYBH and A.R_RYBH=cc.R_RYBH(+) AND A.CCBS=#{entity.ccbh , jdbcType=VARCHAR } and S.BH='1000' AND (A.SCBZ = '0' or A.SCBZ is null) AND B.SZZWBH is not null AND (B.IFHB='0' OR B.IFHB IS NULL)
and A.R_RYBH=B.RYBH and A.R_RYBH=cc.R_RYBH(+) AND A.CCBS=#{entity.ccbh , jdbcType=VARCHAR } and S.BH='1000' AND B.SZZWBH is not null AND (B.IFHB='0' OR B.IFHB IS NULL)
<iftest="entity.RCjdw != null and entity.RCjdw != ''">AND A.R_CJDW like #{entity.RCjdw , jdbcType=VARCHAR }||'%'</if>
<iftest="entity.fRCjsjStr != null and entity.fRCjsjStr != ''"> AND B.LRSJ <![CDATA[>=]]> to_date(#{entity.fRCjsjStr , jdbcType=VARCHAR },'yyyy-mm-dd') </if>
<iftest="entity.eRCjsjStr != null and entity.eRCjsjStr != ''"> AND B.LRSJ <![CDATA[<]]> to_date(#{entity.eRCjsjStr , jdbcType=VARCHAR },'yyyy-mm-dd')+1 </if>
...
...
@@ -923,7 +923,7 @@
B.GMSFHM as gmsfhm,
S.ZW_SX as zwsx
from AFIS_QUALITY_CK A,TB_RY_RYCJ B,SYS_PARAM_DATE S,AFIS_QUALITY_CC cc where 1=1
AND A.R_RYBH=B.RYBH and A.R_RYBH=cc.R_RYBH(+) AND A.CCBS=#{entity.ccbh , jdbcType=VARCHAR } AND S.BH='1000' AND (A.SCBZ = '0' or A.SCBZ is null) AND B.SZZWBH is not null AND (B.IFHB='0' OR B.IFHB IS NULL)
AND A.R_RYBH=B.RYBH and A.R_RYBH=cc.R_RYBH(+) AND A.CCBS=#{entity.ccbh , jdbcType=VARCHAR } AND S.BH='1000' AND B.SZZWBH is not null AND (B.IFHB='0' OR B.IFHB IS NULL)
<iftest="entity.RCjdw != null and entity.RCjdw != ''">AND A.R_CJDW like #{entity.RCjdw , jdbcType=VARCHAR }||'%'</if>
<iftest="entity.fRCjsjStr != null and entity.fRCjsjStr != ''"> AND B.LRSJ <![CDATA[>=]]> to_date(#{entity.fRCjsjStr , jdbcType=VARCHAR },'yyyy-mm-dd') </if>
<iftest="entity.eRCjsjStr != null and entity.eRCjsjStr != ''"> AND B.LRSJ <![CDATA[<]]> to_date(#{entity.eRCjsjStr , jdbcType=VARCHAR },'yyyy-mm-dd')+1 </if>