All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.addplus.server.security.service.mapper.SysRoleMenuElementMapper Maven / Gradle / Ivy

The newest version!
package com.addplus.server.security.service.mapper;

import com.addplus.server.core.model.authority.data.SysRoleMenuElement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SysRoleMenuElementMapper extends BaseMapper {

   @Select("")
   List getRoleMenuElement(@Param("rds") List rds);

   @Update("UPDATE sys_role_menu_element \n" +
           "SET is_deleted = 1 \n" +
           "WHERE\n" +
           " e_id = #{eId} AND is_deleted = 0")
   Integer updateRoleMenuElementDeleteByeId(@Param("eId") Integer eid);

   @Update("")
   Integer updateLogicallyDeleteBymenuElementId(@Param("rds") List mid);

   @Update("UPDATE sys_role_menu_element \n" +
           "SET is_deleted = 1 \n" +
           "WHERE\n" +
           " r_id = #{rId} AND is_deleted = 0")
   Integer updateLogicallyDeleteByRoleId(@Param("rId") Long rId);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy