|
|
@@ -594,8 +594,7 @@ public class RjkServerImpl implements RjkServer {
|
|
|
|
|
|
body.put("related_customers", relatedCustomers);//必需-商机关联的外部相关人
|
|
|
|
|
|
- String stageStr = bizObjectNode.path("F0000093").asText();
|
|
|
- int stageValue = Integer.parseInt(getStageValueByLabel(stageStr));
|
|
|
+// String stageStr = bizObjectNode.path("F0000093").asText();//商机阶段
|
|
|
// String fromChannelStr = bizObjectNode.path("F0000097").asText("");
|
|
|
// int fromChannelId = Integer.parseInt(getSourceValueByLabel(fromChannelStr));
|
|
|
String customerName = bizObjectNode.path("F0000002").asText();//客户名称
|
|
|
@@ -604,6 +603,15 @@ public class RjkServerImpl implements RjkServer {
|
|
|
String orderRemark = bizObjectNode.path("F0000033").asText();//订单备注
|
|
|
updateH3WeilingFillfield(objectId,customerName,paymentDate,cashCollection,orderRemark);
|
|
|
|
|
|
+ if (cashCollection >= 0){
|
|
|
+ int stageValue = Integer.parseInt(getStageValueByLabel("赢单"));
|
|
|
+ body.put("winning_date", paymentDate);
|
|
|
+ body.put("winning_amount", cashCollection);
|
|
|
+ body.put("stage", stageValue);
|
|
|
+ }else if (cashCollection < 0){
|
|
|
+ int stageValue = Integer.parseInt(getStageValueByLabel("丢单"));
|
|
|
+ body.put("stage", stageValue);
|
|
|
+ }
|
|
|
// 商机阶段(必填),可从氚云字段映射。
|
|
|
// String businessName = bizObjectNode.path("F0000092").asText();
|
|
|
body.put("business_name", customerName);
|
|
|
@@ -611,15 +619,6 @@ public class RjkServerImpl implements RjkServer {
|
|
|
// String winningDateStr = bizObjectNode.path("F0000095").asText();
|
|
|
// String winningDate = formatDate(winningDateStr);//赢单日期
|
|
|
// double winningAmount = bizObjectNode.path("F0000096").asInt();//赢单金额
|
|
|
- if (stageValue == 100 && paymentDate != null && paymentDate.isEmpty()){
|
|
|
- body.put("winning_date", paymentDate);
|
|
|
- body.put("winning_amount", cashCollection);
|
|
|
- body.put("stage", stageValue);
|
|
|
- }else if (stageValue == 99){
|
|
|
- body.put("stage", stageValue);
|
|
|
- }else {
|
|
|
- body.put("stage", 1);
|
|
|
- }
|
|
|
|
|
|
JSONObject businessCustom = duildBusinessCustom.BusinessCustom(bizObjectNode);
|
|
|
if (businessCustom != null){
|
|
|
@@ -755,7 +754,15 @@ public class RjkServerImpl implements RjkServer {
|
|
|
if (paymentDate != null){
|
|
|
bizObject.put("F0000095", paymentDate);
|
|
|
}
|
|
|
+
|
|
|
+ if(cashCollection >= 0){
|
|
|
+ bizObject.put("F0000093", "赢单");
|
|
|
bizObject.put("F0000096", cashCollection);
|
|
|
+ } else if (cashCollection < 0) {
|
|
|
+ bizObject.put("F0000093", "丢单");
|
|
|
+ bizObject.put("F0000096", cashCollection);
|
|
|
+ }
|
|
|
+
|
|
|
if (orderRemark != null){
|
|
|
bizObject.put("F0000100", orderRemark);
|
|
|
}
|