|
@ -1,10 +1,17 @@
|
|
|
package com.yihu.wlyy.web.patient.prescription;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.json.JSONObject;
|
|
|
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.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
/**
|
|
|
* Created by Trick on 2017/7/25.
|
|
@ -14,5 +21,38 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@Api(description = "患者端-长处方接口")
|
|
|
public class PatientPrescriptionInfoController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
|
private PrescriptionInfoService prescriptionInfoService;
|
|
|
|
|
|
/**
|
|
|
* 获取处方列表
|
|
|
* @param type
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getPrescriptionInfos")
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "获取长处方信息列表")
|
|
|
public String getPrescriptionInfos(@RequestParam(required = true)@ApiParam(name="type",value="1:查询处方;2我的续方;3:续方记录")String type){
|
|
|
try {
|
|
|
|
|
|
return write(200, "查询成功!", "data", "");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/getPrescription")
|
|
|
@ResponseBody
|
|
|
@ApiOperation(value = "获取长处方详细信息")
|
|
|
public String getPrescription(@RequestParam(required = true)@ApiParam(name="code",value="处方CODE")String code){
|
|
|
try {
|
|
|
|
|
|
return write(200, "查询成功!", "data", "");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|