Subversion Repositories SmartDukaan

Rev

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

Rev 27344 Rev 27345
Line 113... Line 113...
113
	private UserRepository userRepository;
113
	private UserRepository userRepository;
114
	private static final Logger LOGGER = LogManager.getLogger(WalletController.class);
114
	private static final Logger LOGGER = LogManager.getLogger(WalletController.class);
115
	
115
	
116
	
116
	
117
	@PostMapping(value = "/wallet/upload")
117
	@PostMapping(value = "/wallet/upload")
118
	public String uploadContent(HttpServletRequest request, @RequestPart("file") MultipartFile file, Model model)
118
	public String uploadWalletBulk(HttpServletRequest request, @RequestPart("file") MultipartFile file, Model model)
119
			throws Exception {
119
			throws Exception {
120
		List<WalletHistoryModel> walletHistoryModelList = ExcelUtils.parseWalletBulkCredit(file.getInputStream());
120
		List<WalletHistoryModel> walletHistoryModelList = ExcelUtils.parseWalletBulkCredit(file.getInputStream());
121
		for(WalletHistoryModel walletHistoryModel : walletHistoryModelList) {
121
		for(WalletHistoryModel walletHistoryModel : walletHistoryModelList) {
122
			if(walletHistoryModel.getReference()==0) {
122
			if(walletHistoryModel.getReference()==0) {
123
				ManualPaymentType paymentType =
123
				ManualPaymentType paymentType =