src/com/xx/supermarket/base/BaseServiceImpl.java

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.xx.supermarket.base;

import java.io.Serializable;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xx.supermarket.utils.Pager;
import com.xx.supermarket.utils.SystemContext;

public abstract  class BaseServiceImpl<T> implements BaseService<T>{

    private BaseDao<T> baseDao;  
    public abstract BaseDao<T> getBaseDao();  
	@Override
	public int insert(T entity) {
		return this.getBaseDao().insert(entity);
	}
	@Override
	public void insert(String sqlId, T obj) {
		this.getBaseDao().insert(sqlId, obj);
	}
	@Override
	public void deleteById(Serializable id) {
		this.getBaseDao().deleteById(id);
	}
	@Override
	public void deleteBySqId(String sqlId, Map<String, Object> params) {
		this.getBaseDao().deleteBySqId(sqlId, params);
	}
	@Override
	public void update(T entity) {
		this.getBaseDao().update(entity);
	}
	@Override
	public List<T> list(Map<String, Object> params) {
		return this.getBaseDao().list(params);
	}
	@Override
	public List<T> list(String sqlId, Map<String, Object> params) {
		return this.getBaseDao().list(sqlId, params);
	}
	@Override
	public List<T> listAll() {
		return this.getBaseDao().listAll();
	}
	@Override
	public List<T> listAllByEntity(T entity) {
		return this.getBaseDao().listAllByEntity(entity);
	}
	@Override
	public T load(Serializable id) {
		return this.getBaseDao().load(id);
	}
后面还有 77 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。