添加动态血糖表
This commit is contained in:
parent
79533e1a9c
commit
5d8d289727
@ -0,0 +1,97 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgm;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
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 javax.validation.constraints.*;
|
||||
import javax.validation.*;
|
||||
import javax.servlet.http.*;
|
||||
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.system.controller.admin.cgm.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgm.CgmDO;
|
||||
import cn.iocoder.yudao.module.system.service.cgm.CgmService;
|
||||
|
||||
@Tag(name = "管理后台 - CGM数据")
|
||||
@RestController
|
||||
@RequestMapping("/system/cgm")
|
||||
@Validated
|
||||
public class CgmController {
|
||||
|
||||
@Resource
|
||||
private CgmService cgmService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建CGM数据")
|
||||
public CommonResult<Long> createCgm(@Valid @RequestBody CgmSaveReqVO createReqVO) {
|
||||
return success(cgmService.createCgm(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新CGM数据")
|
||||
public CommonResult<Boolean> updateCgm(@Valid @RequestBody CgmSaveReqVO updateReqVO) {
|
||||
cgmService.updateCgm(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除CGM数据")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
public CommonResult<Boolean> deleteCgm(@RequestParam("id") Long id) {
|
||||
cgmService.deleteCgm(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除CGM数据")
|
||||
public CommonResult<Boolean> deleteCgmList(@RequestParam("ids") List<Long> ids) {
|
||||
cgmService.deleteCgmListByIds(ids);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得CGM数据")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
public CommonResult<CgmRespVO> getCgm(@RequestParam("id") Long id) {
|
||||
CgmDO cgm = cgmService.getCgm(id);
|
||||
return success(BeanUtils.toBean(cgm, CgmRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得CGM数据分页")
|
||||
public CommonResult<PageResult<CgmRespVO>> getCgmPage(@Valid CgmPageReqVO pageReqVO) {
|
||||
PageResult<CgmDO> pageResult = cgmService.getCgmPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CgmRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出CGM数据 Excel")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportCgmExcel(@Valid CgmPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<CgmDO> list = cgmService.getCgmPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "CGM数据.xls", "数据", CgmRespVO.class,
|
||||
BeanUtils.toBean(list, CgmRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,64 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgm.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 = "管理后台 - CGM数据分页 Request VO")
|
||||
@Data
|
||||
public class CgmPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "检查ID", example = "20596")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "患者注册ID", example = "28095")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "患者姓名", example = "张三")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private String gender;
|
||||
|
||||
@Schema(description = "年龄")
|
||||
private String age;
|
||||
|
||||
@Schema(description = "机构ID", example = "20308")
|
||||
private String orgid;
|
||||
|
||||
@Schema(description = "机构名称", example = "李四")
|
||||
private String orgname;
|
||||
|
||||
@Schema(description = "管理机构")
|
||||
private String managerorg;
|
||||
|
||||
@Schema(description = "设备ID", example = "6501")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "李四")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "状态: 0=申请中, 1=已申请", example = "1")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "佩戴时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] weartime;
|
||||
|
||||
@Schema(description = "分析结果")
|
||||
private String analysisresult;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgm.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 = "管理后台 - CGM数据 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class CgmRespVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31474")
|
||||
@ExcelProperty("主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检查ID", example = "20596")
|
||||
@ExcelProperty("检查ID")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "患者注册ID", example = "28095")
|
||||
@ExcelProperty("患者注册ID")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "患者姓名", example = "张三")
|
||||
@ExcelProperty("患者姓名")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "性别")
|
||||
@ExcelProperty("性别")
|
||||
private String gender;
|
||||
|
||||
@Schema(description = "年龄")
|
||||
@ExcelProperty("年龄")
|
||||
private String age;
|
||||
|
||||
@Schema(description = "机构ID", example = "20308")
|
||||
@ExcelProperty("机构ID")
|
||||
private String orgid;
|
||||
|
||||
@Schema(description = "机构名称", example = "李四")
|
||||
@ExcelProperty("机构名称")
|
||||
private String orgname;
|
||||
|
||||
@Schema(description = "管理机构")
|
||||
@ExcelProperty("管理机构")
|
||||
private String managerorg;
|
||||
|
||||
@Schema(description = "设备ID", example = "6501")
|
||||
@ExcelProperty("设备ID")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "李四")
|
||||
@ExcelProperty("设备名称")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "状态: 0=申请中, 1=已申请", example = "1")
|
||||
@ExcelProperty("状态: 0=申请中, 1=已申请")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "佩戴时间")
|
||||
@ExcelProperty("佩戴时间")
|
||||
private LocalDateTime weartime;
|
||||
|
||||
@Schema(description = "分析结果")
|
||||
@ExcelProperty("分析结果")
|
||||
private String analysisresult;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@ExcelProperty("更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgm.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.*;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - CGM数据新增/修改 Request VO")
|
||||
@Data
|
||||
public class CgmSaveReqVO {
|
||||
|
||||
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31474")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "检查ID", example = "20596")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "患者注册ID", example = "28095")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "患者姓名", example = "张三")
|
||||
private String name;
|
||||
|
||||
@Schema(description = "性别")
|
||||
private String gender;
|
||||
|
||||
@Schema(description = "年龄")
|
||||
private String age;
|
||||
|
||||
@Schema(description = "机构ID", example = "20308")
|
||||
private String orgid;
|
||||
|
||||
@Schema(description = "机构名称", example = "李四")
|
||||
private String orgname;
|
||||
|
||||
@Schema(description = "管理机构")
|
||||
private String managerorg;
|
||||
|
||||
@Schema(description = "设备ID", example = "6501")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "李四")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "状态: 0=申请中, 1=已申请", example = "1")
|
||||
private Integer status;
|
||||
|
||||
@Schema(description = "佩戴时间")
|
||||
private LocalDateTime weartime;
|
||||
|
||||
@Schema(description = "分析结果")
|
||||
private String analysisresult;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,97 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgmdata;
|
||||
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import javax.annotation.Resource;
|
||||
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 javax.validation.constraints.*;
|
||||
import javax.validation.*;
|
||||
import javax.servlet.http.*;
|
||||
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.system.controller.admin.cgmdata.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgmdata.CgmdataDO;
|
||||
import cn.iocoder.yudao.module.system.service.cgmdata.CgmdataService;
|
||||
|
||||
@Tag(name = "管理后台 - CGM动态血糖数据")
|
||||
@RestController
|
||||
@RequestMapping("/system/cgmdata")
|
||||
@Validated
|
||||
public class CgmdataController {
|
||||
|
||||
@Resource
|
||||
private CgmdataService cgmdataService;
|
||||
|
||||
@PostMapping("/create")
|
||||
@Operation(summary = "创建CGM动态血糖数据")
|
||||
public CommonResult<Long> createCgmdata(@Valid @RequestBody CgmdataSaveReqVO createReqVO) {
|
||||
return success(cgmdataService.createCgmdata(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新CGM动态血糖数据")
|
||||
public CommonResult<Boolean> updateCgmdata(@Valid @RequestBody CgmdataSaveReqVO updateReqVO) {
|
||||
cgmdataService.updateCgmdata(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete")
|
||||
@Operation(summary = "删除CGM动态血糖数据")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
public CommonResult<Boolean> deleteCgmdata(@RequestParam("id") Long id) {
|
||||
cgmdataService.deleteCgmdata(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@DeleteMapping("/delete-list")
|
||||
@Parameter(name = "ids", description = "编号", required = true)
|
||||
@Operation(summary = "批量删除CGM动态血糖数据")
|
||||
public CommonResult<Boolean> deleteCgmdataList(@RequestParam("ids") List<Long> ids) {
|
||||
cgmdataService.deleteCgmdataListByIds(ids);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得CGM动态血糖数据")
|
||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||
public CommonResult<CgmdataRespVO> getCgmdata(@RequestParam("id") Long id) {
|
||||
CgmdataDO cgmdata = cgmdataService.getCgmdata(id);
|
||||
return success(BeanUtils.toBean(cgmdata, CgmdataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/page")
|
||||
@Operation(summary = "获得CGM动态血糖数据分页")
|
||||
public CommonResult<PageResult<CgmdataRespVO>> getCgmdataPage(@Valid CgmdataPageReqVO pageReqVO) {
|
||||
PageResult<CgmdataDO> pageResult = cgmdataService.getCgmdataPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CgmdataRespVO.class));
|
||||
}
|
||||
|
||||
@GetMapping("/export-excel")
|
||||
@Operation(summary = "导出CGM动态血糖数据 Excel")
|
||||
@ApiAccessLog(operateType = EXPORT)
|
||||
public void exportCgmdataExcel(@Valid CgmdataPageReqVO pageReqVO,
|
||||
HttpServletResponse response) throws IOException {
|
||||
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||
List<CgmdataDO> list = cgmdataService.getCgmdataPage(pageReqVO).getList();
|
||||
// 导出 Excel
|
||||
ExcelUtils.write(response, "CGM动态血糖数据.xls", "数据", CgmdataRespVO.class,
|
||||
BeanUtils.toBean(list, CgmdataRespVO.class));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import java.math.BigDecimal;
|
||||
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 = "管理后台 - CGM动态血糖数据分页 Request VO")
|
||||
@Data
|
||||
public class CgmdataPageReqVO extends PageParam {
|
||||
|
||||
@Schema(description = "注册ID", example = "8332")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "检查ID", example = "28018")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "佩戴时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] weartime;
|
||||
|
||||
@Schema(description = "测量时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] measuretime;
|
||||
|
||||
@Schema(description = "设备ID", example = "15928")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "张三")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "动态血糖值(mmol/L)")
|
||||
private BigDecimal glucosevalue;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
import com.alibaba.excel.annotation.*;
|
||||
|
||||
@Schema(description = "管理后台 - CGM动态血糖数据 Response VO")
|
||||
@Data
|
||||
@ExcelIgnoreUnannotated
|
||||
public class CgmdataRespVO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12108")
|
||||
@ExcelProperty("主键ID")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "注册ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8332")
|
||||
@ExcelProperty("注册ID")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "检查ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28018")
|
||||
@ExcelProperty("检查ID")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "佩戴时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@ExcelProperty("佩戴时间")
|
||||
private LocalDateTime weartime;
|
||||
|
||||
@Schema(description = "测量时间")
|
||||
@ExcelProperty("测量时间")
|
||||
private LocalDateTime measuretime;
|
||||
|
||||
@Schema(description = "设备ID", example = "15928")
|
||||
@ExcelProperty("设备ID")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "张三")
|
||||
@ExcelProperty("设备名称")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "动态血糖值(mmol/L)")
|
||||
@ExcelProperty("动态血糖值(mmol/L)")
|
||||
private BigDecimal glucosevalue;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
@ExcelProperty("创建时间")
|
||||
private LocalDateTime createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
@ExcelProperty("更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,48 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import javax.validation.constraints.*;
|
||||
import java.math.BigDecimal;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@Schema(description = "管理后台 - CGM动态血糖数据新增/修改 Request VO")
|
||||
@Data
|
||||
public class CgmdataSaveReqVO {
|
||||
|
||||
@Schema(description = "主键ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "12108")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "注册ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8332")
|
||||
@NotEmpty(message = "注册ID不能为空")
|
||||
private String regid;
|
||||
|
||||
@Schema(description = "检查ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28018")
|
||||
@NotEmpty(message = "检查ID不能为空")
|
||||
private String examid;
|
||||
|
||||
@Schema(description = "佩戴时间", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "佩戴时间不能为空")
|
||||
private LocalDateTime weartime;
|
||||
|
||||
@Schema(description = "测量时间")
|
||||
private LocalDateTime measuretime;
|
||||
|
||||
@Schema(description = "设备ID", example = "15928")
|
||||
private String deviceid;
|
||||
|
||||
@Schema(description = "设备名称", example = "张三")
|
||||
private String devicename;
|
||||
|
||||
@Schema(description = "动态血糖值(mmol/L)")
|
||||
private BigDecimal glucosevalue;
|
||||
|
||||
@Schema(description = "创建时间")
|
||||
private LocalDateTime createtime;
|
||||
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
package cn.iocoder.yudao.module.system.dal.dataobject.cgm;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* CGM数据 DO
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@TableName("tb_cgm")
|
||||
@KeySequence("tb_cgm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CgmDO {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 检查ID
|
||||
*/
|
||||
@TableField("examid")
|
||||
private String examid;
|
||||
/**
|
||||
* 患者注册ID
|
||||
*/
|
||||
@TableField("regid")
|
||||
private String regid;
|
||||
/**
|
||||
* 患者姓名
|
||||
*/
|
||||
@TableField("name")
|
||||
private String name;
|
||||
/**
|
||||
* 性别
|
||||
*/
|
||||
@TableField("gender")
|
||||
private String gender;
|
||||
/**
|
||||
* 年龄
|
||||
*/
|
||||
@TableField("age")
|
||||
private String age;
|
||||
/**
|
||||
* 机构ID
|
||||
*/
|
||||
@TableField("orgid")
|
||||
private String orgid;
|
||||
/**
|
||||
* 机构名称
|
||||
*/
|
||||
@TableField("orgname")
|
||||
private String orgname;
|
||||
/**
|
||||
* 管理机构
|
||||
*/
|
||||
@TableField("managerorg")
|
||||
private String managerorg;
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@TableField("deviceid")
|
||||
private String deviceid;
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@TableField("devicename")
|
||||
private String devicename;
|
||||
/**
|
||||
* 状态: 0=申请中, 1=已申请
|
||||
*/
|
||||
@TableField("status")
|
||||
private Integer status;
|
||||
/**
|
||||
* 佩戴时间
|
||||
*/
|
||||
@TableField("weartime")
|
||||
private LocalDateTime weartime;
|
||||
/**
|
||||
* 分析结果
|
||||
*/
|
||||
@TableField("analysisresult")
|
||||
private String analysisresult;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("createtime")
|
||||
private LocalDateTime createtime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("updatetime")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package cn.iocoder.yudao.module.system.dal.dataobject.cgmdata;
|
||||
|
||||
import lombok.*;
|
||||
import java.util.*;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalDateTime;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
|
||||
/**
|
||||
* CGM动态血糖数据 DO
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@TableName("tb_cgmdata")
|
||||
@KeySequence("tb_cgmdata_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||
@Data
|
||||
@ToString(callSuper = true)
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class CgmdataDO {
|
||||
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId
|
||||
private Long id;
|
||||
/**
|
||||
* 注册ID
|
||||
*/
|
||||
@TableField("regid")
|
||||
private String regid;
|
||||
/**
|
||||
* 检查ID
|
||||
*/
|
||||
@TableField("examid")
|
||||
private String examid;
|
||||
/**
|
||||
* 佩戴时间
|
||||
*/
|
||||
@TableField("weartime")
|
||||
private LocalDateTime weartime;
|
||||
/**
|
||||
* 测量时间
|
||||
*/
|
||||
@TableField("measuretime")
|
||||
private LocalDateTime measuretime;
|
||||
/**
|
||||
* 设备ID
|
||||
*/
|
||||
@TableField("deviceid")
|
||||
private String deviceid;
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@TableField("devicename")
|
||||
private String devicename;
|
||||
/**
|
||||
* 动态血糖值(mmol/L)
|
||||
*/
|
||||
@TableField("glucosevalue")
|
||||
private BigDecimal glucosevalue;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("createtime")
|
||||
private LocalDateTime createtime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("updatetime")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,40 @@
|
||||
package cn.iocoder.yudao.module.system.dal.mysql.cgm;
|
||||
|
||||
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.system.dal.dataobject.cgm.CgmDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgm.vo.*;
|
||||
|
||||
/**
|
||||
* CGM数据 Mapper
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@Mapper
|
||||
public interface CgmMapper extends BaseMapperX<CgmDO> {
|
||||
|
||||
default PageResult<CgmDO> selectPage(CgmPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<CgmDO>()
|
||||
.eqIfPresent(CgmDO::getExamid, reqVO.getExamid())
|
||||
.eqIfPresent(CgmDO::getRegid, reqVO.getRegid())
|
||||
.likeIfPresent(CgmDO::getName, reqVO.getName())
|
||||
.eqIfPresent(CgmDO::getGender, reqVO.getGender())
|
||||
.eqIfPresent(CgmDO::getAge, reqVO.getAge())
|
||||
.eqIfPresent(CgmDO::getOrgid, reqVO.getOrgid())
|
||||
.likeIfPresent(CgmDO::getOrgname, reqVO.getOrgname())
|
||||
.eqIfPresent(CgmDO::getManagerorg, reqVO.getManagerorg())
|
||||
.eqIfPresent(CgmDO::getDeviceid, reqVO.getDeviceid())
|
||||
.likeIfPresent(CgmDO::getDevicename, reqVO.getDevicename())
|
||||
.eqIfPresent(CgmDO::getStatus, reqVO.getStatus())
|
||||
.betweenIfPresent(CgmDO::getWeartime, reqVO.getWeartime())
|
||||
.eqIfPresent(CgmDO::getAnalysisresult, reqVO.getAnalysisresult())
|
||||
.betweenIfPresent(CgmDO::getCreatetime, reqVO.getCreatetime())
|
||||
.betweenIfPresent(CgmDO::getUpdatetime, reqVO.getUpdatetime())
|
||||
.orderByDesc(CgmDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package cn.iocoder.yudao.module.system.dal.mysql.cgmdata;
|
||||
|
||||
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.system.dal.dataobject.cgmdata.CgmdataDO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo.*;
|
||||
|
||||
/**
|
||||
* CGM动态血糖数据 Mapper
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@Mapper
|
||||
public interface CgmdataMapper extends BaseMapperX<CgmdataDO> {
|
||||
|
||||
default PageResult<CgmdataDO> selectPage(CgmdataPageReqVO reqVO) {
|
||||
return selectPage(reqVO, new LambdaQueryWrapperX<CgmdataDO>()
|
||||
.eqIfPresent(CgmdataDO::getRegid, reqVO.getRegid())
|
||||
.eqIfPresent(CgmdataDO::getExamid, reqVO.getExamid())
|
||||
.betweenIfPresent(CgmdataDO::getWeartime, reqVO.getWeartime())
|
||||
.betweenIfPresent(CgmdataDO::getMeasuretime, reqVO.getMeasuretime())
|
||||
.eqIfPresent(CgmdataDO::getDeviceid, reqVO.getDeviceid())
|
||||
.likeIfPresent(CgmdataDO::getDevicename, reqVO.getDevicename())
|
||||
.eqIfPresent(CgmdataDO::getGlucosevalue, reqVO.getGlucosevalue())
|
||||
.betweenIfPresent(CgmdataDO::getCreatetime, reqVO.getCreatetime())
|
||||
.betweenIfPresent(CgmdataDO::getUpdatetime, reqVO.getUpdatetime())
|
||||
.orderByDesc(CgmdataDO::getId));
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package cn.iocoder.yudao.module.system.service.cgm;
|
||||
|
||||
import java.util.*;
|
||||
import javax.validation.*;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgm.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgm.CgmDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* CGM数据 Service 接口
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
public interface CgmService {
|
||||
|
||||
/**
|
||||
* 创建CGM数据
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
Long createCgm(@Valid CgmSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新CGM数据
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateCgm(@Valid CgmSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除CGM数据
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteCgm(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除CGM数据
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteCgmListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得CGM数据
|
||||
*
|
||||
* @param id 编号
|
||||
* @return CGM数据
|
||||
*/
|
||||
CgmDO getCgm(Long id);
|
||||
|
||||
/**
|
||||
* 获得CGM数据分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return CGM数据分页
|
||||
*/
|
||||
PageResult<CgmDO> getCgmPage(CgmPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package cn.iocoder.yudao.module.system.service.cgm;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgm.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgm.CgmDO;
|
||||
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.system.dal.mysql.cgm.CgmMapper;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* CGM数据 Service 实现类
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class CgmServiceImpl implements CgmService {
|
||||
|
||||
@Resource
|
||||
private CgmMapper cgmMapper;
|
||||
|
||||
@Override
|
||||
public Long createCgm(CgmSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
CgmDO cgm = BeanUtils.toBean(createReqVO, CgmDO.class);
|
||||
cgmMapper.insert(cgm);
|
||||
// 返回
|
||||
return cgm.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateCgm(CgmSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateCgmExists(updateReqVO.getId());
|
||||
// 更新
|
||||
CgmDO updateObj = BeanUtils.toBean(updateReqVO, CgmDO.class);
|
||||
cgmMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCgm(Long id) {
|
||||
// 校验存在
|
||||
validateCgmExists(id);
|
||||
// 删除
|
||||
cgmMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCgmListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateCgmExists(ids);
|
||||
// 删除
|
||||
cgmMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateCgmExists(List<Long> ids) {
|
||||
List<CgmDO> list = cgmMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
}
|
||||
}
|
||||
|
||||
private void validateCgmExists(Long id) {
|
||||
if (cgmMapper.selectById(id) == null) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CgmDO getCgm(Long id) {
|
||||
return cgmMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<CgmDO> getCgmPage(CgmPageReqVO pageReqVO) {
|
||||
return cgmMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package cn.iocoder.yudao.module.system.service.cgmdata;
|
||||
|
||||
import java.util.*;
|
||||
import javax.validation.*;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgmdata.CgmdataDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
|
||||
/**
|
||||
* CGM动态血糖数据 Service 接口
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
public interface CgmdataService {
|
||||
|
||||
/**
|
||||
* 创建CGM动态血糖数据
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
Long createCgmdata(@Valid CgmdataSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新CGM动态血糖数据
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateCgmdata(@Valid CgmdataSaveReqVO updateReqVO);
|
||||
|
||||
/**
|
||||
* 删除CGM动态血糖数据
|
||||
*
|
||||
* @param id 编号
|
||||
*/
|
||||
void deleteCgmdata(Long id);
|
||||
|
||||
/**
|
||||
* 批量删除CGM动态血糖数据
|
||||
*
|
||||
* @param ids 编号
|
||||
*/
|
||||
void deleteCgmdataListByIds(List<Long> ids);
|
||||
|
||||
/**
|
||||
* 获得CGM动态血糖数据
|
||||
*
|
||||
* @param id 编号
|
||||
* @return CGM动态血糖数据
|
||||
*/
|
||||
CgmdataDO getCgmdata(Long id);
|
||||
|
||||
/**
|
||||
* 获得CGM动态血糖数据分页
|
||||
*
|
||||
* @param pageReqVO 分页查询
|
||||
* @return CGM动态血糖数据分页
|
||||
*/
|
||||
PageResult<CgmdataDO> getCgmdataPage(CgmdataPageReqVO pageReqVO);
|
||||
|
||||
}
|
||||
@ -0,0 +1,90 @@
|
||||
package cn.iocoder.yudao.module.system.service.cgmdata;
|
||||
|
||||
import cn.hutool.core.collection.CollUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.cgmdata.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.cgmdata.CgmdataDO;
|
||||
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.system.dal.mysql.cgmdata.CgmdataMapper;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.diffList;
|
||||
import static cn.iocoder.yudao.module.system.enums.ErrorCodeConstants.*;
|
||||
|
||||
/**
|
||||
* CGM动态血糖数据 Service 实现类
|
||||
*
|
||||
* @author 艾康菲
|
||||
*/
|
||||
@Service
|
||||
@Validated
|
||||
public class CgmdataServiceImpl implements CgmdataService {
|
||||
|
||||
@Resource
|
||||
private CgmdataMapper cgmdataMapper;
|
||||
|
||||
@Override
|
||||
public Long createCgmdata(CgmdataSaveReqVO createReqVO) {
|
||||
// 插入
|
||||
CgmdataDO cgmdata = BeanUtils.toBean(createReqVO, CgmdataDO.class);
|
||||
cgmdataMapper.insert(cgmdata);
|
||||
// 返回
|
||||
return cgmdata.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateCgmdata(CgmdataSaveReqVO updateReqVO) {
|
||||
// 校验存在
|
||||
validateCgmdataExists(updateReqVO.getId());
|
||||
// 更新
|
||||
CgmdataDO updateObj = BeanUtils.toBean(updateReqVO, CgmdataDO.class);
|
||||
cgmdataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCgmdata(Long id) {
|
||||
// 校验存在
|
||||
validateCgmdataExists(id);
|
||||
// 删除
|
||||
cgmdataMapper.deleteById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteCgmdataListByIds(List<Long> ids) {
|
||||
// 校验存在
|
||||
validateCgmdataExists(ids);
|
||||
// 删除
|
||||
cgmdataMapper.deleteByIds(ids);
|
||||
}
|
||||
|
||||
private void validateCgmdataExists(List<Long> ids) {
|
||||
List<CgmdataDO> list = cgmdataMapper.selectByIds(ids);
|
||||
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||
}
|
||||
}
|
||||
|
||||
private void validateCgmdataExists(Long id) {
|
||||
if (cgmdataMapper.selectById(id) == null) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public CgmdataDO getCgmdata(Long id) {
|
||||
return cgmdataMapper.selectById(id);
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageResult<CgmdataDO> getCgmdataPage(CgmdataPageReqVO pageReqVO) {
|
||||
return cgmdataMapper.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.system.dal.mysql.cgm.CgmMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 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.system.dal.mysql.cgmdata.CgmdataMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
||||
@ -287,6 +287,8 @@ yudao:
|
||||
- tb_abpmdata #忽略abpmdata表
|
||||
- tb_staticdata #忽略静态心电数据表
|
||||
- tb_staticecg #忽略静态心电图数据表
|
||||
- tb_cgm #忽略动态血压人员信息表
|
||||
- tb_cgmdata #忽略动态血压数据表
|
||||
ignore-caches:
|
||||
- user_role_ids
|
||||
- permission_menu_ids
|
||||
|
||||
Loading…
Reference in New Issue
Block a user