|
@@ -47,7 +47,7 @@
|
|
|
</sql>
|
|
</sql>
|
|
|
<sql id="filterCompanyData">
|
|
<sql id="filterCompanyData">
|
|
|
<if test="roleCodes != null and roleCodes.size > 0 and dilCompanyList != null and dilCompanyList.size > 0" >
|
|
<if test="roleCodes != null and roleCodes.size > 0 and dilCompanyList != null and dilCompanyList.size > 0" >
|
|
|
- AND
|
|
|
|
|
|
|
+ AND
|
|
|
<foreach collection="roleCodes" index="index" item="item" separator="or" close=")" open="(">
|
|
<foreach collection="roleCodes" index="index" item="item" separator="or" close=")" open="(">
|
|
|
<choose>
|
|
<choose>
|
|
|
<when test="item == 'chengYunShang'">
|
|
<when test="item == 'chengYunShang'">
|
|
@@ -78,8 +78,18 @@
|
|
|
#{item.companyId}
|
|
#{item.companyId}
|
|
|
</foreach>
|
|
</foreach>
|
|
|
</when>
|
|
</when>
|
|
|
|
|
+ <when test="item == 'approveBusinessCompany'">
|
|
|
|
|
+ "approveBusinessCompanyId"
|
|
|
|
|
+ in
|
|
|
|
|
+ <foreach collection="dilCompanyList" open="(" close=")" separator="," item="item" index="index">
|
|
|
|
|
+ #{item.companyId}
|
|
|
|
|
+ </foreach>
|
|
|
|
|
+ </when>
|
|
|
|
|
+ <when test="item.contains('admin')">
|
|
|
|
|
+ 1 = 1
|
|
|
|
|
+ </when>
|
|
|
<otherwise>
|
|
<otherwise>
|
|
|
- 1 = 1
|
|
|
|
|
|
|
+ 1 != 1
|
|
|
</otherwise>
|
|
</otherwise>
|
|
|
</choose>
|
|
</choose>
|
|
|
</foreach>
|
|
</foreach>
|