Explorar el Código

Merge branch 'dev' of demon/patient-co-management into dev

chenweida hace 8 años
padre
commit
2109f973e1

+ 55 - 0
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/doctor/record/InspectionController.java

@ -0,0 +1,55 @@
package com.yihu.wlyy.web.doctor.record;
import com.yihu.wlyy.web.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.json.JSONArray;
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.ResponseBody;
/**
 *
 * @author HZY
 * @vsrsion 1.0
 * Created at 2016/10/17.
 */
@Controller
@RequestMapping(value = "/doctor/patient_inspection", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@Api(description = "医生端- 居民检查/检验记录")
public class InspectionController extends BaseController {
    @RequestMapping(value = "/list", method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value = "获取检查/检验列表", produces = "application/json", notes = "获取检查/检验列表")
    public String inspectionList() {
        try {
            JSONArray array = new JSONArray();
            //TODO 检查/检验报告接口
            return write(200, "获取检查/检验记录成功!", "data", array);
        } catch (Exception e) {
            error(e);
            return invalidUserException(e, -1, "获取检查/检验记录异常!");
        }
    }
    @RequestMapping(value = "/detail", method = RequestMethod.GET)
    @ResponseBody
    @ApiOperation(value = "获取检查/检验详情", produces = "application/json", notes = "获取检查/检验详情")
    public String inspectionDetail() {
        try {
            JSONArray array = new JSONArray();
            //TODO 调用检查/检验报告接口
            return write(200, "获取检查/检验详情成功!", "data", array);
        } catch (Exception e) {
            error(e);
            return invalidUserException(e, -1, "获取检查/检验详情异常!");
        }
    }
}