Update appId validation
This commit is contained in:
parent
d65be100cd
commit
b047f7b33d
Binary file not shown.
@ -58,10 +58,12 @@ public class LegalCustomerProductDirectoryService implements LegalCustomerProduc
|
|||||||
log.info("Iniciando ejecucion para el cliente: {}", request.getCustomerId());
|
log.info("Iniciando ejecucion para el cliente: {}", request.getCustomerId());
|
||||||
|
|
||||||
Response response = null;
|
Response response = null;
|
||||||
LegalCustomerProductDirectoryRequest requestFromAppId = getRequestFromAppId(request);
|
LegalCustomerProductDirectoryRequest requestFromAppId = request;
|
||||||
long startTime = System.currentTimeMillis();
|
long startTime = System.currentTimeMillis();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
requestFromAppId = getRequestFromAppId(request);
|
||||||
|
|
||||||
if(StringUtil.isNullOrEmpty(requestFromAppId.getCustomerId())) {
|
if(StringUtil.isNullOrEmpty(requestFromAppId.getCustomerId())) {
|
||||||
log.error("Error en el codigo del cliente vacio");
|
log.error("Error en el codigo del cliente vacio");
|
||||||
throw HttpStatusCodeException.badRequest("VRN01");
|
throw HttpStatusCodeException.badRequest("VRN01");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user