组态添加全局的概念
This commit is contained in:
@@ -25,11 +25,14 @@
|
|||||||
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
AND (a.scope = 1
|
<choose>
|
||||||
<if test="userId != null and userId != ''">
|
<when test="userId != null and userId != ''">
|
||||||
OR (a.scope = 0 AND a.create_by = #{userId})
|
AND (a.scope = 1 OR (a.scope = 0 AND a.create_by = #{userId}))
|
||||||
</if>
|
</when>
|
||||||
)
|
<otherwise>
|
||||||
|
AND (a.scope = 1 OR a.scope = 0)
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
<if test="temp!=null and temp.searchValue != null and temp.searchValue !=''">
|
<if test="temp!=null and temp.searchValue != null and temp.searchValue !=''">
|
||||||
AND a.name like concat(concat("%",#{temp.searchValue}),"%")
|
AND a.name like concat(concat("%",#{temp.searchValue}),"%")
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -125,7 +125,7 @@ public class CsConfigurationServiceImpl extends ServiceImpl<CsConfigurationMappe
|
|||||||
data1.add(DataParam.WIRELESS_PROJECT_ID);
|
data1.add(DataParam.WIRELESS_PROJECT_ID);
|
||||||
String userId = csConfigurationQueryParam.getCurrentUserId();
|
String userId = csConfigurationQueryParam.getCurrentUserId();
|
||||||
String roleCode = csConfigurationQueryParam.getRoleCode();
|
String roleCode = csConfigurationQueryParam.getRoleCode();
|
||||||
if (roleCode.indexOf("operation_manager") > 0) {
|
if (roleCode.contains("operation_manager")) {
|
||||||
userId = null;
|
userId = null;
|
||||||
}
|
}
|
||||||
Page<CsConfigurationPO> csConfigurationPOPage = this.getBaseMapper().queryPage(temppage, csConfigurationQueryParam, data1, userId);
|
Page<CsConfigurationPO> csConfigurationPOPage = this.getBaseMapper().queryPage(temppage, csConfigurationQueryParam, data1, userId);
|
||||||
|
|||||||
Reference in New Issue
Block a user