feat: 增加删除属性

dev
huangfeng 1 year ago
parent fed269b70a
commit 0cb208c280

@ -77,6 +77,13 @@ public class IcdConfigController extends BasicController {
return Response.success("OK");
}
@PostMapping("deleteAtt")
@ApiOperation("删除ICD类型属性配置")
public Response<String> deleteAtt(@Validated @NotNull(message = "attid不能为空!") Integer attid) {
configService.deleteAtt(attid);
return Response.success("OK");
}
@GetMapping("tableList")
@ApiOperation("查询data表名")
public Response<List<String>> tableList() throws Exception {

@ -18,4 +18,6 @@ public interface IcdFileConfigService {
void updateAtt(IcdConfigTypeAtt item) throws Exception;
void delete(Integer id);
void deleteAtt(Integer attid);
}

@ -122,4 +122,9 @@ public class IcdFileConfigServiceImpl implements IcdFileConfigService {
repository.deleteById(id);
}
@Override
public void deleteAtt(Integer attid) {
attRepository.deleteById(attid);
}
}

Loading…
Cancel
Save