package com.cn.securities.mapper
import com.cn.securities.model.po.User
import org.apache.ibatis.annotations.Insert
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Update
/**
* @Author : Cook
* @Date : 2024/12/5
* @Desc :
* @Version:
*/
@Mapper
interface UserMapper{
@Update(
("<script>" +
"<foreach collection='list' item= 'user' index ='id' separator=';'> " +
"update user set name = #{user.name},sex = #{user.outStoreId} where id = #{user.id}" +
"</foreach> " +
" </script>")
)
fun updateUser(userList: List<User>): Int
}
@Update(("SQL语句"))即可