|
|
@@ -1,6 +1,7 @@
|
|
|
package com.uas.platform.b2b.v2.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.uas.platform.b2b.model.Enterprise;
|
|
|
import com.uas.platform.b2b.model.EnterpriseBaseInfo;
|
|
|
import com.uas.platform.b2b.model.InvitationRecord;
|
|
|
@@ -158,8 +159,11 @@ public class InviteRecordController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
private ModelMap addInvitation(String jsonStr) throws UnsupportedEncodingException {
|
|
|
+ System.out.println(jsonStr);
|
|
|
String str = URLDecoder.decode(jsonStr, "UTF-8");
|
|
|
- InvitationRecord record = FlexJsonUtils.fromJson(str, InvitationRecord.class);
|
|
|
+ str = str.replaceAll(" ", "");
|
|
|
+ str = str.replaceAll("\\\\n", "");
|
|
|
+ InvitationRecord record = JSONObject.parseObject(str, InvitationRecord.class);
|
|
|
Long enUU = checkByBusinessCode(record.getEnuu(), record.getBussinesscode());
|
|
|
Long userUU = checkByUserTel(record.getUseruu(), record.getUserTel());
|
|
|
record.setEnuu(enUU);
|