|
@@ -246,21 +246,20 @@ public class XiaomanApiServiceImpl implements XiaomanApiService {
|
|
|
throw new RuntimeException("客户名称为空");
|
|
|
}
|
|
|
xiaomanUpdateInfoVO.setPoolId(0);
|
|
|
- List<XiaomanUpdateInfoVO.Customer> customers = xiaomanUpdateInfoVO.getCustomers();
|
|
|
- if (CollectionUtil.isEmpty(customers)){
|
|
|
- throw new RuntimeException("客户联系人为空");
|
|
|
- }
|
|
|
- for (XiaomanUpdateInfoVO.Customer customer : customers) {
|
|
|
- if (StrUtil.isBlank(customer.getName())){
|
|
|
- throw new RuntimeException("客户联系人名称存在为空");
|
|
|
- }
|
|
|
- if (StrUtil.isBlank(customer.getEmail())){
|
|
|
- throw new RuntimeException("客户联系人email存在为空");
|
|
|
- }
|
|
|
- customer.setMainCustomerFlag("0");
|
|
|
- }
|
|
|
- xiaomanUpdateInfoVO.setCustomers(customers);
|
|
|
-
|
|
|
+// List<XiaomanUpdateInfoVO.Customer> customers = xiaomanUpdateInfoVO.getCustomers();
|
|
|
+// if (CollectionUtil.isEmpty(customers)){
|
|
|
+// throw new RuntimeException("客户联系人为空");
|
|
|
+// }
|
|
|
+// for (XiaomanUpdateInfoVO.Customer customer : customers) {
|
|
|
+// if (StrUtil.isBlank(customer.getName())){
|
|
|
+// throw new RuntimeException("客户联系人名称存在为空");
|
|
|
+// }
|
|
|
+// if (StrUtil.isBlank(customer.getEmail())){
|
|
|
+// throw new RuntimeException("客户联系人email存在为空");
|
|
|
+// }
|
|
|
+// customer.setMainCustomerFlag("0");
|
|
|
+// }
|
|
|
+// xiaomanUpdateInfoVO.setCustomers(customers);
|
|
|
|
|
|
String body = JSON.toJSONString(xiaomanUpdateInfoVO);
|
|
|
XiaomanConfig config = xiaomanConfigService.getCache();
|