diff --git a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeKeeperMapper.java b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeKeeperMapper.java index aeaaff0f..d23dbc02 100644 --- a/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeKeeperMapper.java +++ b/bonus-modules/bonus-material/src/main/java/com/bonus/material/ma/mapper/TypeKeeperMapper.java @@ -3,6 +3,7 @@ package com.bonus.material.ma.mapper; import java.util.List; import com.bonus.material.ma.domain.TypeKeeper; import org.apache.ibatis.annotations.Mapper; +import org.apache.ibatis.annotations.Param; /** * 库管员配置Mapper接口 @@ -41,7 +42,7 @@ public interface TypeKeeperMapper { * @param typeKeepers 库管员配置 * @return 结果 */ - int insertTypeKeeper(List typeKeepers); + int insertTypeKeeper(@Param("list") List typeKeepers); /** * 修改库管员配置 @@ -70,5 +71,5 @@ public interface TypeKeeperMapper { /** * 根据用户ID和物资类型ID删除库管员配置 */ - int deleteTypeKeeperByUserIdAndTypeId(List typeKeepers); + int deleteTypeKeeperByUserIdAndTypeId(@Param("list") List typeKeepers); } diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeKeeperMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeKeeperMapper.xml index e0c1df7c..3df57662 100644 --- a/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeKeeperMapper.xml +++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/ma/TypeKeeperMapper.xml @@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into ma_type_keeper (type_id,user_id,create_time,update_time,company_id) values - + ( #{item.typeId}, #{item.userId}, @@ -88,14 +88,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" delete from ma_type_keeper where type_id in - + ( #{item.typeId} ) and user_id in - + ( #{item.userId} )