fix 线下商户批量报备 有一种照片就进行报备

master
luoyang 6 years ago
parent 2b516d51d0
commit 8ecc9344d0

@ -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");

Loading…
Cancel
Save