解决梅州标签问题

master
lzy 3 years ago
parent 96a70f7400
commit 7e4c46b5d4

@ -26,7 +26,7 @@ public class AfCollectTask implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty(value = "id 雪花算法") @ApiModelProperty(value = "id 雪花算法")
@TableId(value = "id", type = IdType.ID_WORKER_STR) @TableId(value = "id", type = IdType.ASSIGN_ID)
private Long id; private Long id;
@ApiModelProperty(value = "病案主键") @ApiModelProperty(value = "病案主键")

@ -21,5 +21,4 @@ public class ReportDownDto {
@ApiModelProperty(value = "分类id") @ApiModelProperty(value = "分类id")
private String assortid; private String assortid;
} }

@ -99,7 +99,12 @@ public class AfCollectTaskServiceImpl extends ServiceImpl<AfCollectTaskMapper, A
log.info("任务表操作出错"); log.info("任务表操作出错");
throw new RuntimeException("插入病案任务表数据出错"); throw new RuntimeException("插入病案任务表数据出错");
} }
scanfile.setTaskid(afCollectTask.getId()); if(afCollectTask.getId()!=null){
scanfile.setTaskid(afCollectTask.getId());
}else {
log.info("插入任务id为空");
throw new RuntimeException("插入任务id为空");
}
} }
reportDownDto.setScanfiles(scanfiles); reportDownDto.setScanfiles(scanfiles);
} }

Loading…
Cancel
Save