add validation in request

This commit is contained in:
Mohd-Arham
2025-12-04 12:17:14 +05:30
parent 28708d1d74
commit 812aa3c2ff
9 changed files with 89 additions and 41 deletions
@@ -127,8 +127,8 @@ public class ComplainServiceImpl implements ComplainService {
Optional<TransactionMaster> dataById = transactionMasterRepository.findById(complainRequestDTO.getTxnId());
if (dataById == null || dataById.isEmpty()) {
LOGGER.warn("Txn Id is null");
throw new CustomException("Txn Id is required", "FAILED", BBPSConstant.BADREQUEST, null);
LOGGER.warn("Txn Data Not Found This Txn Id is null");
throw new CustomException(BBPSConstant.USER_Txn_IS_NOT_FOUND, "FAILED", BBPSConstant.BADREQUEST, null);
}
TransactionMaster transData = dataById.get();