Subversion Repositories SmartDukaan

Rev

Rev 22551 | Rev 22927 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22551 Rev 22860
Line 17... Line 17...
17
import org.springframework.web.bind.annotation.RequestParam;
17
import org.springframework.web.bind.annotation.RequestParam;
18
 
18
 
19
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
19
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
20
import com.spice.profitmandi.common.model.ProfitMandiConstants;
20
import com.spice.profitmandi.common.model.ProfitMandiConstants;
21
import com.spice.profitmandi.common.util.StringUtils;
21
import com.spice.profitmandi.common.util.StringUtils;
22
import com.spice.profitmandi.dao.entity.fofo.FofoOrder;
-
 
23
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
22
import com.spice.profitmandi.dao.entity.transaction.UserWallet;
24
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
23
import com.spice.profitmandi.dao.entity.transaction.UserWalletHistory;
25
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
24
import com.spice.profitmandi.dao.repository.transaction.UserWalletRepository;
26
import com.spice.profitmandi.service.wallet.WalletService;
25
import com.spice.profitmandi.service.wallet.WalletService;
27
import com.spice.profitmandi.web.model.LoginDetails;
26
import com.spice.profitmandi.web.model.LoginDetails;
Line 54... Line 53...
54
		} catch (ProfitMandiBusinessException e) {
53
		} catch (ProfitMandiBusinessException e) {
55
			model.addAttribute("loginResponse", mvcResponseSender.createResponseString("RTLR_1009", false, "/login"));
54
			model.addAttribute("loginResponse", mvcResponseSender.createResponseString("RTLR_1009", false, "/login"));
56
			return "response";
55
			return "response";
57
		}
56
		}
58
		
57
		
59
		fofoDetails.setFofoId(483649);
-
 
60
		
-
 
61
		UserWallet userWallet = null;
58
		UserWallet userWallet = null;
62
		try{
59
		try{
63
			userWallet = userWalletRepository.selectByRetailerId(fofoDetails.getFofoId());
60
			userWallet = userWalletRepository.selectByRetailerId(fofoDetails.getFofoId());
64
		}catch(ProfitMandiBusinessException profitMandiBusinessException){
61
		}catch(ProfitMandiBusinessException profitMandiBusinessException){
65
			LOGGER.error("UserWallet not found : ", profitMandiBusinessException);
62
			LOGGER.error("UserWallet not found : ", profitMandiBusinessException);