浏览代码

生活服务BUG

qinhouyu 1 年之前
父节点
当前提交
d1c441eb83

+ 4 - 3
sooka-jnb/src/main/java/com/sooka/jnb/highServer/mapper/JnbHighServerMapper.java

@@ -2,6 +2,7 @@ package com.sooka.jnb.highServer.mapper;
 
 import com.sooka.jnb.highServer.domain.JnbHighServer;
 import com.sooka.jnb.highServer.vo.JnbHighServerVO;
+import org.apache.ibatis.annotations.Param;
 
 import java.util.List;
 
@@ -18,7 +19,7 @@ public interface JnbHighServerMapper {
      * @param id 高频服务主键
      * @return 高频服务
      */
-    public JnbHighServerVO selectJnbHighServerById(Long id,Integer type);
+    public JnbHighServerVO selectJnbHighServerById(@Param("id") Long id, @Param("type")  Integer type);
 
     /**
      * 查询高频服务列表
@@ -50,7 +51,7 @@ public interface JnbHighServerMapper {
      * @param id 高频服务主键
      * @return 结果
      */
-    public int deleteJnbHighServerById(Long id,Integer type);
+    public int deleteJnbHighServerById(@Param("id") Long id, @Param("type")  Integer type);
 
     /**
      * 批量删除高频服务
@@ -58,5 +59,5 @@ public interface JnbHighServerMapper {
      * @param ids 需要删除的数据主键集合
      * @return 结果
      */
-    public int deleteJnbHighServerByIds(Long[] ids,Integer type);
+    public int deleteJnbHighServerByIds(@Param("ids") Long[] ids, @Param("type")  Integer type);
 }

+ 1 - 1
sooka-jnb/src/main/resources/mapper/highServer/JnbHighServerMapper.xml

@@ -94,7 +94,7 @@
 
     <delete id="deleteJnbHighServerByIds">
         update jnb_high_server set del_flag = 1 where type = #{type} and id in
-        <foreach item="id" collection="array" open="(" separator="," close=")">
+        <foreach item="id" collection="ids" open="(" separator="," close=")">
             #{id}
         </foreach>
     </delete>