|
@@ -252,4 +252,36 @@ public class FeedbackOpinionApiController {
|
|
|
|
|
|
return names;
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value="历史记录")
|
|
|
+ @PostMapping("historyList")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name="phone", value="手机号码", required=true, paramType="query"),
|
|
|
+ })
|
|
|
+ public MessageResult historyList(String phone){
|
|
|
+ MessageResult msgResult = new MessageResult<>();
|
|
|
+
|
|
|
+ try {
|
|
|
+ Map<String, Object> searchParams = new HashMap<>();
|
|
|
+ if (StringUtils.isNotEmpty(phone)) {
|
|
|
+ searchParams.put("connectPhone",phone);
|
|
|
+ }
|
|
|
+
|
|
|
+ List<Sort> sortList = new ArrayList<>();
|
|
|
+ sortList.add(new Sort("create_time", "desc"));
|
|
|
+
|
|
|
+ Page<FeedbackOpinion> page = feedbackOpinionService.pageSearch(searchParams, 1, 10000, false, sortList);
|
|
|
+
|
|
|
+ msgResult.setResult(true);
|
|
|
+ msgResult.setData(page.getResult());
|
|
|
+ }
|
|
|
+ catch(Exception ex){
|
|
|
+ logger.error(ex.getMessage(),ex);
|
|
|
+
|
|
|
+ msgResult.setResult(false);
|
|
|
+ msgResult.setMessage(ex.getMessage());
|
|
|
+ }
|
|
|
+
|
|
|
+ return msgResult;
|
|
|
+ }
|
|
|
}
|