提交 dc866e39 authored 作者: zjm's avatar zjm

合并分支 'master' 到 'dev'

Master 查看合并请求 !44
......@@ -58,7 +58,11 @@ public class HistoryPepairServiceImpl implements HistoryPepairService {
.stream()
.map(HistoryRepairBill::toDb)
.collect(Collectors.toList());
historyRepairBillDao.saveAll(historyRepairBills);
historyRepairBills.forEach(
historyRepairBill -> {
historyRepairBillDao.save(historyRepairBill);
}
);
} catch (IOException e) {
log.error("[toDb2] 找不到文件路径");
}
......
......@@ -33,7 +33,6 @@ import java.util.List;
@ApiModel("装备维修完成退回账单")
public class HistoryRepairBill {
@Id
@GeneratedValue
@ApiModelProperty(name = "主键id")
@JsonProperty("id")
private Integer id;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论