ariesy 已认证的数据认证证人为空时,设置成damin

release
yefei 2 years ago
parent 8a0c2ca8e7
commit 469f60f873
  1. 28
      dxhy-base/src/main/resources/mapper/BaseFpZhMapper.xml

@ -155,15 +155,11 @@
<if test="qsr != null and qsr != '' and qsr != 'null' "> <if test="qsr != null and qsr != '' and qsr != 'null' ">
and t.qs_name = #{qsr} and t.qs_name = #{qsr}
</if> </if>
<if test="rzhr != null and rzhr != '' and rzhr != 'null' "> <if test="rzhr == 'admin'">
<choose> and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '')
<when test="rzhr = 'admin'"> </if>
and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '') <if test="rzhr != null and rzhr != '' and rzhr != 'null' and rzhr != 'admin'">
</when> and t.confirm_user like CONCAT(#{rzhr},'%')
<otherwise>
and t.confirm_user like CONCAT(#{rzhr},'%')
</otherwise>
</choose>
</if> </if>
<if <if
test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' "> test="invoiceNo != null and invoiceNo != '' and invoiceNo != 'null' ">
@ -437,15 +433,11 @@
<if test="qsr != null and qsr != '' and qsr != 'null' "> <if test="qsr != null and qsr != '' and qsr != 'null' ">
and t.qs_name = #{qsr} and t.qs_name = #{qsr}
</if> </if>
<if test="rzhr != null and rzhr != '' and rzhr != 'null' "> <if test="rzhr == 'admin'">
<choose> and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '')
<when test="rzhr = 'admin'"> </if>
and (t.confirm_user = 'admin' or t.confirm_user is null or t.confirm_user = '') <if test="rzhr != null and rzhr != '' and rzhr != 'null' and rzhr != 'admin'">
</when> and t.confirm_user like CONCAT(#{rzhr},'%')
<otherwise>
and t.confirm_user like CONCAT(#{rzhr},'%')
</otherwise>
</choose>
</if> </if>
<if test="paymentDateStart != null and paymentDateStart != '' and paymentDateStart != 'null' "> <if test="paymentDateStart != null and paymentDateStart != '' and paymentDateStart != 'null' ">
<![CDATA[ AND t.payment_date >= #{paymentDateStart} ]]> <![CDATA[ AND t.payment_date >= #{paymentDateStart} ]]>

Loading…
Cancel
Save