|
|
@@ -822,6 +822,149 @@ public class YidaServiceImpl implements YidaService {
|
|
|
|
|
|
@Override
|
|
|
public List<Map> queryLtcAllBusinessUserData() throws Exception {
|
|
|
+ /*
|
|
|
+ 参数定义
|
|
|
+ */
|
|
|
+ List<Map> businessUserData = new ArrayList<>(); // 业务人员数据
|
|
|
+ Map<String,String> businessUserRecord; //业务人员记录
|
|
|
+ YDParam yidaParam; //HTTP请求体
|
|
|
+ YDParam.YDParamBuilder ydParamBuilder; //宜搭参数构建
|
|
|
+ DDR_New yidaResult; //请求返回内容
|
|
|
+ List<Map> records; //每页记录数据
|
|
|
+ List<Map> allRecords = new ArrayList<>(); //所有记录数据
|
|
|
+ boolean hasMore; //是否还有下一页
|
|
|
+ int pageNo; //当前页码
|
|
|
+ int pageSize; //每页获取的数据量(上限100)
|
|
|
+ JSONObject fields; //字段数据
|
|
|
+ String formInstId; //表单实例ID
|
|
|
+ JSONArray businessUserIdJSONArray; //业务员userId(未解析)
|
|
|
+ String businessUserId; //业务员userId
|
|
|
+ JSONArray businessUserNameJSONArray; //业务员name(未解析)
|
|
|
+ String businessUserName; //业务员name
|
|
|
+ JSONArray businessLeaderUserIdJSONArray; //业务组长userId(未解析)
|
|
|
+ String businessLeaderUserId; //业务组长userId
|
|
|
+ String employmentStatus; //在职情况
|
|
|
+ String testUse; //测试使用
|
|
|
+ String numOfPrivateCustomer; //私海客户数
|
|
|
+
|
|
|
+ /*
|
|
|
+ 初始化参数值
|
|
|
+ */
|
|
|
+ hasMore = true; //第一页默认有数据
|
|
|
+ pageNo = 1;
|
|
|
+ pageSize = 100;
|
|
|
+ ydParamBuilder = YDParam.builder();
|
|
|
+ ydParamBuilder = ydParamBuilder.formUuid(EastarParam.YD_FORMUUID_BUSINESS_USER);
|
|
|
+
|
|
|
+ /*
|
|
|
+ 翻页获取数据
|
|
|
+ */
|
|
|
+ while(hasMore){
|
|
|
+ ydParamBuilder = ydParamBuilder.pageNumber(pageNo);
|
|
|
+ ydParamBuilder = ydParamBuilder.pageSize(pageSize);
|
|
|
+ yidaParam = ydParamBuilder.build();
|
|
|
+ yidaResult = ydClient.queryData(yidaParam,YDConf.FORM_QUERY.retrieve_list);
|
|
|
+ log.info("当前第"+pageNo+"页");
|
|
|
+ records = (List<Map>) yidaResult.getData();
|
|
|
+ log.info("记录数="+records.size());
|
|
|
+ for (Map record : records){
|
|
|
+ allRecords.add(record);
|
|
|
+ }
|
|
|
+ if((pageNo*pageSize) < yidaResult.getTotalCount()){
|
|
|
+ pageNo++;
|
|
|
+ }else{
|
|
|
+ hasMore = false;
|
|
|
+ }
|
|
|
+ log.info("是否有更多数据:"+hasMore);
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 请求记录数据处理
|
|
|
+ */
|
|
|
+ log.info("所有记录数量="+allRecords.size());
|
|
|
+ for (Map record : allRecords){
|
|
|
+ businessUserId = "";
|
|
|
+ businessUserName = "";
|
|
|
+ businessLeaderUserId = "";
|
|
|
+ employmentStatus = null;
|
|
|
+ testUse = null;
|
|
|
+ numOfPrivateCustomer = null;
|
|
|
+ businessUserRecord = new HashMap<>();
|
|
|
+
|
|
|
+ //获取表单实例ID
|
|
|
+ formInstId = String.valueOf(record.get("formInstanceId"));
|
|
|
+
|
|
|
+ //解析字段数据
|
|
|
+ fields = JSONObject.parseObject(JSONObject.toJSONString(record.get("formData")));
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取业务员userId
|
|
|
+ */
|
|
|
+ if(fields.get("employeeField_mdfaff58_id") != null){
|
|
|
+ businessUserIdJSONArray = fields.getJSONArray("employeeField_mdfaff58_id");
|
|
|
+ if(!businessUserIdJSONArray.isEmpty()){
|
|
|
+ businessUserId = String.valueOf(businessUserIdJSONArray.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取业务员name
|
|
|
+ */
|
|
|
+ if(fields.get("employeeField_mdfaff58") != null){
|
|
|
+ businessUserNameJSONArray = fields.getJSONArray("employeeField_mdfaff58");
|
|
|
+ if(!businessUserNameJSONArray.isEmpty()){
|
|
|
+ businessUserName = String.valueOf(businessUserNameJSONArray.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取业务组长数据
|
|
|
+ */
|
|
|
+ if(fields.get("employeeField_mektcwc6_id") != null){
|
|
|
+ businessLeaderUserIdJSONArray = fields.getJSONArray("employeeField_mektcwc6_id");
|
|
|
+ if(!businessLeaderUserIdJSONArray.isEmpty()){
|
|
|
+ businessLeaderUserId = String.valueOf(businessLeaderUserIdJSONArray.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 在职情况
|
|
|
+ */
|
|
|
+ if(fields.get("radioField_mn48qynm") != null){
|
|
|
+ employmentStatus = String.valueOf(fields.get("radioField_mn48qynm"));
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取测试使用
|
|
|
+ */
|
|
|
+ if(fields.get("radioField_mnxyjnou") != null){
|
|
|
+ testUse = String.valueOf(fields.get("radioField_mnxyjnou"));
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取私海客户数量
|
|
|
+ */
|
|
|
+ if(fields.get("numberField_ms43nslj") != null){
|
|
|
+ numOfPrivateCustomer = String.valueOf(fields.get("numberField_ms43nslj"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!formInstId.isEmpty() && !businessUserId.isEmpty()){
|
|
|
+ businessUserRecord.put("formInstId",formInstId);
|
|
|
+ businessUserRecord.put("userId",businessUserId);
|
|
|
+ businessUserRecord.put("businessUserName",businessUserName);
|
|
|
+ businessUserRecord.put("businessLeaderUserId",businessLeaderUserId);
|
|
|
+ businessUserRecord.put("employmentStatus",employmentStatus);
|
|
|
+ businessUserRecord.put("testUse",testUse);
|
|
|
+ businessUserRecord.put("numOfPrivateCustomer",numOfPrivateCustomer);
|
|
|
+ businessUserData.add(businessUserRecord);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return businessUserData;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<Map> queryEmployedBusinessUserData() throws Exception {
|
|
|
/*
|
|
|
参数定义
|
|
|
*/
|
|
|
@@ -840,28 +983,32 @@ public class YidaServiceImpl implements YidaService {
|
|
|
JSONObject fields; //字段数据
|
|
|
String formInstId; //表单实例ID
|
|
|
JSONArray businessUserIdJSONArray; //业务员userId(未解析)
|
|
|
- String userId; //用户userId
|
|
|
+ String businessUserId; //业务员userId
|
|
|
+ JSONArray businessUserNameJSONArray; //业务员name(未解析)
|
|
|
+ String businessUserName; //业务员name
|
|
|
JSONArray businessLeaderUserIdJSONArray; //业务组长userId(未解析)
|
|
|
String businessLeaderUserId; //业务组长userId
|
|
|
+ String employmentStatus; //在职情况
|
|
|
String testUse; //测试使用
|
|
|
+ String businessGroup; //业务小组
|
|
|
|
|
|
/*
|
|
|
初始化参数值
|
|
|
*/
|
|
|
-// ydSearch = new YDSearch(
|
|
|
-// "radioField_mn48qynm",
|
|
|
-// "在职",
|
|
|
-// "在职情况",
|
|
|
-// YDSearch.Type.RADIO_FIELD,
|
|
|
-// YDSearch.Operator.EQ
|
|
|
-// );
|
|
|
-// searchCondition = JSONObject.toJSONString(Arrays.asList(ydSearch));
|
|
|
+ ydSearch = new YDSearch(
|
|
|
+ "radioField_mn48qynm",
|
|
|
+ "在职",
|
|
|
+ "在职情况",
|
|
|
+ YDSearch.Type.RADIO_FIELD,
|
|
|
+ YDSearch.Operator.EQ
|
|
|
+ );
|
|
|
+ searchCondition = JSONObject.toJSONString(Arrays.asList(ydSearch));
|
|
|
hasMore = true; //第一页默认有数据
|
|
|
pageNo = 1;
|
|
|
pageSize = 100;
|
|
|
ydParamBuilder = YDParam.builder();
|
|
|
ydParamBuilder = ydParamBuilder.formUuid(EastarParam.YD_FORMUUID_BUSINESS_USER);
|
|
|
-// ydParamBuilder = ydParamBuilder.searchCondition(searchCondition);
|
|
|
+ ydParamBuilder = ydParamBuilder.searchCondition(searchCondition);
|
|
|
|
|
|
/*
|
|
|
翻页获取数据
|
|
|
@@ -889,11 +1036,13 @@ public class YidaServiceImpl implements YidaService {
|
|
|
请求记录数据处理
|
|
|
*/
|
|
|
log.info("所有记录数量="+allRecords.size());
|
|
|
- userId = "";
|
|
|
- businessLeaderUserId = "";
|
|
|
for (Map record : allRecords){
|
|
|
+ businessUserId = "";
|
|
|
+ businessUserName = "";
|
|
|
+ businessLeaderUserId = "";
|
|
|
+ businessGroup = "";
|
|
|
+ employmentStatus = null;
|
|
|
testUse = null;
|
|
|
-
|
|
|
businessUserRecord = new HashMap<>();
|
|
|
|
|
|
//获取表单实例ID
|
|
|
@@ -903,12 +1052,22 @@ public class YidaServiceImpl implements YidaService {
|
|
|
fields = JSONObject.parseObject(JSONObject.toJSONString(record.get("formData")));
|
|
|
|
|
|
/*
|
|
|
- 获取成员数据
|
|
|
+ 获取业务员userId
|
|
|
*/
|
|
|
if(fields.get("employeeField_mdfaff58_id") != null){
|
|
|
businessUserIdJSONArray = fields.getJSONArray("employeeField_mdfaff58_id");
|
|
|
if(!businessUserIdJSONArray.isEmpty()){
|
|
|
- userId = String.valueOf(businessUserIdJSONArray.get(0));
|
|
|
+ businessUserId = String.valueOf(businessUserIdJSONArray.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|
|
|
+ 获取业务员name
|
|
|
+ */
|
|
|
+ if(fields.get("employeeField_mdfaff58") != null){
|
|
|
+ businessUserNameJSONArray = fields.getJSONArray("employeeField_mdfaff58");
|
|
|
+ if(!businessUserNameJSONArray.isEmpty()){
|
|
|
+ businessUserName = String.valueOf(businessUserNameJSONArray.get(0));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -922,6 +1081,13 @@ public class YidaServiceImpl implements YidaService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ 在职情况
|
|
|
+ */
|
|
|
+ if(fields.get("radioField_mn48qynm") != null){
|
|
|
+ employmentStatus = String.valueOf(fields.get("radioField_mn48qynm"));
|
|
|
+ }
|
|
|
+
|
|
|
/*
|
|
|
获取测试使用
|
|
|
*/
|
|
|
@@ -929,10 +1095,20 @@ public class YidaServiceImpl implements YidaService {
|
|
|
testUse = String.valueOf(fields.get("radioField_mnxyjnou"));
|
|
|
}
|
|
|
|
|
|
- if(!formInstId.isEmpty() && !userId.isEmpty()){
|
|
|
+ /*
|
|
|
+ 获取业务小组
|
|
|
+ */
|
|
|
+ if(fields.get("textField_mdfaff57") != null){
|
|
|
+ businessGroup = String.valueOf(fields.get("textField_mdfaff57"));
|
|
|
+ }
|
|
|
+
|
|
|
+ if(!formInstId.isEmpty() && !businessUserId.isEmpty()){
|
|
|
businessUserRecord.put("formInstId",formInstId);
|
|
|
- businessUserRecord.put("userId",userId);
|
|
|
+ businessUserRecord.put("userId",businessUserId);
|
|
|
+ businessUserRecord.put("businessUserName",businessUserName);
|
|
|
businessUserRecord.put("businessLeaderUserId",businessLeaderUserId);
|
|
|
+ businessUserRecord.put("businessGroup",businessGroup);
|
|
|
+ businessUserRecord.put("employmentStatus",employmentStatus);
|
|
|
businessUserRecord.put("testUse",testUse);
|
|
|
businessUserData.add(businessUserRecord);
|
|
|
}
|
|
|
@@ -989,6 +1165,30 @@ public class YidaServiceImpl implements YidaService {
|
|
|
ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateLtcBusinessUserPrivateCustomerNum2(String formInstId, int numOfPrivateCustomer2) throws Exception {
|
|
|
+ /*
|
|
|
+ 参数定义
|
|
|
+ */
|
|
|
+ YDParam yidaParam; //HTTP请求体
|
|
|
+ YDParam.YDParamBuilder ydParamBuilder; //宜搭参数构建
|
|
|
+ String updateFormDataJson; //更新内容
|
|
|
+
|
|
|
+ /*
|
|
|
+ 初始化参数值
|
|
|
+ */
|
|
|
+ updateFormDataJson = JSONObject.toJSONString(UtilMap.map("numberField_ms8cjcoa",numOfPrivateCustomer2)); //私海客户数量(项目总表)
|
|
|
+
|
|
|
+ /*
|
|
|
+ 更新数据
|
|
|
+ */
|
|
|
+ ydParamBuilder = YDParam.builder();
|
|
|
+ ydParamBuilder = ydParamBuilder.formInstId(formInstId);
|
|
|
+ ydParamBuilder = ydParamBuilder.updateFormDataJson(updateFormDataJson);
|
|
|
+ yidaParam = ydParamBuilder.build();
|
|
|
+ ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<Map> queryLtcAllCustomerData() throws Exception {
|
|
|
/*
|
|
|
@@ -1011,6 +1211,8 @@ public class YidaServiceImpl implements YidaService {
|
|
|
JSONArray businessUserIdJSONArray; //业务员userId
|
|
|
String userId; //用户userId
|
|
|
String userIdText;
|
|
|
+ String establishStatus; //建联状态
|
|
|
+ String countryOrRegion; //国家或地区
|
|
|
|
|
|
/*
|
|
|
初始化参数值
|
|
|
@@ -1050,14 +1252,19 @@ public class YidaServiceImpl implements YidaService {
|
|
|
log.info("所有记录数量="+allRecords.size());
|
|
|
for (Map ltcCustomerRecord : allRecords){
|
|
|
userId = "";
|
|
|
+ userIdText = "";
|
|
|
customerName = "";
|
|
|
customerCode = "";
|
|
|
+ establishStatus = null;
|
|
|
+ countryOrRegion = null;
|
|
|
+
|
|
|
//获取表单实例ID
|
|
|
formInstId = String.valueOf(ltcCustomerRecord.get("formInstanceId"));
|
|
|
//解析字段数据
|
|
|
fields = JSONObject.parseObject(JSONObject.toJSONString(ltcCustomerRecord.get("formData")));
|
|
|
+
|
|
|
/*
|
|
|
- 获取成员数据
|
|
|
+ 获取业务员userId
|
|
|
*/
|
|
|
businessUserIdJSONArray = null;
|
|
|
if(fields.get("employeeField_lqanqe6n_id") != null){
|
|
|
@@ -1066,23 +1273,49 @@ public class YidaServiceImpl implements YidaService {
|
|
|
userId = String.valueOf(businessUserIdJSONArray.get(0));
|
|
|
}
|
|
|
}
|
|
|
- userIdText = String.valueOf(ltcCustomerRecord.get("textField_mnchujji"));
|
|
|
+
|
|
|
+ //业务员userId(隐藏字段)
|
|
|
+ if(fields.get("textField_mnchujji") != null){
|
|
|
+ userIdText = fields.get("textField_mnchujji").toString();
|
|
|
+ }
|
|
|
|
|
|
customerName = fields.getString("textField_lqanqe6j");
|
|
|
customerCode = fields.getString("serialNumberField_lqanqe6i");
|
|
|
|
|
|
+ //建联状态
|
|
|
+ if(fields.get("radioField_mrlf08ap") != null){
|
|
|
+ if("已建联".equals(fields.get("radioField_mrlf08ap").toString())){
|
|
|
+ establishStatus = "已建联";
|
|
|
+ }else{
|
|
|
+ establishStatus = "未建联";
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ establishStatus = "未建联";
|
|
|
+ }
|
|
|
+
|
|
|
+ //国家或地区
|
|
|
+ if(fields.get("selectField_mfesniu3") != null){
|
|
|
+ countryOrRegion = fields.get("selectField_mfesniu3").toString();
|
|
|
+ }else{
|
|
|
+ countryOrRegion = "尚不明确";
|
|
|
+ }
|
|
|
+
|
|
|
//生成客户数据
|
|
|
customerRecord = UtilMap.map(
|
|
|
- "formInstId, customerName, customerNameUnique, customerCode, userId, userIdText, customerLevel, customerPotentialLevel, newOrOld, testUseFlag, aiTableId",
|
|
|
+ "formInstId, customerName, customerNameUnique, customerCode, userId, userIdText, customerLevel, customerPotentialLevel, newOrOld, seaType, establishStatus, countryOrRegion, productTypes, testUseFlag, aiTableId",
|
|
|
formInstId, //表单实例ID
|
|
|
customerName, //客户公司名(英文名)
|
|
|
fields.getString("textField_meks6pjp"), //客户验重
|
|
|
customerCode, //客户编号
|
|
|
- userId, //业务
|
|
|
- userIdText,
|
|
|
+ userId, //业务员userId
|
|
|
+ userIdText, //业务员userId(隐藏字段)
|
|
|
fields.getString("selectField_mcsoft5i"), //客户当前分级
|
|
|
fields.getString("selectField_mhsvnqsv"), //客户潜在等级
|
|
|
fields.getString("radioField_md6q7ox8"), //新老客户
|
|
|
+ fields.getString("radioField_md6q7oxa"), //公海/私海
|
|
|
+ establishStatus, //建联状态
|
|
|
+ countryOrRegion, //国家或地区
|
|
|
+ fields.get("multiSelectField_md6q7ox7"), //主要品类
|
|
|
fields.getString("radioField_mnpdkss9"), //测试使用
|
|
|
fields.getString("textField_mno9nwip") //AI表格映射ID
|
|
|
);
|
|
|
@@ -1113,6 +1346,9 @@ public class YidaServiceImpl implements YidaService {
|
|
|
Long yidaEstimatedOrderDate; //预计成单日期
|
|
|
Long yidaActualOrderDate; //实际成单日期
|
|
|
String clearLevelFlag; //是否计算为通关项目
|
|
|
+ String customerCode; //客户编号
|
|
|
+ JSONArray businessUserIdJSONArray; //业务员userId
|
|
|
+ String businessUserId; //业务员userId
|
|
|
|
|
|
/*
|
|
|
初始化参数值
|
|
|
@@ -1155,6 +1391,7 @@ public class YidaServiceImpl implements YidaService {
|
|
|
yidaEstimatedOrderDate = null;
|
|
|
yidaActualOrderDate = null;
|
|
|
clearLevelFlag = null;
|
|
|
+ businessUserId = null;
|
|
|
|
|
|
//获取表单实例ID
|
|
|
formInstId = String.valueOf(ltcSaleProjectRecord.get("formInstanceId"));
|
|
|
@@ -1178,9 +1415,23 @@ public class YidaServiceImpl implements YidaService {
|
|
|
clearLevelFlag = fields.getString("radioField_ms2v43hf");
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
+ 获取业务员userId
|
|
|
+ */
|
|
|
+ businessUserIdJSONArray = null;
|
|
|
+ if(fields.get("employeeField_mdf997x2_id") != null){
|
|
|
+ businessUserIdJSONArray = fields.getJSONArray("employeeField_mdf997x2_id");
|
|
|
+ if(!businessUserIdJSONArray.isEmpty()){
|
|
|
+ businessUserId = String.valueOf(businessUserIdJSONArray.get(0));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
saleProjectRecord = UtilMap.map(
|
|
|
- "formInstId, projectCode, projectName, projectAmount, yidaEstimatedOrderDate, yidaActualOrderDate, clearLevelFlag, piCode, testFlag, aiTableId",
|
|
|
+ "formInstId, customerCode, businessUserId, businessUserIdText, projectCode, projectName, projectAmount, yidaEstimatedOrderDate, yidaActualOrderDate, clearLevelFlag, piCode, testFlag, aiTableId",
|
|
|
formInstId, //表单实例ID
|
|
|
+ fields.getString("textField_mdpb1gh1"), //客户编号
|
|
|
+ businessUserId, //业务员userId
|
|
|
+ fields.getString("textField_mnctph7f"), //业务员userId隐藏字段
|
|
|
fields.getString("serialNumberField_mdf997w0"), //项目编号
|
|
|
fields.getString("textField_mdf997vz"), //项目名称
|
|
|
projectAmount, //预计销售项目金额(美元)
|
|
|
@@ -2147,6 +2398,40 @@ public class YidaServiceImpl implements YidaService {
|
|
|
ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateLtcCustomerBackToPublicSea(String formInstId) throws Exception {
|
|
|
+ /*
|
|
|
+ 参数定义
|
|
|
+ */
|
|
|
+ YDParam yidaParam; //HTTP请求体
|
|
|
+ YDParam.YDParamBuilder ydParamBuilder; //宜搭参数构建
|
|
|
+ String updateFormDataJson; //更新内容
|
|
|
+
|
|
|
+ /*
|
|
|
+ 初始化参数值
|
|
|
+ */
|
|
|
+ Map updateFormData = UtilMap.map(
|
|
|
+ "radioField_md6q7oxa, textField_mnchujji, textField_lxa0ko5h, employeeField_lqanqe6n, employeeField_lqx3act6, selectField_moy9v8ve",
|
|
|
+ "公",
|
|
|
+ "",
|
|
|
+ "",
|
|
|
+ new String[]{},
|
|
|
+ new String[]{},
|
|
|
+ ""
|
|
|
+ );
|
|
|
+ updateFormDataJson = JSONObject.toJSONString(updateFormData);
|
|
|
+ System.out.println(updateFormDataJson);
|
|
|
+
|
|
|
+ /*
|
|
|
+ 更新数据
|
|
|
+ */
|
|
|
+ ydParamBuilder = YDParam.builder();
|
|
|
+ ydParamBuilder = ydParamBuilder.formInstId(formInstId);
|
|
|
+ ydParamBuilder = ydParamBuilder.updateFormDataJson(updateFormDataJson);
|
|
|
+ yidaParam = ydParamBuilder.build();
|
|
|
+ ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void updateCustomerCurrentLevel(String formInstId, String customerCurrentLevel) throws Exception {
|
|
|
/*
|
|
|
@@ -2401,6 +2686,39 @@ public class YidaServiceImpl implements YidaService {
|
|
|
ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void updateLtcSaleProjectBusinessUser(String formInstId, String businessUserId, String businessLeaderUserId, String businessGroup) throws Exception {
|
|
|
+ /*
|
|
|
+ 参数定义
|
|
|
+ */
|
|
|
+ YDParam yidaParam; //HTTP请求体
|
|
|
+ YDParam.YDParamBuilder ydParamBuilder; //宜搭参数构建
|
|
|
+ String updateFormDataJson; //更新内容
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
+ 初始化参数值
|
|
|
+ */
|
|
|
+ Map updateFormData = UtilMap.map(
|
|
|
+ "employeeField_mdf997x2, employeeField_mdf997x3, selectField_mdf997x4, textField_mnctph7f",
|
|
|
+ businessUserId!=null?new String[]{businessUserId}:new String[]{}, //业务员
|
|
|
+ businessLeaderUserId!=null?new String[]{businessLeaderUserId}:new String[]{}, //业务组长
|
|
|
+ businessGroup, //业务小组
|
|
|
+ businessUserId //业务员userId
|
|
|
+ );
|
|
|
+ updateFormDataJson = JSONObject.toJSONString(updateFormData);
|
|
|
+ System.out.println(updateFormDataJson);
|
|
|
+
|
|
|
+ /*
|
|
|
+ 更新数据
|
|
|
+ */
|
|
|
+ ydParamBuilder = YDParam.builder();
|
|
|
+ ydParamBuilder = ydParamBuilder.formInstId(formInstId);
|
|
|
+ ydParamBuilder = ydParamBuilder.updateFormDataJson(updateFormDataJson);
|
|
|
+ yidaParam = ydParamBuilder.build();
|
|
|
+ ydClient.operateData(yidaParam,YDConf.FORM_OPERATION.update);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
@Override
|
|
|
public void insertCustomerData(Map row) throws Exception {
|