|
@@ -5,29 +5,29 @@ import java.util.List;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * �务层共通基类
|
|
|
|
|
|
+ * ·þÎñ²ã¹²Í¨»ùÀà
|
|
*
|
|
*
|
|
- * @author �晓冬
|
|
|
|
|
|
+ * @author Ô¬Ïþ¶¬
|
|
*
|
|
*
|
|
* @param <T>
|
|
* @param <T>
|
|
*/
|
|
*/
|
|
public abstract class BaseServiceImpl<T> implements BaseService<T> {
|
|
public abstract class BaseServiceImpl<T> implements BaseService<T> {
|
|
/**
|
|
/**
|
|
- * 获�数�库�作接�
|
|
|
|
|
|
+ * »ñÈ¡Êý¾Ý¿â²Ù×÷½Ó¿Ú
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
protected abstract BaseMapper<T> getMapper();
|
|
protected abstract BaseMapper<T> getMapper();
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 获�检查过的Mapper对象
|
|
|
|
|
|
+ * »ñÈ¡¼ì²é¹ýµÄMapper¶ÔÏó
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
private BaseMapper<T> getCheckedMapper() {
|
|
private BaseMapper<T> getCheckedMapper() {
|
|
BaseMapper<T> mapper = getMapper();
|
|
BaseMapper<T> mapper = getMapper();
|
|
if (null == mapper) {
|
|
if (null == mapper) {
|
|
- throw new RuntimeException("mapper �能为空�");
|
|
|
|
|
|
+ throw new RuntimeException("mapper ²»ÄÜΪ¿Õ£¡");
|
|
}
|
|
}
|
|
return mapper;
|
|
return mapper;
|
|
}
|
|
}
|