fixed some error releated product code

This commit is contained in:
Nitesh Yadav
2026-05-01 11:33:07 +05:30
parent a5fc407cd5
commit 0bbf2faa3e
4 changed files with 8345 additions and 3 deletions
@@ -240,7 +240,8 @@ public class CurrentProductAssembler {
product.setCustomerSegment(command.stringValueOfParameterNamed(customerSegmentParamName)); product.setCustomerSegment(command.stringValueOfParameterNamed(customerSegmentParamName));
} }
if (command.parameterExists(productCodeParamName)) { if (command.parameterExists(productCodeParamName)) {
product.setProductCode(command.stringValueOfParameterNamed(productCodeParamName)); final String productCode = command.stringValueOfParameterNamed(productCodeParamName);
product.setProductCode((productCode != null && !productCode.isBlank()) ? productCode : null);
} }
if (command.parameterExists(glAccountIdParamName)) { if (command.parameterExists(glAccountIdParamName)) {
product.setGlAccountId(command.longValueOfParameterNamed(glAccountIdParamName)); product.setGlAccountId(command.longValueOfParameterNamed(glAccountIdParamName));
File diff suppressed because it is too large Load Diff
@@ -284,7 +284,8 @@ public class DepositProductAssembler {
// ── CBS Custom Fields (from 0251 migration) ───────────────────────── // ── CBS Custom Fields (from 0251 migration) ─────────────────────────
recurringDepositProduct.setAccountType(command.stringValueOfParameterNamed("accountType")); recurringDepositProduct.setAccountType(command.stringValueOfParameterNamed("accountType"));
recurringDepositProduct.setCustomerSegment(command.stringValueOfParameterNamed("customerSegment")); recurringDepositProduct.setCustomerSegment(command.stringValueOfParameterNamed("customerSegment"));
recurringDepositProduct.setProductCode(command.stringValueOfParameterNamed("productCode")); final String productCode = command.stringValueOfParameterNamed("productCode");
recurringDepositProduct.setProductCode((productCode != null && !productCode.isBlank()) ? productCode : null);
if (command.parameterExists("glAccountId")) { if (command.parameterExists("glAccountId")) {
recurringDepositProduct.setGlAccountId(command.longValueOfParameterNamed("glAccountId")); recurringDepositProduct.setGlAccountId(command.longValueOfParameterNamed("glAccountId"));
} }
@@ -231,7 +231,8 @@ public class SavingsProductAssembler {
product.setCustomerSegment(command.stringValueOfParameterNamed(customerSegmentParamName)); product.setCustomerSegment(command.stringValueOfParameterNamed(customerSegmentParamName));
} }
if (command.parameterExists(productCodeParamName)) { if (command.parameterExists(productCodeParamName)) {
product.setProductCode(command.stringValueOfParameterNamed(productCodeParamName)); final String productCode = command.stringValueOfParameterNamed(productCodeParamName);
product.setProductCode((productCode != null && !productCode.isBlank()) ? productCode : null);
} }
if (command.parameterExists(glAccountIdParamName)) { if (command.parameterExists(glAccountIdParamName)) {
product.setGlAccountId(command.longValueOfParameterNamed(glAccountIdParamName)); product.setGlAccountId(command.longValueOfParameterNamed(glAccountIdParamName));