src/main/java/com/xtu/hrms/mapper/DeptMapper.java
(完整代码) 666Bpackage com.xtu.hrms.mapper;
import com.xtu.hrms.bean.Dept;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;
import java.util.List;
// 指定这是一个操作数据库的Mapper
@Mapper
@Repository
public interface DeptMapper {
// 根据id查询部门
// @Select("select * from dept where id=#{id}")
Dept getDeptById(Integer id);
// 查询所有部门
List<Dept> getAllDepts();
// 根据id删除部门
int deleteDeptById(Integer id);
// 添加部门
int addDept(Dept dept);
// 更新部门
// @Update("update dept set name=#{name} where id=#{id}")
int updateDept(Dept dept);
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。