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

release
yefei 2 years ago
parent 57b1c2b5c8
commit 2818adf7c2
  1. 12
      dxhy-base/src/main/java/com/dxhy/base/controller/BaseInvoiceController.java
  2. 10
      dxhy-base/src/main/resources/mapper/BaseFpZhMapper.xml

@ -186,14 +186,10 @@ public class BaseInvoiceController extends AbstractController {
pramsMap.put("xfmc", xfmc);
pramsMap.put("qsr", qsr);
if (StringUtils.isNotBlank(rzhr)) {
if("admin".equals(rzhr)){
pramsMap.put("rzhr", rzhr);
}else {
String[] split = rzhr.split(",");
if (!Arrays.asList(split).contains("")) {
String[] split1 = rzhr.split(",");
pramsMap.put("rzhr", Arrays.asList(split1));
}
String[] split = rzhr.split(",");
if (!Arrays.asList(split).contains("")) {
String[] split1 = rzhr.split(",");
pramsMap.put("rzhr", Arrays.asList(split1));
}
}

@ -155,10 +155,7 @@
<if test="qsr != null and qsr != '' and qsr != 'null' ">
and t.qs_name = #{qsr}
</if>
<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'">
<if test="rzhr != null and rzhr != '' and rzhr != 'null'">
and t.confirm_user in
<foreach collection="rzhr" index="index" item="item" open="(" separator="," close=")">
#{item}
@ -436,10 +433,7 @@
<if test="qsr != null and qsr != '' and qsr != 'null' ">
and t.qs_name = #{qsr}
</if>
<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'">
<if test="rzhr != null and rzhr != '' and rzhr != 'null'">
and t.confirm_user in
<foreach collection="rzhr" index="index" item="item" open="(" separator="," close=")">
#{item}

Loading…
Cancel
Save