Commit 7b7e5ba0 by 陶光胜

Merge branch 'developer' into 'master'

Developer

See merge request !16
parents 2d7e4ab3 ad615ef2
...@@ -683,13 +683,7 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -683,13 +683,7 @@ public class MenuApiServiceImpl implements MenuApiService {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "不存在或者不是应用对应的code"); return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "不存在或者不是应用对应的code");
} }
//临时表(测试环境的菜单数据) //临时表(测试环境的菜单数据)
List<TabSysMenu> devMenuList; List<TabSysMenu> devMenuList = menuService.listMenuTempForGic(tabSysMenu.getMenuCode());
if (tabSysMenu.getProject().equals("gic")) {
devMenuList = menuService.listMenuTempForGic(tabSysMenu.getMenuCode());
} else {
String appId = tabSysMenu.getProject();
devMenuList = menuService.listMenuTemp(appId);
}
if (CollectionUtils.isNotEmpty(devMenuList)) { if (CollectionUtils.isNotEmpty(devMenuList)) {
devMenuList.forEach(menu -> { devMenuList.forEach(menu -> {
TabSysMenu temp = menuService.getMenuByMenuCode(menu.getMenuCode()); TabSysMenu temp = menuService.getMenuByMenuCode(menu.getMenuCode());
...@@ -705,6 +699,7 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -705,6 +699,7 @@ public class MenuApiServiceImpl implements MenuApiService {
menu.setParentCode(tabSysMenu.getMenuCode()); menu.setParentCode(tabSysMenu.getMenuCode());
menu.setMenuVersion(tabSysMenu.getMenuVersion()); menu.setMenuVersion(tabSysMenu.getMenuVersion());
menu.setMenuVersionName(tabSysMenu.getMenuVersionName()); menu.setMenuVersionName(tabSysMenu.getMenuVersionName());
menu.setProject(tabSysMenu.getProject());
//避免冲突 //避免冲突
menu.setMenuId(null); menu.setMenuId(null);
menuService.savePage(EntityUtil.changeEntityNew(MenuDTO.class, menu)); menuService.savePage(EntityUtil.changeEntityNew(MenuDTO.class, menu));
...@@ -714,6 +709,7 @@ public class MenuApiServiceImpl implements MenuApiService { ...@@ -714,6 +709,7 @@ public class MenuApiServiceImpl implements MenuApiService {
menu.setParentId(otherLevel.getMenuId()); menu.setParentId(otherLevel.getMenuId());
menu.setMenuVersion(tabSysMenu.getMenuVersion()); menu.setMenuVersion(tabSysMenu.getMenuVersion());
menu.setMenuVersionName(tabSysMenu.getMenuVersionName()); menu.setMenuVersionName(tabSysMenu.getMenuVersionName());
menu.setProject(tabSysMenu.getProject());
//避免冲突 //避免冲突
menu.setMenuId(null); menu.setMenuId(null);
menuService.savePage(EntityUtil.changeEntityNew(MenuDTO.class, menu)); menuService.savePage(EntityUtil.changeEntityNew(MenuDTO.class, menu));
......
...@@ -259,7 +259,7 @@ ...@@ -259,7 +259,7 @@
</select> </select>
<update id="deleteByPhoneAndAppId"> <update id="deleteByPhoneAndAppId">
update tab_sys_collaborator set status = 0 update tab_sys_collaborator set status = 0, update_time = now()
where collaboration_enterprise_id = #{enterpriseId} where collaboration_enterprise_id = #{enterpriseId}
and phone = #{phone} and phone = #{phone}
and app_id = #{appId} and app_id = #{appId}
......
...@@ -371,7 +371,7 @@ ...@@ -371,7 +371,7 @@
from tab_sys_menu from tab_sys_menu
where status=1 where status=1
<if test="search != null and search != '' "> <if test="search != null and search != '' ">
and ( menu_name like concat('%', #{search}, '%') or menu_code like concat('%', #{search}, '%') or parent_code like concat('%', #{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> </if>
<if test="isGIC == 1"> <if test="isGIC == 1">
and project = 'gic' and project = 'gic'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment