修改统计查询认证人admin时查询不到认证人为空的数据

release
路明慧 2 years ago
parent e4b6913e0d
commit ca80ebafe7
  1. 20
      dxhy-extend/src/main/resources/mapper/ExtBbfpzhMapper.xml

@ -140,8 +140,17 @@
<if test="qsr != null and qsr != '' and qsr != 'null' ">
and t.qs_name = #{qsr}
</if>
<if test="rzhr != null and rzhr != '' and rzhr != 'null' ">
and t.confirm_user like CONCAT(#{rzhr},'%')
<choose>
<when test="rzhr = 'admin'">
and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '')
</when>
<otherwise>
and t.confirm_user like CONCAT(#{rzhr},'%')
</otherwise>
</choose>
</if>
<if test="settlementNo != null and settlementNo != ''">
and t.settlement_no like concat(#{settlementNo},'%')
@ -403,7 +412,14 @@
and t.qs_name = #{qsr}
</if>
<if test="rzhr != null and rzhr != '' and rzhr != 'null' ">
and t.confirm_user like CONCAT(#{rzhr},'%')
<choose>
<when test="rzhr = 'admin'">
and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '')
</when>
<otherwise>
and t.confirm_user like CONCAT(#{rzhr},'%')
</otherwise>
</choose>
</if>
<if test="glzt != null and glzt != '' and glzt != 'null' and glzt != '99'">
and t.glzt = #{glzt}

Loading…
Cancel
Save