新增业务表lis数据抓取表和pacs数据抓取表
This commit is contained in:
parent
98c71d2a5c
commit
9b2dd55694
@ -0,0 +1,97 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectlisdata;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin. inspectlisdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject. inspectlisdata.InspectLisDataDO;
|
||||
import cn.iocoder.yudao.module.inspect.service. inspectlisdata.InspectLisDataService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
|
||||
@Tag(name = "管理后台 - lis抓取数据")
|
||||
@RestController
|
||||
@RequestMapping("/inspect/lis-data")
|
||||
@Validated
|
||||
public class InspectLisDataController {
|
||||
|
||||
@Resource
|
||||
private InspectLisDataService lisDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建lis抓取数据")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:create')")
|
||||
public CommonResult<Integer> createLisData(@Valid @RequestBody InspectLisDataSaveReqVO createReqVO) {
|
||||
return success(lisDataService.createLisData(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新lis抓取数据")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:update')")
|
||||
public CommonResult<Boolean> updateLisData(@Valid @RequestBody InspectLisDataSaveReqVO updateReqVO) {
|
||||
lisDataService.updateLisData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除lis抓取数据")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:delete')")
|
||||
public CommonResult<Boolean> deleteLisData(@RequestParam("id") Integer id) {
|
||||
lisDataService.deleteLisData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得lis抓取数据")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:query')")
|
||||
public CommonResult<InspectLisDataRespVO> getLisData(@RequestParam("id") Integer id) {
|
||||
InspectLisDataDO lisData = lisDataService.getLisData(id);
|
||||
return success(BeanUtils.toBean(lisData, InspectLisDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得lis抓取数据分页")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:query')")
|
||||
public CommonResult<PageResult<InspectLisDataRespVO>> getLisDataPage(@Valid InspectLisDataPageReqVO pageReqVO) {
|
||||
PageResult<InspectLisDataDO> pageResult = lisDataService.getLisDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, InspectLisDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出lis抓取数据 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:lis-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportLisDataExcel(@Valid InspectLisDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<InspectLisDataDO> list = lisDataService.getLisDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "lis抓取数据.xls", "数据", InspectLisDataRespVO.class,
|
||||
BeanUtils.toBean(list, InspectLisDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectlisdata.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - lis抓取数据分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class InspectLisDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "类型", example = "2")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "赵六")
|
||||
private String personName;
|
||||
|
||||
@Schema(description = "检测时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] time;
|
||||
|
||||
@Schema(description = "数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "1178")
|
||||
private String createId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createTime;
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectlisdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - lis抓取数据 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class InspectLisDataRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2598")
|
||||
@ExcelProperty("主键")
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
@ExcelProperty("体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "类型", example = "2")
|
||||
@ExcelProperty("类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
@ExcelProperty("设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
@ExcelProperty("项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "赵六")
|
||||
@ExcelProperty("检测者姓名")
|
||||
private String personName;
|
||||
|
||||
@Schema(description = "检测时间")
|
||||
@ExcelProperty("检测时间")
|
||||
private LocalDateTime time;
|
||||
|
||||
@Schema(description = "数据")
|
||||
@ExcelProperty("数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
@ExcelProperty("是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "1178")
|
||||
@ExcelProperty("创建人")
|
||||
private String createId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectlisdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - lis抓取数据新增/修改 Request VO")
|
||||
@Data
|
||||
public class InspectLisDataSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2598")
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "类型", example = "2")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "赵六")
|
||||
private String personName;
|
||||
|
||||
@Schema(description = "检测时间")
|
||||
private LocalDateTime time;
|
||||
|
||||
@Schema(description = "数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "备注", example = "你猜")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "1178")
|
||||
private String createId;
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
import java.io.IOException;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||
|
||||
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||
|
||||
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
||||
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject.inspectpacsdata.InspectPacsDataDO;
|
||||
import cn.iocoder.yudao.module.inspect.service.inspectpacsdata.InspectPacsDataService;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
|
||||
@Tag(name = "管理后台 - pacs抓取数据")
|
||||
@RestController
|
||||
@RequestMapping("/inspect/pacs-data")
|
||||
@Validated
|
||||
public class InspectPacsDataController {
|
||||
|
||||
@Resource
|
||||
private InspectPacsDataService pacsDataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建pacs抓取数据")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:create')")
|
||||
public CommonResult<Integer> createPacsData(@Valid @RequestBody InspectPacsDataSaveReqVO createReqVO) {
|
||||
return success(pacsDataService.createPacsData(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新pacs抓取数据")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:update')")
|
||||
public CommonResult<Boolean> updatePacsData(@Valid @RequestBody InspectPacsDataSaveReqVO updateReqVO) {
|
||||
pacsDataService.updatePacsData(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除pacs抓取数据")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:delete')")
|
||||
public CommonResult<Boolean> deletePacsData(@RequestParam("id") Integer id) {
|
||||
pacsDataService.deletePacsData(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得pacs抓取数据")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:query')")
|
||||
public CommonResult<InspectPacsDataRespVO> getPacsData(@RequestParam("id") Integer id) {
|
||||
InspectPacsDataDO pacsData = pacsDataService.getPacsData(id);
|
||||
return success(BeanUtils.toBean(pacsData, InspectPacsDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得pacs抓取数据分页")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:query')")
|
||||
public CommonResult<PageResult<InspectPacsDataRespVO>> getPacsDataPage(@Valid InspectPacsDataPageReqVO pageReqVO) {
|
||||
PageResult<InspectPacsDataDO> pageResult = pacsDataService.getPacsDataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, InspectPacsDataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出pacs抓取数据 Excel")
|
||||
@PreAuthorize("@ss.hasPermission('inspect:pacs-data:export')")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportPacsDataExcel(@Valid InspectPacsDataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<InspectPacsDataDO> list = pacsDataService.getPacsDataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "pacs抓取数据.xls", "数据", InspectPacsDataRespVO.class,
|
||||
BeanUtils.toBean(list, InspectPacsDataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||
|
||||
@Schema(description = "管理后台 - pacs抓取数据分页 Request VO")
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@ToString(callSuper = true)
|
||||
public class InspectPacsDataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "监测时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] time;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "类型", example = "1")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "备注", example = "你说的对")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "4429")
|
||||
private String createId;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "王五")
|
||||
private String personName;
|
||||
|
||||
}
|
@ -0,0 +1,59 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - pacs抓取数据 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class InspectPacsDataRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15787")
|
||||
@ExcelProperty("主键")
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
@ExcelProperty("体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "数据")
|
||||
@ExcelProperty("数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "监测时间")
|
||||
@ExcelProperty("监测时间")
|
||||
private LocalDateTime time;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
@ExcelProperty("设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
@ExcelProperty("项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "类型", example = "1")
|
||||
@ExcelProperty("类型")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "备注", example = "你说的对")
|
||||
@ExcelProperty("备注")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
@ExcelProperty("是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "4429")
|
||||
@ExcelProperty("创建人")
|
||||
private String createId;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "王五")
|
||||
@ExcelProperty("检测者姓名")
|
||||
private String personName;
|
||||
|
||||
}
|
@ -0,0 +1,49 @@
|
||||
package cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - pacs抓取数据新增/修改 Request VO")
|
||||
@Data
|
||||
public class InspectPacsDataSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "15787")
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "体检编号")
|
||||
private String code;
|
||||
|
||||
@Schema(description = "数据")
|
||||
private String data;
|
||||
|
||||
@Schema(description = "监测时间")
|
||||
private LocalDateTime time;
|
||||
|
||||
@Schema(description = "设备厂商型号")
|
||||
private String equipmentManufacturerModel;
|
||||
|
||||
@Schema(description = "项目")
|
||||
private String item;
|
||||
|
||||
@Schema(description = "类型", example = "1")
|
||||
private String type;
|
||||
|
||||
@Schema(description = "备注", example = "你说的对")
|
||||
private String remark;
|
||||
|
||||
@Schema(description = "是否删除(0-未删除,1-已删除)")
|
||||
private Integer delFlag;
|
||||
|
||||
@Schema(description = "创建人", example = "4429")
|
||||
private String createId;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
@Schema(description = "检测者姓名", example = "王五")
|
||||
private String personName;
|
||||
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package cn.iocoder.yudao.module.inspect.dal.dataobject.inspectlisdata;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* lis抓取数据 DO
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@TableName("t_lis_data")
|
||||
@KeySequence("t_lis_data_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectLisDataDO {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 体检编号
|
||||
*/
|
||||
@TableField("code")
|
||||
private String code;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@TableField("type")
|
||||
private String type;
|
||||
/**
|
||||
* 设备厂商型号
|
||||
*/
|
||||
@TableField("equipmentManufacturerModel")
|
||||
private String equipmentManufacturerModel;
|
||||
/**
|
||||
* 项目
|
||||
*/
|
||||
@TableField("item")
|
||||
private String item;
|
||||
/**
|
||||
* 检测者姓名
|
||||
*/
|
||||
@TableField("personName")
|
||||
private String personName;
|
||||
/**
|
||||
* 检测时间
|
||||
*/
|
||||
@TableField("time")
|
||||
private LocalDateTime time;
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
@TableField("data")
|
||||
private String data;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("remark")
|
||||
private String remark;
|
||||
/**
|
||||
* 是否删除(0-未删除,1-已删除)
|
||||
*/
|
||||
@TableField("delFlag")
|
||||
private Integer delFlag;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField("createId")
|
||||
private String createId;
|
||||
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package cn.iocoder.yudao.module.inspect.dal.dataobject.inspectpacsdata;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* pacs抓取数据 DO
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@TableName("t_pacs_data")
|
||||
@KeySequence("t_pacs_data_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class InspectPacsDataDO {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 体检编号
|
||||
*/
|
||||
@TableField("code")
|
||||
private String code;
|
||||
/**
|
||||
* 数据
|
||||
*/
|
||||
@TableField("data")
|
||||
private String data;
|
||||
/**
|
||||
* 监测时间
|
||||
*/
|
||||
@TableField("time")
|
||||
private LocalDateTime time;
|
||||
/**
|
||||
* 设备厂商型号
|
||||
*/
|
||||
@TableField("equipmentManufacturerModel")
|
||||
private String equipmentManufacturerModel;
|
||||
/**
|
||||
* 项目
|
||||
*/
|
||||
@TableField("item")
|
||||
private String item;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@TableField("type")
|
||||
private String type;
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField("remark")
|
||||
private String remark;
|
||||
/**
|
||||
* 是否删除(0-未删除,1-已删除)
|
||||
*/
|
||||
@TableField("delFlag")
|
||||
private Integer delFlag;
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@TableField("createId")
|
||||
private String createId;
|
||||
/**
|
||||
* 检测者姓名
|
||||
*/
|
||||
@TableField("personName")
|
||||
private String personName;
|
||||
|
||||
}
|
@ -134,4 +134,6 @@ public class InspectPatientitemsDO {
|
||||
* */
|
||||
@TableField("mealfrontorafter")
|
||||
private String mealfrontorafter;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package cn.iocoder.yudao.module.inspect.dal.mysql.inspectlisdata;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject. inspectlisdata.InspectLisDataDO;
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin. inspectlisdata.vo.*;
|
||||
|
||||
/**
|
||||
* lis抓取数据 Mapper
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@InterceptorIgnore(tenantLine = "true")
|
||||
@Mapper
|
||||
public interface InspectLisDataMapper extends BaseMapperX<InspectLisDataDO> {
|
||||
|
||||
default PageResult<InspectLisDataDO> selectPage(InspectLisDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<InspectLisDataDO>()
|
||||
.eqIfPresent(InspectLisDataDO::getCode, reqVO.getCode())
|
||||
.eqIfPresent(InspectLisDataDO::getType, reqVO.getType())
|
||||
.eqIfPresent(InspectLisDataDO::getEquipmentManufacturerModel, reqVO.getEquipmentManufacturerModel())
|
||||
.eqIfPresent(InspectLisDataDO::getItem, reqVO.getItem())
|
||||
.likeIfPresent(InspectLisDataDO::getPersonName, reqVO.getPersonName())
|
||||
.betweenIfPresent(InspectLisDataDO::getTime, reqVO.getTime())
|
||||
.eqIfPresent(InspectLisDataDO::getData, reqVO.getData())
|
||||
.eqIfPresent(InspectLisDataDO::getRemark, reqVO.getRemark())
|
||||
.eqIfPresent(InspectLisDataDO::getDelFlag, reqVO.getDelFlag())
|
||||
.eqIfPresent(InspectLisDataDO::getCreateId, reqVO.getCreateId())
|
||||
.orderByDesc(InspectLisDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package cn.iocoder.yudao.module.inspect.dal.mysql.inspectpacsdata;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject.inspectpacsdata.InspectPacsDataDO;
|
||||
import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo.*;
|
||||
|
||||
/**
|
||||
* pacs抓取数据 Mapper
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@InterceptorIgnore(tenantLine = "true")
|
||||
@Mapper
|
||||
public interface InspectPacsDataMapper extends BaseMapperX<InspectPacsDataDO> {
|
||||
|
||||
default PageResult<InspectPacsDataDO> selectPage(InspectPacsDataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<InspectPacsDataDO>()
|
||||
.eqIfPresent(InspectPacsDataDO::getCode, reqVO.getCode())
|
||||
.eqIfPresent(InspectPacsDataDO::getData, reqVO.getData())
|
||||
.betweenIfPresent(InspectPacsDataDO::getTime, reqVO.getTime())
|
||||
.eqIfPresent(InspectPacsDataDO::getEquipmentManufacturerModel, reqVO.getEquipmentManufacturerModel())
|
||||
.eqIfPresent(InspectPacsDataDO::getItem, reqVO.getItem())
|
||||
.eqIfPresent(InspectPacsDataDO::getType, reqVO.getType())
|
||||
.eqIfPresent(InspectPacsDataDO::getRemark, reqVO.getRemark())
|
||||
.eqIfPresent(InspectPacsDataDO::getDelFlag, reqVO.getDelFlag())
|
||||
.eqIfPresent(InspectPacsDataDO::getCreateId, reqVO.getCreateId())
|
||||
.likeIfPresent(InspectPacsDataDO::getPersonName, reqVO.getPersonName())
|
||||
.orderByDesc(InspectPacsDataDO::getId));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.iocoder.yudao.module.inspect.service.inspectlisdata;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin. inspectlisdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject. inspectlisdata.InspectLisDataDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* lis抓取数据 Service 接口
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
public interface InspectLisDataService {
|
||||
|
||||
/**
|
||||
* 创建lis抓取数据
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
Integer createLisData(@Valid InspectLisDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新lis抓取数据
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateLisData(@Valid InspectLisDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除lis抓取数据
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteLisData(Integer id);
|
||||
|
||||
/**
|
||||
* 获得lis抓取数据
|
||||
*
|
||||
* @param id 编号
|
||||
* @return lis抓取数据
|
||||
*/
|
||||
InspectLisDataDO getLisData(Integer id);
|
||||
|
||||
/**
|
||||
* 获得lis抓取数据分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return lis抓取数据分页
|
||||
*/
|
||||
PageResult<InspectLisDataDO> getLisDataPage(InspectLisDataPageReqVO pageReqVO);
|
||||
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
package cn.iocoder.yudao.module.inspect.service.inspectlisdata;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin. inspectlisdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject. inspectlisdata.InspectLisDataDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
|
||||
import cn.iocoder.yudao.module.inspect.dal.mysql. inspectlisdata.InspectLisDataMapper;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
|
||||
/**
|
||||
* lis抓取数据 Service 实现类
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class InspectLisDataServiceImpl implements InspectLisDataService {
|
||||
|
||||
@Resource
|
||||
private InspectLisDataMapper lisDataMapper;
|
||||
|
||||
@Override
|
||||
public Integer createLisData(InspectLisDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
InspectLisDataDO lisData = BeanUtils.toBean(createReqVO, InspectLisDataDO.class);
|
||||
lisDataMapper.insert(lisData);
|
||||
// 返回
|
||||
return lisData.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateLisData(InspectLisDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateLisDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
InspectLisDataDO updateObj = BeanUtils.toBean(updateReqVO, InspectLisDataDO.class);
|
||||
lisDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteLisData(Integer id) {
|
||||
// 校验存在
|
||||
validateLisDataExists(id);
|
||||
// 删除
|
||||
lisDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
private void validateLisDataExists(Integer id) {
|
||||
if (lisDataMapper.selectById(id) == null) {
|
||||
throw exception(null,"");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public InspectLisDataDO getLisData(Integer id) {
|
||||
return lisDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<InspectLisDataDO> getLisDataPage(InspectLisDataPageReqVO pageReqVO) {
|
||||
return lisDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,56 @@
|
||||
package cn.iocoder.yudao.module.inspect.service.inspectpacsdata;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject.inspectpacsdata.InspectPacsDataDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
|
||||
import javax.validation.Valid;
|
||||
|
||||
/**
|
||||
* pacs抓取数据 Service 接口
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
public interface InspectPacsDataService {
|
||||
|
||||
/**
|
||||
* 创建pacs抓取数据
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
Integer createPacsData(@Valid InspectPacsDataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新pacs抓取数据
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updatePacsData(@Valid InspectPacsDataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除pacs抓取数据
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deletePacsData(Integer id);
|
||||
|
||||
/**
|
||||
* 获得pacs抓取数据
|
||||
*
|
||||
* @param id 编号
|
||||
* @return pacs抓取数据
|
||||
*/
|
||||
InspectPacsDataDO getPacsData(Integer id);
|
||||
|
||||
/**
|
||||
* 获得pacs抓取数据分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return pacs抓取数据分页
|
||||
*/
|
||||
PageResult<InspectPacsDataDO> getPacsDataPage(InspectPacsDataPageReqVO pageReqVO);
|
||||
|
||||
}
|
@ -0,0 +1,75 @@
|
||||
package cn.iocoder.yudao.module.inspect.service.inspectpacsdata;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.inspect.controller.admin.inspectpacsdata.vo.*;
|
||||
import cn.iocoder.yudao.module.inspect.dal.dataobject.inspectpacsdata.InspectPacsDataDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
|
||||
import cn.iocoder.yudao.module.inspect.dal.mysql.inspectpacsdata.InspectPacsDataMapper;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
|
||||
/**
|
||||
* pacs抓取数据 Service 实现类
|
||||
*
|
||||
* @author 李晓东
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class InspectPacsDataServiceImpl implements InspectPacsDataService {
|
||||
|
||||
@Resource
|
||||
private InspectPacsDataMapper pacsDataMapper;
|
||||
|
||||
@Override
|
||||
public Integer createPacsData(InspectPacsDataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
InspectPacsDataDO pacsData = BeanUtils.toBean(createReqVO, InspectPacsDataDO.class);
|
||||
pacsDataMapper.insert(pacsData);
|
||||
// 返回
|
||||
return pacsData.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updatePacsData(InspectPacsDataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validatePacsDataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
InspectPacsDataDO updateObj = BeanUtils.toBean(updateReqVO, InspectPacsDataDO.class);
|
||||
pacsDataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deletePacsData(Integer id) {
|
||||
// 校验存在
|
||||
validatePacsDataExists(id);
|
||||
// 删除
|
||||
pacsDataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
private void validatePacsDataExists(Integer id) {
|
||||
if (pacsDataMapper.selectById(id) == null) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public InspectPacsDataDO getPacsData(Integer id) {
|
||||
return pacsDataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<InspectPacsDataDO> getPacsDataPage(InspectPacsDataPageReqVO pageReqVO) {
|
||||
return pacsDataMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.inspect.dal.mysql.inspectlisdata.InspectLisDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.inspect.dal.mysql.inspectpacsdata.InspectPacsDataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user