|
@@ -19,6 +19,7 @@ import com.ims.eval.entity.DeptAssessmentDeclarationContent;
|
|
|
import com.ims.eval.entity.EvaluationDept;
|
|
|
import com.ims.eval.entity.EvaluationDeptRating;
|
|
|
import com.ims.eval.entity.dto.request.UserDTO;
|
|
|
+import com.ims.eval.entity.dto.result.ResultInfo;
|
|
|
import com.ims.eval.service.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -206,16 +207,15 @@ public class DeptAssessmentDeclarationServiceImpl extends ServiceImpl<DeptAssess
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public JSONObject processInformation(String instId, HttpServletRequest request) {
|
|
|
+ public Object processInformation(String instId, HttpServletRequest request) {
|
|
|
MultiValueMap<String, String> headers = new LinkedMultiValueMap<>();
|
|
|
headers.add("Blade-Auth", "bearer " + request.getHeader("Blade-Auth"));
|
|
|
HttpEntity<LinkedMultiValueMap<String, Object>> param = new HttpEntity<>(null, headers);
|
|
|
- ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() + "bpm/instance/getOpinion?instId={1}",
|
|
|
- HttpMethod.GET, param, String.class, instId);
|
|
|
-
|
|
|
+ ResponseEntity<String> responseEntity2 = restTemplate.exchange(imaConfig.getFlowUrl() + "bpm/instance/getOpinion?instId={1}", HttpMethod.GET, param, String.class, instId);
|
|
|
log.info("\n code:{}\n header:{}\n body:{}\n", responseEntity2.getStatusCodeValue(), responseEntity2.getHeaders(), responseEntity2.getBody());
|
|
|
if (200 == responseEntity2.getStatusCodeValue()) {
|
|
|
- return JSON.parseObject(responseEntity2.getBody());
|
|
|
+ ResultInfo resultInfo = JSON.parseObject(responseEntity2.getBody(), ResultInfo.class);
|
|
|
+ return resultInfo.getData();
|
|
|
}
|
|
|
return null;
|
|
|
}
|