|
@ -6,6 +6,7 @@ import com.yihu.jw.restmodel.web.MixEnvelop;
|
|
|
import com.yihu.jw.restmodel.web.ObjEnvelop;
|
|
|
import com.yihu.jw.rm.specialist.SpecialistMapping;
|
|
|
import com.yihu.jw.service.rehabilitation.RehabilitationManageService;
|
|
|
import com.yihu.jw.util.date.DateUtil;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@ -13,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.cloud.sleuth.Tracer;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.Map;
|
|
|
|
|
|
/**
|
|
@ -288,6 +290,37 @@ public class RehabilitationManageController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@GetMapping(value = SpecialistMapping.rehabilitation.tomorrowJob)
|
|
|
@ApiOperation(value = "明日康复服务通知")
|
|
|
public ObjEnvelop tomorrowJob(@ApiParam(name = "startTime", value = "开始时间(格式:yyyy-MM-dd HH:mm:ss)", required = true)
|
|
|
@RequestParam(value = "startTime", required = true)String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间(格式:yyyy-MM-dd HH:mm:ss)", required = true)
|
|
|
@RequestParam(value = "endTime", required = true)String endTime){
|
|
|
try {
|
|
|
return rehabilitationManageService.tomorrowJob(startTime,endTime);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
tracer.getCurrentSpan().logEvent(e.getMessage());
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@GetMapping(value = SpecialistMapping.rehabilitation.dailyByJob)
|
|
|
@ApiOperation(value = "每日康复计划提醒")
|
|
|
public ObjEnvelop dailyByJob(@ApiParam(name = "startTime", value = "开始时间(格式:yyyy-MM-dd HH:mm:ss)", required = true)
|
|
|
@RequestParam(value = "startTime", required = true)String startTime,
|
|
|
@ApiParam(name = "endTime", value = "结束时间(格式:yyyy-MM-dd HH:mm:ss)", required = true)
|
|
|
@RequestParam(value = "endTime", required = true)String endTime){
|
|
|
try {
|
|
|
return rehabilitationManageService.dailyByJob(startTime,endTime);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
tracer.getCurrentSpan().logEvent(e.getMessage());
|
|
|
return ObjEnvelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@PostMapping(value = SpecialistMapping.rehabilitation.updateNoteAndImageRehabilitationOperate)
|
|
|
@ApiOperation(value = "康复计划完成时更新服务完成笔记和图片接口并且确认完成")
|
|
|
public ObjEnvelop updateNoteAndImageRehabilitationOperate(@ApiParam(name = "planDetailId", value = "服务项目id", required = true)@RequestParam(value = "planDetailId", required = true)String planDetailId,
|
|
@ -319,6 +352,24 @@ public class RehabilitationManageController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@PostMapping(value = SpecialistMapping.rehabilitation.updatePlanDetailExecuteTimeById)
|
|
|
@ApiOperation(value = "康复管理-修改康复计划项目执行时间")
|
|
|
public Envelop updatePlanDetailExecuteTimeById(@ApiParam(name = "planDetailId", value = "服务项目id", required = true)
|
|
|
@RequestParam(value = "planDetailId", required = true)String planDetailId,
|
|
|
@ApiParam(name = "executeTime", value = "状态", required = true)
|
|
|
@RequestParam(value = "executeTime", required = true)String executeTime){
|
|
|
try {
|
|
|
Date date = DateUtil.strToDateLong(executeTime);
|
|
|
return rehabilitationManageService.updatePlanDetailExecuteTimeById(date,planDetailId);
|
|
|
}catch (Exception e){
|
|
|
e.printStackTrace();
|
|
|
tracer.getCurrentSpan().logEvent(e.getMessage());
|
|
|
return Envelop.getError(e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@GetMapping(value = SpecialistMapping.rehabilitation.planSchedule)
|
|
|
@ApiOperation(value = "康复管理-计划总进度")
|
|
|
public ObjEnvelop planSchedule(@ApiParam(name = "planId", value = "计划id", required = true)
|