LAPTOP-KB9HII50\70708 1 rok pred
rodič
commit
3878cd3742

+ 17 - 0
svr/svr-visit-behind/src/main/java/com/yihu/jw/hospital/module/rehabilitation/controller/DoctorRehabilitaionInfoController.java

@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.yihu.jw.entity.specialist.rehabilitation.PatientMedicalRecordsDO;
import com.yihu.jw.entity.specialist.rehabilitation.RehabilitationAdviceDO;
import com.yihu.jw.hospital.module.rehabilitation.dao.RehabilitationPatientInfoDao;
import com.yihu.jw.hospital.module.rehabilitation.service.RehabilitationInfoService;
import com.yihu.jw.restmodel.web.MixEnvelop;
import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
@ -31,6 +32,8 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
    private RehabilitationInfoService rehabilitationInfoService;
    @Autowired
    private ObjectMapper objectMapper;
    @Autowired
    private RehabilitationPatientInfoDao rehabilitationPatientInfoDao;
    /**
     * 查询患者基本信息
@ -230,6 +233,20 @@ public class DoctorRehabilitaionInfoController extends EnvelopRestEndpoint {
        }
    }
    @RequestMapping(value = "findRehabilitationPatientInfo", method = RequestMethod.GET)
    @ApiOperation("查询下转居民信息")
    public String findRehabilitationPatientInfo(
            @ApiParam(name = "patientInfoCode", value = "下转居民信息code", required = true)
            @RequestParam(value = "patientInfoCode", required = true) String patientInfoCode
    ) {
        try {
            return write(200, "请求成功", "data", rehabilitationPatientInfoDao.findByCode(patientInfoCode));
        } catch (Exception e) {
            e.printStackTrace();
            return error(-1, "请求失败");
        }
    }
    /**
     * 查询居民的康复计划
     * todo 还需要代办项目还需要重新join一张新表 todayTaskCount 今日任务项,等后面在整