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

master
luoyang 6 years ago
parent 840e7cd264
commit bd9e1731de

@ -13,7 +13,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.1.2</jib-maven-plugin.version>
<docker-image.version>1.0.17</docker-image.version>
<docker-image.version>1.0.18</docker-image.version>
</properties>
<dependencies>

@ -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