| Line 6... |
Line 6... |
| 6 |
import com.spice.profitmandi.common.model.SendNotificationModel;
|
6 |
import com.spice.profitmandi.common.model.SendNotificationModel;
|
| 7 |
import com.spice.profitmandi.common.util.Utils;
|
7 |
import com.spice.profitmandi.common.util.Utils;
|
| 8 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
8 |
import com.spice.profitmandi.dao.entity.auth.AuthUser;
|
| 9 |
import com.spice.profitmandi.service.mail.MailOutboxService;
|
9 |
import com.spice.profitmandi.service.mail.MailOutboxService;
|
| 10 |
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
|
10 |
import com.spice.profitmandi.dao.entity.dtr.CreditAccount;
|
| - |
|
11 |
import com.spice.profitmandi.dao.entity.dtr.CreditInactiveReason;
|
| 11 |
import com.spice.profitmandi.dao.entity.dtr.CreditStatus;
|
12 |
import com.spice.profitmandi.dao.entity.dtr.CreditStatus;
|
| 12 |
import com.spice.profitmandi.dao.entity.fofo.CurrentPartnerDailyInvestment;
|
13 |
import com.spice.profitmandi.dao.entity.fofo.CurrentPartnerDailyInvestment;
|
| 13 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
14 |
import com.spice.profitmandi.dao.entity.fofo.FofoStore;
|
| 14 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
15 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 15 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
16 |
import com.spice.profitmandi.dao.entity.transaction.*;
|
| Line 223... |
Line 224... |
| 223 |
creditAccount = new CreditAccount();
|
224 |
creditAccount = new CreditAccount();
|
| 224 |
creditAccount.setFofoId(fofoId);
|
225 |
creditAccount.setFofoId(fofoId);
|
| 225 |
creditAccount.setGateway(Gateway.SDDIRECT);
|
226 |
creditAccount.setGateway(Gateway.SDDIRECT);
|
| 226 |
creditAccount.setCreditStatus(CreditStatus.SANCTIONED);
|
227 |
creditAccount.setCreditStatus(CreditStatus.SANCTIONED);
|
| 227 |
creditAccount.setActive(false);
|
228 |
creditAccount.setActive(false);
|
| - |
|
229 |
creditAccount.setInactiveReason(CreditInactiveReason.AWAITING_ACTIVATION);
|
| 228 |
creditAccount.setUpdatedOn(LocalDateTime.now());
|
230 |
creditAccount.setUpdatedOn(LocalDateTime.now());
|
| 229 |
creditAccountRepository.persist(creditAccount);
|
231 |
creditAccountRepository.persist(creditAccount);
|
| 230 |
}
|
232 |
}
|
| 231 |
creditAccount.setInterestRate(sdCreditRequirement.getInterestRate().floatValue());
|
233 |
creditAccount.setInterestRate(sdCreditRequirement.getInterestRate().floatValue());
|
| 232 |
creditAccount.setSanctionedAmount(sdCreditRequirement.getLimit().floatValue());
|
234 |
creditAccount.setSanctionedAmount(sdCreditRequirement.getLimit().floatValue());
|