From 3689060ff95bf42e7bf53b066ec06d22e5c0b700 Mon Sep 17 00:00:00 2001 From: "bin.li" Date: Thu, 25 Feb 2021 18:44:18 +0800 Subject: [PATCH] =?UTF-8?q?perft:=E5=88=A0=E9=99=A4=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=85=B3=E8=81=94=E8=A7=92=E8=89=B2=E6=8E=A5=E5=8F=A3-?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1:解决数据操作传递参数缺少@Param注解,mybatis传参需要确定param命名 --- .../src/main/java/edp/davinci/dao/RelRoleDashboardMapper.java | 2 +- .../main/java/edp/davinci/dao/RelRoleDashboardWidgetMapper.java | 2 +- server/src/main/java/edp/davinci/dao/RelRoleDisplayMapper.java | 2 +- .../java/edp/davinci/dao/RelRoleDisplaySlideWidgetMapper.java | 2 +- server/src/main/java/edp/davinci/dao/RelRolePortalMapper.java | 2 +- server/src/main/java/edp/davinci/dao/RelRoleSlideMapper.java | 2 +- server/src/main/java/edp/davinci/dao/RelRoleViewMapper.java | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/server/src/main/java/edp/davinci/dao/RelRoleDashboardMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleDashboardMapper.java index eee86fed2..a1dc90aca 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleDashboardMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleDashboardMapper.java @@ -90,5 +90,5 @@ public interface RelRoleDashboardMapper { "select d.id from dashboard d left join dashboard_portal p on p.id = d.dashboard_portal_id ", "where p.project_id = #{projectId})" }) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRoleDashboardWidgetMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleDashboardWidgetMapper.java index 958823202..564f5dada 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleDashboardWidgetMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleDashboardWidgetMapper.java @@ -83,6 +83,6 @@ public interface RelRoleDashboardWidgetMapper { "INNER JOIN dashboard_portal dp ON dp.id = d.dashboard_portal_id " + "WHERE dp.project_id = #{projectId} " + ") "}) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRoleDisplayMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleDisplayMapper.java index 87b286301..b69ce59b3 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleDisplayMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleDisplayMapper.java @@ -78,5 +78,5 @@ public interface RelRoleDisplayMapper { int deleteByProject(Long projectId); @Delete({"delete from rel_role_display where role_id = #{roleId} and display_id in (select id from display where project_id = #{projectId})"}) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRoleDisplaySlideWidgetMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleDisplaySlideWidgetMapper.java index 4827f658e..0521dd0bf 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleDisplaySlideWidgetMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleDisplaySlideWidgetMapper.java @@ -84,7 +84,7 @@ public interface RelRoleDisplaySlideWidgetMapper { "INNER JOIN display d ON d.id = ds.display_id " + "WHERE d.project_id = #{projectId} " + ") "}) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); int copyRoleSlideWidgetRelation(@Param("relSlideCopies") List memCopies, @Param("userId") Long userId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRolePortalMapper.java b/server/src/main/java/edp/davinci/dao/RelRolePortalMapper.java index ec903a363..cf8b0ce4e 100644 --- a/server/src/main/java/edp/davinci/dao/RelRolePortalMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRolePortalMapper.java @@ -69,5 +69,5 @@ public interface RelRolePortalMapper { int deleteByProject(Long projectId); @Delete({"delete from rel_role_portal where role_id = #{roleId} and portal_id in (select id from dashboard_portal where project_id = #{projectId})"}) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRoleSlideMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleSlideMapper.java index f09973e29..cc6b232b4 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleSlideMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleSlideMapper.java @@ -92,5 +92,5 @@ public interface RelRoleSlideMapper { "left join display d on d.id = ds.display_id ", "where d.project_id = #{projectId})" }) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file diff --git a/server/src/main/java/edp/davinci/dao/RelRoleViewMapper.java b/server/src/main/java/edp/davinci/dao/RelRoleViewMapper.java index 7d2237e85..d5301e980 100644 --- a/server/src/main/java/edp/davinci/dao/RelRoleViewMapper.java +++ b/server/src/main/java/edp/davinci/dao/RelRoleViewMapper.java @@ -81,5 +81,5 @@ public interface RelRoleViewMapper { @Delete({ "delete from rel_role_view where role_id = #{roleId} and view_id in (select id from view where project_id = #{projectId})" }) - int deleteByRoleAndProject(Long roleId, Long projectId); + int deleteByRoleAndProject(@Param("roleId") Long roleId, @Param("projectId") Long projectId); } \ No newline at end of file