|
|
@@ -59,11 +59,15 @@ public class AitableController {
|
|
|
fields.put("jIS3Gbd",yidaCustomerStatus); //客户情况
|
|
|
fields.put("JjVfpWO",yidaCountryOrRegion); //客户国家/地区【客户】
|
|
|
fields.put("6rCZkSN",yidaProductTypes); //客户标签【客户】
|
|
|
- JSONArray user = new JSONArray();
|
|
|
- JSONObject unionId = new JSONObject();
|
|
|
- unionId.put("unionId",ddCoreClient.getUnionIdByUserId(yidaBusinessUserId));
|
|
|
- user.add(unionId);
|
|
|
- fields.put("ynNC3Kq",JSONObject.toJSONString(user)); //业务【人事】
|
|
|
+
|
|
|
+ if(yidaBusinessUserId != null && !yidaBusinessUserId.isEmpty()){
|
|
|
+ JSONArray user = new JSONArray();
|
|
|
+ JSONObject unionId = new JSONObject();
|
|
|
+ unionId.put("unionId",ddCoreClient.getUnionIdByUserId(yidaBusinessUserId));
|
|
|
+ user.add(unionId);
|
|
|
+ fields.put("ynNC3Kq",JSONObject.toJSONString(user)); //业务【人事】
|
|
|
+ }
|
|
|
+
|
|
|
String aitableId = aitableService.querySys1CustomerIdByName(yidaCustomerName);
|
|
|
if(aitableId == null || aitableId.isEmpty()){
|
|
|
aitableId = aitableService.addSys1CustomerData(fields);
|