|
|
@@ -25,6 +25,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import javax.annotation.Resource;
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
import java.net.URLEncoder;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
@@ -629,7 +630,7 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
* 邀请面试接口
|
|
|
*/
|
|
|
@Override
|
|
|
- public Map<String, Object> interviewInvite(Map<String, String> requestMap, HttpServletRequest request, HttpServletResponse response) {
|
|
|
+ public Map<String, Object> interviewInvite(Map<String, String> requestMap, HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
|
|
|
Map<String, Object> returnMap = new HashMap<String, Object>();
|
|
|
Map<String, Object> sendMap = new HashMap<String, Object>();
|
|
|
String userId = requestMap.get("user_id1"); //C端用户id
|
|
|
@@ -649,11 +650,11 @@ public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> i
|
|
|
String contactPhone = requestMap.get("contactPhone");
|
|
|
String positionName = requestMap.get("positionName");
|
|
|
String companyName = requestMap.get("companyName");
|
|
|
- String sendMsgUrl = path + "/f/api/sendmessage/interviewInvite?positionId=" + positionId
|
|
|
- + "&userId=" + userId + "&positionCategory=" + positionCategory + "&interviewTime=" + interviewTime
|
|
|
- + "&interviewAddres=" + URLEncoder.encode(interviewAddres)
|
|
|
- + "&contactPerson=" + URLEncoder.encode(contactPerson) + "&contactPhone=" + contactPhone + "&positionName=" + URLEncoder.encode(positionName)
|
|
|
- + "&companyName=" + URLEncoder.encode(companyName);
|
|
|
+ String sendMsgUrl = "http://localhost:8080" + "/f/api/sendmessage/interviewInvite?positionId=" + positionId
|
|
|
+ + "&userId=" + userId + "&positionCategory=" + positionCategory
|
|
|
+ + "&interviewAddres=" + URLEncoder.encode(interviewAddres, "utf-8")
|
|
|
+ + "&contactPerson=" + URLEncoder.encode(contactPerson, "utf-8") + "&contactPhone=" + contactPhone + "&positionName=" + URLEncoder.encode(positionName, "utf-8")
|
|
|
+ + "&companyName=" + URLEncoder.encode(companyName, "utf-8") + "&interviewTime=" + URLEncoder.encode(interviewTime, "utf-8");
|
|
|
|
|
|
String data = CommUtil.get(sendMsgUrl, null);
|
|
|
com.alibaba.fastjson.JSONObject jsonObject = new com.alibaba.fastjson.JSONObject();
|