|
@ -1,24 +1,12 @@
|
|
|
package com.yihu.jw.service.rehabilitation;
|
|
|
|
|
|
import com.yihu.jw.dao.rehabilitation.*;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yihu.jw.dao.rehabilitation.PatientRehabilitationPlanDao;
|
|
|
import com.yihu.jw.dao.rehabilitation.RehabilitationDetailDao;
|
|
|
import com.fasterxml.jackson.databind.node.ObjectNode;
|
|
|
import com.yihu.jw.dao.rehabilitation.PatientRehabilitationPlanDao;
|
|
|
import com.yihu.fastdfs.FastDFSUtil;
|
|
|
import com.yihu.jw.dao.rehabilitation.*;
|
|
|
import com.yihu.jw.entity.rehabilitation.RehabilitationPlanningDO;
|
|
|
import com.yihu.jw.dao.rehabilitation.RehabilitationPlanTemplateDao;
|
|
|
import com.yihu.jw.dao.rehabilitation.RehabilitationTemplateDetailDao;
|
|
|
import com.yihu.jw.entity.specialist.HospitalServiceItemDO;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.*;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.PatientRehabilitationPlanDO;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.RehabilitationDetailDO;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.RehabilitationPlanTemplateDO;
|
|
|
import com.yihu.jw.entity.specialist.rehabilitation.RehabilitationTemplateDetailDO;
|
|
|
import com.yihu.jw.restmodel.iot.common.UploadVO;
|
|
|
import com.yihu.jw.restmodel.specialist.PatientSignInfoVO;
|
|
|
import com.yihu.jw.restmodel.web.Envelop;
|
|
|
import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
@ -28,13 +16,10 @@ import com.yihu.jw.service.FileUploadService;
|
|
|
import com.yihu.jw.service.SpecialistHospitalServiceItemService;
|
|
|
import com.yihu.jw.service.SpecialistService;
|
|
|
import com.yihu.jw.util.HttpClientUtil;
|
|
|
import com.yihu.jw.util.common.QrcodeUtil;
|
|
|
import com.yihu.fastdfs.FastDFSUtil;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import com.yihu.mysql.query.BaseJpaService;
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.jdbc.core.JdbcTemplate;
|
|
@ -42,11 +27,6 @@ import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import java.io.InputStream;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
@ -399,4 +379,16 @@ public class RehabilitationPlanService extends BaseJpaService<RehabilitationPlan
|
|
|
}
|
|
|
return Envelop.getError("更新失败!");
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 根据标签和居民code查找康复计划
|
|
|
*
|
|
|
* @param patient
|
|
|
* @param label
|
|
|
* @return
|
|
|
*/
|
|
|
public List<PatientRehabilitationPlanDO> selectByLabelAndPatient(String patient,String label){
|
|
|
return patientRehabilitationPlanDao.selectByDiseaseAndPatient(label,patient);
|
|
|
}
|
|
|
}
|