修改动态心电数据DO和VO 时长字段的类型
This commit is contained in:
parent
35ef671f37
commit
97f6cc7da5
@ -48,7 +48,7 @@ public class ecgdataRespVO {
|
||||
|
||||
@Schema(description = "佩戴时长(时分秒格式)")
|
||||
@ExcelProperty("佩戴时长(时分秒格式)")
|
||||
private LocalTime duration;
|
||||
private String duration;
|
||||
|
||||
@Schema(description = "佩戴时长(秒数)")
|
||||
@ExcelProperty("佩戴时长(秒数)")
|
||||
|
||||
@ -38,7 +38,7 @@ public class ecgdataSaveReqVO {
|
||||
private LocalDateTime wearendtime;
|
||||
|
||||
@Schema(description = "佩戴时长(时分秒格式)")
|
||||
private LocalTime duration;
|
||||
private String duration;
|
||||
|
||||
@Schema(description = "佩戴时长(秒数)")
|
||||
private Integer durationseconds;
|
||||
|
||||
@ -14,4 +14,7 @@ public class ecgupfilename {
|
||||
|
||||
@Schema(description = "压缩文件名")
|
||||
private String zipname;
|
||||
|
||||
@Schema(description = "时长")
|
||||
private String duration;
|
||||
}
|
||||
|
||||
@ -68,7 +68,7 @@ public class ecgdataDO{
|
||||
* 佩戴时长(时分秒格式)
|
||||
*/
|
||||
@TableField("duration")
|
||||
private LocalTime duration;
|
||||
private String duration;
|
||||
/**
|
||||
* 佩戴时长(秒数)
|
||||
*/
|
||||
|
||||
@ -9,6 +9,7 @@ import javax.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.LocalTime;
|
||||
import java.util.*;
|
||||
import cn.iocoder.yudao.module.system.controller.admin.ecgdata.vo.*;
|
||||
import cn.iocoder.yudao.module.system.dal.dataobject.ecgdata.ecgdataDO;
|
||||
@ -81,6 +82,10 @@ public class ecgdataServiceImpl implements ecgdataService {
|
||||
{
|
||||
updateReqVO.setFilename(ecgupfilename.getFilename());
|
||||
}
|
||||
if (ecgupfilename.getDuration() != null)
|
||||
{
|
||||
updateReqVO.setDuration(ecgupfilename.getDuration());
|
||||
}
|
||||
ecgdataDO updateObj = BeanUtils.toBean(updateReqVO, ecgdataDO.class);
|
||||
ecgdataMapper.updateById(updateObj);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user