|
@ -166,7 +166,7 @@ public class PatientArchivesController extends WeixinBaseController {
|
|
|
@ResponseBody
|
|
|
@ApiOperation("删除就诊事件")
|
|
|
public String deleteEvent(@ApiParam(name="event",value="就诊事件id",defaultValue = "")
|
|
|
@RequestParam(value="event",required = true) String event)
|
|
|
@RequestParam(value="event",required = true) Long event)
|
|
|
{
|
|
|
try {
|
|
|
patientEventService.deleteEvent(event);
|
|
@ -199,4 +199,60 @@ public class PatientArchivesController extends WeixinBaseController {
|
|
|
return invalidUserException(e,-1, "图片上传失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/event/img/delete", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("删除就诊事件图片")
|
|
|
public String deleteEventImg(@ApiParam(name="id",value="就诊事件图片id",defaultValue = "")
|
|
|
@RequestParam(value="id",required = true) Long id)
|
|
|
{
|
|
|
try {
|
|
|
patientEventService.deleteEventImg(id);
|
|
|
|
|
|
return write(200, "删除就诊事件图片成功!");
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, "删除就诊事件图片失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/event/img/add", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("新增就诊事件图片")
|
|
|
public String addEventImg(@ApiParam(name="eventId",value="就诊事件id",defaultValue = "")
|
|
|
@RequestParam(value="eventId",required = true) Long eventId,
|
|
|
@ApiParam(name="imgType",value="图片类别",defaultValue = "")
|
|
|
@RequestParam(value="imgType",required = true) String imgType,
|
|
|
@ApiParam(name="imgLabel",value="图片标签",defaultValue = "")
|
|
|
@RequestParam(value="imgLabel",required = true) String imgLabel,
|
|
|
@ApiParam(name="imgUrl",value="图片路径",defaultValue = "")
|
|
|
@RequestParam(value="imgUrl",required = true) String imgUrl)
|
|
|
{
|
|
|
try {
|
|
|
patientEventService.addEventImg(eventId,imgType,imgLabel,imgUrl);
|
|
|
|
|
|
return write(200, "新增就诊事件图片成功!");
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, "新增就诊事件图片失败!");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/event/img/edit", produces = "application/json;charset=UTF-8", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("修改就诊事件图片")
|
|
|
public String editEventImg(@ApiParam(name="id",value="就诊事件图片id",defaultValue = "")
|
|
|
@RequestParam(value="id",required = true) Long id,
|
|
|
@ApiParam(name="imgType",value="图片类别",defaultValue = "")
|
|
|
@RequestParam(value="imgType",required = true) String imgType,
|
|
|
@ApiParam(name="imgLabel",value="图片标签",defaultValue = "")
|
|
|
@RequestParam(value="imgLabel",required = true) String imgLabel)
|
|
|
{
|
|
|
try {
|
|
|
patientEventService.editEventImg(id,imgType,imgLabel);
|
|
|
|
|
|
return write(200, "修改就诊事件图片成功!");
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, "修改就诊事件图片失败!");
|
|
|
}
|
|
|
}
|
|
|
}
|