From 21fb5e8d87b08a52330ee579f9c2f170f61c9344 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Thu, 31 Oct 2024 18:58:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E7=AE=A1=E5=91=98=E6=9C=BA=E5=85=B7?= =?UTF-8?q?=E5=85=B3=E8=81=94=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/bonus/material/ma/mapper/TypeKeeperMapper.java | 5 +++-- .../main/resources/mapper/material/ma/TypeKeeperMapper.xml | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) 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} )