|
|
|
@ -2,6 +2,7 @@ package com.xydl.cac.controller;
|
|
|
|
|
|
|
|
|
|
import com.xydl.cac.entity.IcdConfigType;
|
|
|
|
|
import com.xydl.cac.entity.IcdConfigTypeAtt;
|
|
|
|
|
import com.xydl.cac.exception.BusinessException;
|
|
|
|
|
import com.xydl.cac.model.ColumnModel;
|
|
|
|
|
import com.xydl.cac.model.Response;
|
|
|
|
|
import com.xydl.cac.service.DataService;
|
|
|
|
@ -72,14 +73,20 @@ public class IcdConfigController extends BasicController {
|
|
|
|
|
|
|
|
|
|
@PostMapping("delete")
|
|
|
|
|
@ApiOperation("删除ICD类型配置")
|
|
|
|
|
public Response<String> delete(@Validated @NotNull(message = "ID不能为空!") Integer id) {
|
|
|
|
|
public Response<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
|
|
|
|
|
if (id == null) {
|
|
|
|
|
throw new BusinessException("id不能为空!");
|
|
|
|
|
}
|
|
|
|
|
configService.delete(id);
|
|
|
|
|
return Response.success("OK");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping("deleteAtt")
|
|
|
|
|
@ApiOperation("删除ICD类型属性配置")
|
|
|
|
|
public Response<String> deleteAtt(@Validated @NotNull(message = "attid不能为空!") Integer attid) {
|
|
|
|
|
public Response<String> deleteAtt(@Validated @NotNull(message = "attid不能为空!") Integer attid) throws Exception {
|
|
|
|
|
if (attid == null) {
|
|
|
|
|
throw new BusinessException("attid不能为空!");
|
|
|
|
|
}
|
|
|
|
|
configService.deleteAtt(attid);
|
|
|
|
|
return Response.success("OK");
|
|
|
|
|
}
|
|
|
|
|