新增接口
This commit is contained in:
parent
544710ef21
commit
e5f4ca3147
@ -59,6 +59,13 @@ public class ecgdataController {
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@PutMapping("/upecgfilename")
|
||||
@Operation(summary = "更新心电图文件名称和压缩文件名称")
|
||||
public CommonResult<Boolean> upecgfilename(@Valid @RequestBody ecgupfilename upecgfilename) {
|
||||
ecgdataService.upecgfilename(upecgfilename);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
@GetMapping("/apply-superior-review")
|
||||
@Operation(summary = "申请上级审核")
|
||||
public CommonResult<Boolean> applySuperiorReview(@RequestParam("id") Integer id,@RequestParam("orgid") String orgid) {
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalTime;
|
||||
@ -70,4 +71,10 @@ public class ecgdataPageReqVO extends PageParam {
|
||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
|
||||
private LocalDateTime[] updatetime;
|
||||
|
||||
private String filename;
|
||||
/*
|
||||
* 压缩文件名称
|
||||
* */
|
||||
private String zipname;
|
||||
|
||||
}
|
||||
@ -86,4 +86,6 @@ public class ecgdataRespVO {
|
||||
@ExcelProperty("更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@ -67,4 +67,9 @@ public class ecgdataSaveReqVO {
|
||||
@Schema(description = "更新时间")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
private String filename;
|
||||
/*
|
||||
* 压缩文件名称
|
||||
* */
|
||||
private String zipname;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class ecgupfilename {
|
||||
|
||||
@Schema(description = "主键ID,自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "18914")
|
||||
private Integer id;
|
||||
|
||||
@Schema(description = "文件名")
|
||||
private String filename;
|
||||
|
||||
@Schema(description = "压缩文件名")
|
||||
private String zipname;
|
||||
}
|
||||
@ -114,6 +114,15 @@ public class ecgdataDO{
|
||||
*/
|
||||
@TableField("updatetime")
|
||||
private LocalDateTime updatetime;
|
||||
|
||||
/*
|
||||
* 文件名称
|
||||
* */
|
||||
@TableField("filename")
|
||||
private String filename;
|
||||
/*
|
||||
* 压缩文件名称
|
||||
* */
|
||||
@TableField("zipname")
|
||||
private String zipname;
|
||||
|
||||
}
|
||||
@ -38,6 +38,11 @@ public interface ecgdataService {
|
||||
* 动态心电申请功能
|
||||
* */
|
||||
void applySuperiorReview(Integer id, String orgid);
|
||||
/*
|
||||
* 更新文件名称和压缩文件名称
|
||||
*
|
||||
* */
|
||||
void upecgfilename(ecgupfilename ecgupfilename);
|
||||
|
||||
/**
|
||||
* 删除心电图动态数据
|
||||
|
||||
@ -68,7 +68,22 @@ public class ecgdataServiceImpl implements ecgdataService {
|
||||
ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class);
|
||||
ecgdataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void upecgfilename(ecgupfilename ecgupfilename)
|
||||
{
|
||||
ecgdataSaveReqVO updateReqVO = new ecgdataSaveReqVO();
|
||||
updateReqVO.setId(ecgupfilename.getId());
|
||||
if (ecgupfilename.getZipname() != null)
|
||||
{
|
||||
updateReqVO.setZipname(ecgupfilename.getZipname());
|
||||
}
|
||||
if (ecgupfilename.getFilename() != null)
|
||||
{
|
||||
updateReqVO.setFilename(ecgupfilename.getFilename());
|
||||
}
|
||||
ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class);
|
||||
ecgdataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deleteecgdata(Integer id) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user