public interface RoleService { public Yuangong insertYG(Yuangong yuanGong); public Yuangong deleteYG(Yuangong yuanGong); public Yuangong upateYG(Yuangong yuanGong); public Yuangong findByYgBH(String ygbh); public List<Yuangong> findByKeyWord(String keyWord);
}
public class RoleServiceImpl implements RoleService {
private RoleDao roleDao;
public void setRoleDao(RoleDao roleDao) { this.roleDao = roleDao; }
@Override public Yuangong insertYG(Yuangong yuanGong) {
return roleDao.insert(yuanGong); }
public interface RoleDao {
public Yuangong insert(Yuangong yuanGong); public Yuangong update(Yuangong yuanGong); public Yuangong delete(Yuangong yuanGong); public Yuangong findByYgBH(String ygbh); public List<Yuangong> findByKeyWord(String keyWord);