|
@ -63,7 +63,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param pagesize 分页大小
|
|
* @param pagesize 分页大小
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "records", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "records")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String consultRecords(
|
|
public String consultRecords(
|
|
@RequestParam(required = false) String title,
|
|
@RequestParam(required = false) String title,
|
|
@ -109,7 +109,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param week
|
|
* @param week
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/doctor_worktime/week", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "/doctor_worktime/week")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getDoctorWeekWorkTime(String doctor,String week){
|
|
public String getDoctorWeekWorkTime(String doctor,String week){
|
|
try{
|
|
try{
|
|
@ -128,7 +128,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param doctor
|
|
* @param doctor
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/doctor_worktime", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "/doctor_worktime")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getDoctorWorkTime(String doctor){
|
|
public String getDoctorWorkTime(String doctor){
|
|
try{
|
|
try{
|
|
@ -147,7 +147,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param doctor
|
|
* @param doctor
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "is_doctor_working", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "is_doctor_working")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String isDoctorAtWorking(String doctor){
|
|
public String isDoctorAtWorking(String doctor){
|
|
try{
|
|
try{
|
|
@ -165,7 +165,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param doctor
|
|
* @param doctor
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "is_famous_doctor_working", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "is_famous_doctor_working")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String isFamousDoctorAtWorking(String doctor){
|
|
public String isFamousDoctorAtWorking(String doctor){
|
|
try{
|
|
try{
|
|
@ -183,7 +183,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param doctor
|
|
* @param doctor
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/consult_times_remain", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "/consult_times_remain")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String famousDoctorTimesRemain(String doctor){
|
|
public String famousDoctorTimesRemain(String doctor){
|
|
try{
|
|
try{
|
|
@ -200,7 +200,7 @@ public class ConsultController extends WeixinBaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "/unfinished", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "/unfinished")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String getUnFinishedConsult(){
|
|
public String getUnFinishedConsult(){
|
|
try{
|
|
try{
|
|
@ -222,7 +222,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param voice 语音URL地址
|
|
* @param voice 语音URL地址
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "add", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "add")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String add(@RequestParam(required = false) Integer type,
|
|
public String add(@RequestParam(required = false) Integer type,
|
|
String when,
|
|
String when,
|
|
@ -304,7 +304,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param doctorCode 名医的code
|
|
* @param doctorCode 名医的code
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "famousAdd", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "famousAdd")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String famousAdd(
|
|
public String famousAdd(
|
|
@RequestParam(required = false)String when,
|
|
@RequestParam(required = false)String when,
|
|
@ -369,7 +369,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* 名医列表
|
|
* 名医列表
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "famousDoctorList", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "famousDoctorList")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String famousDoctorList(
|
|
public String famousDoctorList(
|
|
@RequestParam(required = false) String name,
|
|
@RequestParam(required = false) String name,
|
|
@ -427,7 +427,7 @@ public class ConsultController extends WeixinBaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "status", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "status")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String status(String consult) {
|
|
public String status(String consult) {
|
|
try {
|
|
try {
|
|
@ -449,7 +449,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param pagesize 页数
|
|
* @param pagesize 页数
|
|
* @return 查询结果
|
|
* @return 查询结果
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "list", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "list")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String list(int status, long id, int pagesize) {
|
|
public String list(int status, long id, int pagesize) {
|
|
try {
|
|
try {
|
|
@ -495,7 +495,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param consult
|
|
* @param consult
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "cancel", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "cancel")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String cancel(String consult) {
|
|
public String cancel(String consult) {
|
|
try {
|
|
try {
|
|
@ -516,7 +516,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param code 咨询标识
|
|
* @param code 咨询标识
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "finish", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "finish")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String finish(String code) {
|
|
public String finish(String code) {
|
|
try {
|
|
try {
|
|
@ -539,7 +539,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param type 追问内容类型:1文字,2图片,3语音
|
|
* @param type 追问内容类型:1文字,2图片,3语音
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "append", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "append")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String append(String consult, String content, int type) {
|
|
public String append(String consult, String content, int type) {
|
|
try {
|
|
try {
|
|
@ -589,7 +589,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param pagesize 每页显示数,默认为10
|
|
* @param pagesize 每页显示数,默认为10
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "loglist", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "loglist")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String loglist(String consult, long id, int pagesize) {
|
|
public String loglist(String consult, long id, int pagesize) {
|
|
try {
|
|
try {
|
|
@ -639,7 +639,7 @@ public class ConsultController extends WeixinBaseController {
|
|
*
|
|
*
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "oneLog", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "oneLog")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String oneLog(String consult,Long logId) {
|
|
public String oneLog(String consult,Long logId) {
|
|
try {
|
|
try {
|
|
@ -678,7 +678,7 @@ public class ConsultController extends WeixinBaseController {
|
|
* @param star 星级
|
|
* @param star 星级
|
|
* @return 操作结果
|
|
* @return 操作结果
|
|
*/
|
|
*/
|
|
@RequestMapping(value = "comment", method = RequestMethod.GET)
|
|
|
|
|
|
@RequestMapping(value = "comment")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String comment(String consult, String content, int star) {
|
|
public String comment(String consult, String content, int star) {
|
|
try {
|
|
try {
|