mapper:
public interface UserMapper extends IBaseMapper
}
IBaseMapper:
package com.szyungu.ecommunity.base.service;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface IBaseMapper
int countByCondition(C condition);
int insert(R record);
int insertSelective(R record);
int updateByPrimaryKeySelective(R record);
int updateByPrimaryKey(R record);
int updateByConditionSelective(@Param("record") R record, @Param("example") C condition);
int updateByCondition(@Param("record") R record, @Param("example") C condition);
int deleteByCondition(C condition);
int deleteByPrimaryKey(PK id);
R selectByPrimaryKey(PK id);
List
}
controller:
就是普通的spring mvc的controller
楼主,没有看到问题的描述呢,到底是怎样的问题呢