|
|
@@ -24,6 +24,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
+import java.net.URLDecoder;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
@@ -141,8 +143,9 @@ public class InviteRecordController {
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST)
|
|
|
- private ModelMap addInvitation(String jsonStr) {
|
|
|
- InvitationRecord record = JSON.parseObject(jsonStr, InvitationRecord.class);
|
|
|
+ private ModelMap addInvitation(String jsonStr) throws UnsupportedEncodingException {
|
|
|
+ String str = URLDecoder.decode(jsonStr, "UTF-8");
|
|
|
+ InvitationRecord record = JSON.parseObject(str, InvitationRecord.class);
|
|
|
Long enUU = checkByBusinessCode(record.getEnuu(), record.getBussinesscode());
|
|
|
Long userUU = checkByUserTel(record.getUseruu(), record.getUserTel());
|
|
|
record.setEnuu(enUU);
|