where delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
<iftest="phone != null and phone != '' ">
and phone = #{phone}
</if>
...
...
@@ -179,13 +176,13 @@
limit 1
</select>
<updateid="delAuditor">
update tab_auditor set status = 0 where status = 1 and auditor_id = #{auditorId}
update tab_auditor set delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@DELETE_STATUS} where delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS} and auditor_id = #{auditorId}
</update>
<selectid="listAuditor"resultMap="BaseResultMap">
select
<includerefid="Base_Column_List"/>
from tab_auditor
where status = 1
where delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
<iftest="auditorName != null and auditorName != '' ">
and auditor_name like concat('%', #{auditorName}, '%')
</if>
...
...
@@ -213,7 +210,7 @@
</if>
</where>
and is_use = 1
and status = 1
and delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and parent_id = #{parentId}
<iftest="project != null">
and project = #{project}
...
...
@@ -361,7 +429,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and parent_id = #{parentId}
and menu_type = 2
order by sort
...
...
@@ -371,7 +439,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and parent_id = #{parentId}
and project = #{project}
order by sort
...
...
@@ -381,7 +449,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
<iftest="search != null and search != '' ">
and ( menu_name like concat('%', #{search}, '%') or menu_code like concat('%', #{search}, '%') or parent_code like concat('%', #{search}, '%') or menu_url like concat('%', #{search}, '%') )
</if>
...
...
@@ -400,7 +468,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
<iftest="null != menuIdList and menuIdList.size() > 0">
(select count(DISTINCT b.item_id) from tab_sys_menu_item b where a.menu_id = b.menu_id and b.status = 1 ) operationItemCount
(select count(DISTINCT b.item_id) from tab_sys_menu_item b where a.menu_id = b.menu_id and b.delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS} ) operationItemCount
from tab_sys_menu a
where a.status=1
where a.delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and a.parent_id = #{menuId}
<includerefid="role_filter"/>
</select>
...
...
@@ -454,7 +545,7 @@
select
count(1)
from tab_sys_menu
where status = 1
where delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and parent_id = #{menuId}
</select>
...
...
@@ -462,7 +553,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
<iftest="project != null">
and project = #{project}
</if>
...
...
@@ -486,7 +577,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and project != 'gic'
and platform_type = 0
<includerefid="tree_filter"/>
...
...
@@ -502,7 +593,7 @@
select
<includerefid="Base_Column_List"/>
from tab_sys_menu
where status=1
where delete_flag=${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and project != 'gic'
and platform_type = 0
<includerefid="tree_filter"/>
...
...
@@ -529,7 +620,7 @@
<selectid="countByMenuCode"resultType="int">
SELECT count(1) from tab_sys_menu
where status = 1
where delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
(select count(DISTINCT b.user_id) from tab_sys_user_role b where a.role_id = b.role_id and b.status = 1 ) authUserCount
(select count(DISTINCT b.user_id) from tab_sys_user_role b where a.role_id = b.role_id and b.delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS} ) authUserCount
from tab_sys_role a
where a.status = 1
where a.delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}
and a.enterprise_id = #{enterpriseId}
<iftest="search != null and search != '' ">
and ( a.role_name like concat('%', #{search}, '%') )
...
...
@@ -120,23 +117,23 @@
</select>
<updateid="deleteByRoleId">
update tab_sys_role set status = 0
update tab_sys_role set delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@DELETE_STATUS}
where role_id = #{roleId}
and status = 1
and delete_flag = ${@com.gic.auth.constant.DeleteFlagConstants@NORMAL_STATUS}