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