返回cate和list数量

This commit is contained in:
2023-12-25 14:17:18 +08:00
parent 0f2a954882
commit a2fe05df1d
20 changed files with 158 additions and 40 deletions

View File

@@ -1,9 +1,11 @@
package com.lovenav.dao;
import com.lovenav.entity.Nav;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import java.util.HashMap;
import java.util.List;
@Repository
@@ -22,6 +24,6 @@ public interface NavDao {
int updateByPrimaryKey(Nav record);
Nav selectAlreadyExist(Nav nav);
List<Nav> selectAllNav();
@MapKey("id")
HashMap<Integer,Object> selectAllNav();
}