|
@ -460,7 +460,7 @@ public class RehabilitationManageService {
|
|
|
|
|
|
String sql = " select d.*,DATE_FORMAT(d.execute_time,'%Y/%m/%d %H:%i') as executeTime ,i.code,i.name from wlyy_specialist.wlyy_rehabilitation_plan_detail d " +
|
|
|
" LEFT JOIN wlyy_rehabilitation_service_item i on i.code = d.hospital_service_item_id " +
|
|
|
" where d.execute_time>='"+executeStartTime+"' and d.execute_time<='"+executeEndTime+"' and d.plan_id='"+planId+"' " ;
|
|
|
" where d.plan_id='"+planId+"' " ;
|
|
|
if(searchTask!=null){
|
|
|
if(searchTask==8){
|
|
|
sql+="and d.doctor='"+doctorCode+"' ";
|
|
@ -470,6 +470,9 @@ public class RehabilitationManageService {
|
|
|
sql+=" and i.reserve=1 " ;
|
|
|
}*/
|
|
|
}
|
|
|
if (StringUtils.isNoneBlank(executeEndTime)&&StringUtils.isNoneBlank(executeStartTime)){
|
|
|
sql+="and d.execute_time>='"+executeStartTime+"' and d.execute_time<='"+executeEndTime+"' ";
|
|
|
}
|
|
|
if(status!=null){
|
|
|
sql+= "and d.status="+status;
|
|
|
}
|
|
@ -689,7 +692,7 @@ public class RehabilitationManageService {
|
|
|
* @throws Exception
|
|
|
*
|
|
|
*/
|
|
|
public ObjEnvelop serviceItem(String planDetailId,String doctorCode) throws Exception{
|
|
|
public ObjEnvelop serviceItem(String planDetailId,String doctorCode,String recordId) throws Exception{
|
|
|
String sql = "select h.name as title,h.content as content,h.code as itemType,d.id,d.execute_time,d.hospital_name,d.status,d.type,d.expense,d.doctor as executeDoctor, " +
|
|
|
" d.doctor_name as executeDoctorName,p.patient ,p.name as patientName,p.create_user as createDoctor,p.create_user_name as createDoctorName, p.status as planStatus," +
|
|
|
" p.disease,p.disease_name as diseaseName,p.title as planTitle,d.plan_id as planId,d.relation_code as relationCode "+
|
|
@ -757,7 +760,13 @@ public class RehabilitationManageService {
|
|
|
resultMap.put("type",one.get("itemType"));//1扫码、0上传附件、2、健康教育,3、健康指导,4、随访
|
|
|
|
|
|
//是否完成任务
|
|
|
List<RehabilitationOperateRecordsDO> operateList = rehabilitationOperateRecordsDao.findByRehabilitationDetailId(one.get("id").toString());
|
|
|
List<RehabilitationOperateRecordsDO> operateList = new ArrayList<>();
|
|
|
if(StringUtils.isNoneBlank(recordId)){
|
|
|
operateList= rehabilitationOperateRecordsDao.findByRehabilitationDetailIdAndId(one.get("id").toString(),recordId);
|
|
|
}else {
|
|
|
operateList= rehabilitationOperateRecordsDao.findByRehabilitationDetailId(one.get("id").toString());
|
|
|
}
|
|
|
|
|
|
Integer operate = 0;
|
|
|
if(operateList.size()>0){
|
|
|
RehabilitationOperateRecordsDO temp = operateList.get(0);
|