返回cate和list数量
This commit is contained in:
@@ -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();
|
||||
}
|
Reference in New Issue
Block a user