Subversion Repositories SmartDukaan

Rev

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

Rev 24269 Rev 24509
Line 1... Line 1...
1
package com.spice.profitmandi.service.wallet;
1
package com.spice.profitmandi.service.wallet;
2
 
2
 
-
 
3
import java.time.LocalDate;
3
import java.time.LocalDateTime;
4
import java.time.LocalDateTime;
4
import java.util.HashMap;
5
import java.util.HashMap;
5
import java.util.List;
6
import java.util.List;
6
import java.util.Map;
7
import java.util.Map;
7
import java.util.Set;
8
import java.util.Set;
8
 
9
 
9
import org.apache.logging.log4j.Logger;
-
 
10
import org.apache.logging.log4j.LogManager;
10
import org.apache.logging.log4j.LogManager;
-
 
11
import org.apache.logging.log4j.Logger;
11
import org.springframework.beans.factory.annotation.Autowired;
12
import org.springframework.beans.factory.annotation.Autowired;
12
import org.springframework.stereotype.Component;
13
import org.springframework.stereotype.Component;
13
 
14
 
14
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
15
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
15
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
16
import com.spice.profitmandi.dao.entity.dtr.UserAccount;
Line 147... Line 148...
147
			userWalletRepository.persist(uw);
148
			userWalletRepository.persist(uw);
148
			return uw;
149
			return uw;
149
		}
150
		}
150
	}
151
	}
151
 
152
 
-
 
153
	@Override
-
 
154
	public float getOpeningTill(int fofoId, LocalDateTime date) throws ProfitMandiBusinessException {
-
 
155
		UserWallet wallet = userWalletRepository.selectByRetailerId(fofoId);
-
 
156
		return userWalletHistoryRepository.getSumTillDate(wallet.getId(), date);
-
 
157
	}
-
 
158
	
152
}
159
}