|
@ -24,7 +24,7 @@ public class RehabilitationPlanningController extends EnvelopRestController {
|
|
@Autowired
|
|
@Autowired
|
|
private RehabilitationPlanningService planningService;
|
|
private RehabilitationPlanningService planningService;
|
|
@Autowired
|
|
@Autowired
|
|
private RehabilitationTreatmentProgramService TreatmentProgramService;
|
|
|
|
|
|
private RehabilitationTreatmentProgramService treatmentProgramService;
|
|
|
|
|
|
@GetMapping(value = RehabilitationRequestMapping.Planning.findPlanningPage)
|
|
@GetMapping(value = RehabilitationRequestMapping.Planning.findPlanningPage)
|
|
@ApiOperation(value = "分页查找康复计划", notes = "分页查找康复计划")
|
|
@ApiOperation(value = "分页查找康复计划", notes = "分页查找康复计划")
|
|
@ -51,10 +51,10 @@ public class RehabilitationPlanningController extends EnvelopRestController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@GetMapping(value = RehabilitationRequestMapping.Planning.api_create)
|
|
|
|
|
|
@PostMapping(value = RehabilitationRequestMapping.Planning.api_create)
|
|
@ApiOperation(value = "创建康复计划", notes = "创建康复计划")
|
|
@ApiOperation(value = "创建康复计划", notes = "创建康复计划")
|
|
public Envelop<RehabilitationPlanningDO> createPlanning(@ApiParam(name = "jsonData", value = "基本信息Json", defaultValue = "")
|
|
public Envelop<RehabilitationPlanningDO> createPlanning(@ApiParam(name = "jsonData", value = "基本信息Json", defaultValue = "")
|
|
@RequestParam(value = "jsonData", required = false) String jsonData) {
|
|
|
|
|
|
@RequestBody String jsonData) {
|
|
try {
|
|
try {
|
|
RehabilitationPlanningDO planningDO = toEntity(jsonData, RehabilitationPlanningDO.class);
|
|
RehabilitationPlanningDO planningDO = toEntity(jsonData, RehabilitationPlanningDO.class);
|
|
return Envelop.getSuccess(RehabilitationRequestMapping.Common.message_success_create, planningService.create(planningDO));
|
|
return Envelop.getSuccess(RehabilitationRequestMapping.Common.message_success_create, planningService.create(planningDO));
|
|
@ -82,7 +82,7 @@ public class RehabilitationPlanningController extends EnvelopRestController {
|
|
public Envelop<RehabilitationPlanningDO> findTreatmentByProgramId(@ApiParam(name = "programId", value = "programId")
|
|
public Envelop<RehabilitationPlanningDO> findTreatmentByProgramId(@ApiParam(name = "programId", value = "programId")
|
|
@RequestParam(value = "programId", required = true) String programId) {
|
|
@RequestParam(value = "programId", required = true) String programId) {
|
|
try {
|
|
try {
|
|
RehabilitationTreatmentProgramDO treatmentProgramDO = TreatmentProgramService.findById(programId);
|
|
|
|
|
|
RehabilitationTreatmentProgramDO treatmentProgramDO = treatmentProgramService.findById(programId);
|
|
return Envelop.getSuccess(RehabilitationRequestMapping.Common.message_success_find, treatmentProgramDO);
|
|
return Envelop.getSuccess(RehabilitationRequestMapping.Common.message_success_find, treatmentProgramDO);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
@ -93,7 +93,7 @@ public class RehabilitationPlanningController extends EnvelopRestController {
|
|
@PostMapping(value = RehabilitationRequestMapping.Planning.api_update)
|
|
@PostMapping(value = RehabilitationRequestMapping.Planning.api_update)
|
|
@ApiOperation(value = "修改治疗方案", notes = "修改治疗方案(记得传入修改id)")
|
|
@ApiOperation(value = "修改治疗方案", notes = "修改治疗方案(记得传入修改id)")
|
|
public Envelop updatePlanning(@ApiParam(name = "jsonData", value = "json", defaultValue = "")
|
|
public Envelop updatePlanning(@ApiParam(name = "jsonData", value = "json", defaultValue = "")
|
|
@RequestParam(value = "jsonData", required = true)String jsonData) {
|
|
|
|
|
|
@RequestBody String jsonData) {
|
|
try {
|
|
try {
|
|
RehabilitationPlanningDO planningDO = toEntity(jsonData, RehabilitationPlanningDO.class);
|
|
RehabilitationPlanningDO planningDO = toEntity(jsonData, RehabilitationPlanningDO.class);
|
|
planningService.update(planningDO);
|
|
planningService.update(planningDO);
|