|
|
|
@ -221,9 +221,15 @@ public class AliforexcelServiceImpl implements AliforexcelService {
|
|
|
|
|
throw new InvalidParameterException("Website cannot be empty ");
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
if (!client.containsKey("store_photo") || !client.containsKey("company_photo")) {
|
|
|
|
|
if (!client.containsKey("store_photo") && !client.containsKey("company_photo")) {
|
|
|
|
|
throw new InvalidParameterException("store photo cannot be empty ");
|
|
|
|
|
}
|
|
|
|
|
if (client.containsKey("store_photo") && !client.containsKey("company_photo")) {
|
|
|
|
|
client.put("company_photo", client.getString("store_photo"));
|
|
|
|
|
}
|
|
|
|
|
if (client.containsKey("company_photo") && !client.containsKey("store_photo")) {
|
|
|
|
|
client.put("store_photo", client.getString("company_photo"));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isBlank(client.getString("business_structure"))) {
|
|
|
|
|
throw new InvalidParameterException("Business Structure can't be null");
|
|
|
|
|