Bladeren bron

修改bug

chenweida 8 jaren geleden
bovenliggende
commit
05fd361084

+ 5 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/account/PatientController.java

@ -228,9 +228,12 @@ public class PatientController extends WeixinBaseController {
     */
    @RequestMapping(value = "info")
    @ResponseBody
    public String info() {
    public String info( @RequestParam(required = false)String patientCode) {
        try {
            Patient temp = patientInfoService.findByCode(getUID());
            if(org.springframework.util.StringUtils.isEmpty(patientCode)){
                patientCode=getUID();
            }
            Patient temp = patientInfoService.findByCode(patientCode);
            if (temp != null) {
                JSONObject json = new JSONObject();
                // 设置患者标识