|
|
@@ -444,6 +444,39 @@ public class CasllBackDataProcessor implements CallBackService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public JSONObject kydrequest(JSONObject json) {
|
|
|
+ List<CustomerFollowup> followupList = new ArrayList<>();
|
|
|
+ CustomerFollowup followup = new CustomerFollowup();
|
|
|
+ followup.setPhoneMd5(json.getString("phoneMd5"));
|
|
|
+ String businessId = "389fb67410dc250414104756business";
|
|
|
+ followup.setBusiId(businessId);
|
|
|
+ followup.setProductBizId(4413);
|
|
|
+ followup.setFollowTime(new Date());
|
|
|
+ followup.setSourceType(3);
|
|
|
+ String star = json.getString("star");
|
|
|
+ if ("1".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(0));
|
|
|
+ } else if ("2".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(1));
|
|
|
+ }else if ("3".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(2));
|
|
|
+ }else if ("4".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(3));
|
|
|
+ }else if ("5".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(4));
|
|
|
+ }else if ("6".equals(star)) {
|
|
|
+ followup.setStarLevel(new BigDecimal(5));
|
|
|
+ }
|
|
|
+ followupList.add(followup);
|
|
|
+ handleMappedData(businessId,followupList);
|
|
|
+ JSONObject jsonObject = new JSONObject();
|
|
|
+ jsonObject.put("code",0);
|
|
|
+ jsonObject.put("msg","成功");
|
|
|
+ return jsonObject;
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
private void sendGetRequestSXRKX(String productBizId,String busiId,String url){
|
|
|
JSONObject param = SignUtil.generateSign(81, 43, "730969D3F673BA42432C574378B9A8F1");
|