package service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import dao.PlatformDao;


@Service("PlatformServiceImp")
public class PlatformServiceImp implements PlatformService{

	@Resource(name = "PlatformDaoImp")
	private PlatformDao PlatformDaoImp;
	
	@Override
	public Boolean removeExchange(String request_id, String user_from)
	{
		Boolean flag = PlatformDaoImp.removeExchange(request_id, user_from);		
		System.out.println("flag: " + flag);
		return flag;
	}
	
	@Override
	public Boolean declineExchange(String request_id, String user_to)
	{
		Boolean flag = PlatformDaoImp.declineExchange(request_id, user_to);		
		System.out.println("flag: " + flag);
		return flag;		
	}
	
	@Override
	public Boolean removeOffer(String offer_id, String user_id)
	{
		Boolean flag = PlatformDaoImp.removeOffer(offer_id, user_id);		
		System.out.println("flag: " + flag);
		return flag;	
	}
}

@@ -914,10 +914,219 @@
 ag;%09%0A%09%7D%0A
+%09%0A%09@Override%0A%09public List%3CRequest%3E showLatestTransaction(Integer sellerFrom, Integer sellerTo)%0A%09%7B%0A%09%09List%3CRequest%3E requests = PlatformDaoImp.showLatestTransaction(sellerFrom, sellerTo);%09%09%0A%09%09return requests;%0A%09%7D%0A
 %7D%0A

Update PlatformServiceImp.java