Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
ca056506
Commit
ca056506
authored
Mar 02, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
物理删除改为逻辑删除
parent
2c30edac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
25 deletions
+30
-25
TabHaobanMenuMapper.xml
...ce/src/main/resources/mapper/role/TabHaobanMenuMapper.xml
+11
-6
TabHaobanRoleMapper.xml
...ce/src/main/resources/mapper/role/TabHaobanRoleMapper.xml
+8
-8
TabHaobanRoleMenuMapper.xml
...rc/main/resources/mapper/role/TabHaobanRoleMenuMapper.xml
+11
-11
No files found.
haoban-manage3-service/src/main/resources/mapper/role/TabHaobanMenuMapper.xml
View file @
ca056506
...
...
@@ -27,7 +27,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_menu
where menu_code = #{menuCode}
where menu_code = #{menuCode}
and status_flag = 1
</select>
<!--新增所有列-->
...
...
@@ -89,7 +89,7 @@
update_time = #{updateTime},
</if>
</set>
where menu_code = #{menuCode}
where menu_code = #{menuCode}
and status_flag = 1
</update>
<select
id=
"getAllMenuList"
resultMap=
"TabHaobanMenuMap"
>
...
...
@@ -129,6 +129,8 @@
where
b.clerk_type = #{clerkType}
and b.wx_enterprise_id = #{wxEnterpriseId}
and a.status_flag = 1
and b.status_flag = 1
and c.status_flag = 1
and c.menu_code = c.parent_code
<if
test=
"systemFlag != null"
>
...
...
@@ -146,6 +148,8 @@
where
b.clerk_type = #{clerkType}
and b.wx_enterprise_id = #{wxEnterpriseId}
and a.status_flag = 1
and b.status_flag = 1
and c.status_flag = 1
and c.menu_code != c.parent_code
<if
test=
"systemFlag != null"
>
...
...
@@ -164,6 +168,8 @@
where
b.clerk_type = #{clerkType}
and b.wx_enterprise_id = #{wxEnterpriseId}
and a.status_flag = 1
and b.status_flag = 1
and c.status_flag = 1
<if
test=
"systemFlag != null"
>
and b.system_flag = #{systemFlag}
...
...
@@ -211,10 +217,9 @@
where status_flag = 1 and menu_code = #{menuCode}
</select>
<delete
id=
"deleteAll"
>
delete
from tab_haoban_menu
</delete>
<update
id=
"deleteAll"
>
UPDATE tab_haoban_menu SET status_flag = 0
</update>
</mapper>
haoban-manage3-service/src/main/resources/mapper/role/TabHaobanRoleMapper.xml
View file @
ca056506
...
...
@@ -26,7 +26,7 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_role
where role_id = #{roleId}
where role_id = #{roleId}
and status_flag = 1
</select>
<insert
id=
"insertBatch"
keyProperty=
"roleId"
useGeneratedKeys=
"true"
>
...
...
@@ -80,14 +80,14 @@
system_flag = #{systemFlag},
</if>
</set>
where role_id = #{roleId}
where role_id = #{roleId}
and status_flag = 1
</update>
<select
id=
"getByWxEnterpriseIdAndClerkType"
resultMap=
"TabHaobanRoleMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_role
where wx_enterprise_id = #{wxEnterpriseId}
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
<if
test=
"clerkType != null"
>
and clerk_type = #{clerkType}
</if>
...
...
@@ -101,7 +101,7 @@
select
count(*)
from tab_haoban_role
where wx_enterprise_id = #{wxEnterpriseId}
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
<if
test=
"systemFlag != null"
>
and system_flag = #{systemFlag}
</if>
...
...
@@ -111,18 +111,18 @@
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_role
where wx_enterprise_id = #{wxEnterpriseId}
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
<if
test=
"systemFlag != null"
>
and system_flag = #{systemFlag}
</if>
</select>
<
dele
te
id=
"deleteByWxEnterpriseId"
>
delete from tab_haoban_role
where wx_enterprise_id = #{wxEnterpriseId}
<
upda
te
id=
"deleteByWxEnterpriseId"
>
UPDATE tab_haoban_role SET status_flag = 0
where wx_enterprise_id = #{wxEnterpriseId}
<if
test=
"systemFlag != null"
>
and system_flag = #{systemFlag}
</if>
</
dele
te>
</
upda
te>
</mapper>
haoban-manage3-service/src/main/resources/mapper/role/TabHaobanRoleMenuMapper.xml
View file @
ca056506
...
...
@@ -26,37 +26,37 @@
<
dele
te
id=
"deleteByRoleId"
>
delete from tab_haoban_role_menu
where role_id = #{roleId}
</
dele
te>
<
upda
te
id=
"deleteByRoleId"
>
UPDATE tab_haoban_role_menu SET status_flag = 0
where role_id = #{roleId}
</
upda
te>
<select
id=
"getByWxEnterpriseIdAndRoleId"
resultType=
"java.lang.String"
>
select
menu_code
from tab_haoban_role_menu
where wx_enterprise_id = #{wxEnterpriseId} and role_id = #{roleId}
where wx_enterprise_id = #{wxEnterpriseId} and role_id = #{roleId}
and status_flag = 1
</select>
<
dele
te
id=
"deleteByWxEnterpriseId"
>
delete from tab_haoban_role_menu
where wx_enterprise_id = #{wxEnterpriseId}
</
dele
te>
<
upda
te
id=
"deleteByWxEnterpriseId"
>
UPDATE tab_haoban_role_menu SET status_flag = 0
where wx_enterprise_id = #{wxEnterpriseId}
</
upda
te>
<select
id=
"getMenuInMenuCodes"
resultType=
"java.lang.String"
>
select
menu_code
from tab_haoban_role_menu
where wx_enterprise_id = #{wxEnterpriseId} and role_id = #{roleId}
where wx_enterprise_id = #{wxEnterpriseId} and role_id = #{roleId}
and status_flag = 1
and menu_code in
<foreach
collection=
"menuCodes"
open=
"("
close=
")"
separator=
","
item=
"item"
>
#{item}
</foreach>
</select>
<
dele
te
id=
"deleteByMenuCode"
>
delete from tab_haoban_role_menu
where wx_enterprise_id = #{wxEnterpriseId} and menu_code = #{menuCode}
</
dele
te>
<
upda
te
id=
"deleteByMenuCode"
>
UPDATE tab_haoban_role_menu SET status_flag = 0
where wx_enterprise_id = #{wxEnterpriseId} and menu_code = #{menuCode}
</
upda
te>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment