package com.danchu.momuck.mapper;

import java.util.HashMap;
import java.util.List;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.danchu.momuck.dao.FoodDao;
import com.danchu.momuck.vo.Food;


/**
 * FoodMapper
 * 
 * @author lhbv1
 */
@Repository
public class FoodMapper implements FoodDao {
	
	@Autowired
	private SqlSessionTemplate sqlSession;

	private static final String namespace = "Food";
	
	public List<Food> selectFoodList(int page) {
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("offset", 0+10*(page-1));
		return sqlSession.selectList(namespace + ".getAllFoodList", map);
	}
	
	public List<Food> selectFoodListByCategory(String category, int page) {
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("offset", 0+10*(page-1));
		map.put("category", category);
		return sqlSession.selectList(namespace + ".getCategoryFoodList", map);
	}
}

@@ -464,16 +464,24 @@
 lSession
+Template
 ;%0A%0A%09priv
@@ -504,25 +504,25 @@
  String 
-namespace
+NAMESPACE
  = %22Food
@@ -682,32 +682,40 @@
 eturn sqlSession
+Template
 .selectList(name
@@ -706,33 +706,33 @@
 .selectList(
-namespace
+NAMESPACE
  + %22.getAllF
@@ -976,16 +976,24 @@
 lSession
+Template
 .selectL
@@ -1000,17 +1000,17 @@
 ist(
-namespace
+NAMESPACE
  + %22

Fix typo