|
@ -12,8 +12,7 @@ import com.yihu.wlyy.service.app.scheduling.DoctorWorkTimeService;
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
import com.yihu.wlyy.service.app.team.AdminTeamService;
|
|
import com.yihu.wlyy.service.app.team.AdminTeamService;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
import com.yihu.wlyy.util.IdCardUtil;
|
|
|
|
import com.yihu.wlyy.util.MessageType;
|
|
|
|
|
|
import com.yihu.wlyy.util.*;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -38,8 +37,6 @@ import com.yihu.wlyy.service.app.account.DoctorInfoService;
|
|
import com.yihu.wlyy.service.app.account.PatientInfoService;
|
|
import com.yihu.wlyy.service.app.account.PatientInfoService;
|
|
import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
import com.yihu.wlyy.task.PushMsgTask;
|
|
import com.yihu.wlyy.util.CommonUtil;
|
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
|
import com.yihu.wlyy.web.WeixinBaseController;
|
|
import com.yihu.wlyy.web.WeixinBaseController;
|
|
|
|
|
|
/**
|
|
/**
|
|
@ -994,6 +991,26 @@ public class DoctorConsultController extends WeixinBaseController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 网络咨询咨询日志查询
|
|
|
|
*
|
|
|
|
* @param consult 咨询标识
|
|
|
|
* @param pagesize 每页显示数,默认为10
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "loglist")
|
|
|
|
@ResponseBody
|
|
|
|
public String loglist(@RequestParam String consult, @RequestParam int page, @RequestParam int pagesize) {
|
|
|
|
try {
|
|
|
|
ConsultTeam consultModel = consultTeamService.findByCode(consult);
|
|
|
|
if (consultModel == null) {
|
|
|
|
return error(-1, "咨询记录不存在!");
|
|
|
|
}
|
|
|
|
JSONObject messageObj = ImUtill.getTopicMessage(consultModel.getConsult(), consultModel.getStartMsgId(), consultModel.getEndMsgId(), page, pagesize, getUID());
|
|
|
|
return write(200, "查询成功", "list", messageObj);
|
|
|
|
} catch (Exception e) {
|
|
|
|
error(e);
|
|
|
|
return invalidUserException(e, -1, "查询失败!");
|
|
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|