提交 4493f6fe authored 作者: 刘海泉's avatar 刘海泉

增加日志

上级 562f93cf
......@@ -47,6 +47,16 @@ public class OrderChildExceptionReportDealLog implements HasKey<Integer> {
@Schema(description="视频")
private String videoUrl;
@TableField("create_by")
@Schema(description="申诉人编码")
private Long createBy; //操作人编号
@TableField("create_name")
@Schema(description="申诉人")
private String createName; //操作人名称
@TableField("create_time")
@Schema(description="创建时间")
private LocalDateTime createTime;
......
......@@ -325,14 +325,19 @@ public class OrderChildExceptionReportServiceImpl implements OrderChildExceptio
OrderChildExceptionReport report = orderChildExceptionReportDao.getEntityByKey(id).orElseThrow(
ResultEnum.DATA_NOT_FIND);
OrderChildExceptionReportVO vo = orderChildExceptionReportStruct.convert(report);
vo.setVideoUrlList(JSON.parseArray(report.getVideoUrl(),String.class));
vo.setPictureUrlList(JSON.parseArray(report.getPictureUrl(),String.class));
Optional<OrderChildExceptionReportDealLog> limitOneByField = orderChildExceptionReportDealLogDao.getLimitOneByField(
OrderChildExceptionReportDealLog::getReportNo, report.getReportNo());
if(limitOneByField.isPresent()) {
OrderChildExceptionReportDealLog dealLog = limitOneByField.get();
vo.setVideoUrlList(JSON.parseArray(dealLog.getVideoUrl(),String.class));
vo.setPictureUrlList(JSON.parseArray(dealLog.getPictureUrl(),String.class));
vo.setAppealPictureUrlList(JSON.parseArray(dealLog.getVideoUrl(),String.class));
vo.setAppealVideoUrlList(JSON.parseArray(dealLog.getPictureUrl(),String.class));
}
//TODO 增加操作日志 所有地方增加操作日志保存
return vo;
}
......
......@@ -127,14 +127,35 @@ public class OrderChildExceptionReportVO {
private String createTime;
@Schema(description="图片")
@Schema(description="异常记录图片")
private List<String> pictureUrlList;
@Schema(description="视频")
@Schema(description="异常记录视频")
private List<String> videoUrlList;
@Schema(description="申诉时间")
private String appealTime;
@Schema(description="申诉人")
private String createName;
@Schema(description="申诉原因")
private String appealReason;
@Schema(description="申诉图片")
private List<String> appealPictureUrlList;
@Schema(description="申诉视频")
private List<String> appealVideoUrlList;
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论