|
@ -1,6 +1,7 @@
|
|
|
package com.yihu.wlyy.web.doctor.call;
|
|
|
|
|
|
import com.yihu.wlyy.service.call.CustomerService;
|
|
|
import com.yihu.wlyy.service.third.jw.JwSmjkService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@ -8,10 +9,7 @@ import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2017/11/14.
|
|
@ -23,6 +21,8 @@ public class CallRecordController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private CustomerService customerService;
|
|
|
@Autowired
|
|
|
private JwSmjkService jwSmjkService;
|
|
|
|
|
|
@RequestMapping(value = "/getCallServices", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ApiOperation(value = "协同服务查询")
|
|
@ -103,4 +103,24 @@ public class CallRecordController extends BaseController {
|
|
|
return error(-1,"保存失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/*************************************** 患者端查询 ******************************************************************/
|
|
|
@RequestMapping(value = "GetRegList", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("获取患者预约信息列表接口--患者端")
|
|
|
public String GetRegList(@ApiParam(name = "patient", value = "患者编号", defaultValue = "0cc6e4562de2437ab2dbbf51a9fc3b49")
|
|
|
@RequestParam(value = "patient", required = false) String patient) {
|
|
|
try {
|
|
|
// SimpleDateFormat sm = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
// Date nowDate = new Date();
|
|
|
// Date oneMonthAfter = getMonthBefore(nowDate, -1);
|
|
|
// Date threeMonthBefore = getMonthBefore(nowDate, 3); //三个月历史记录
|
|
|
// List<PatientReservation> list = guahaoXM.GetRegList(patient, sm.format(threeMonthBefore), sm.format(oneMonthAfter), threeMonthBefore, oneMonthAfter);
|
|
|
String list = jwSmjkService.GetRegList(patient);
|
|
|
return list;
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|