提交 168f47d5 authored 作者: zjm's avatar zjm

修改上联bug

上级 fbdfa5c4
...@@ -60,11 +60,17 @@ public class BlockServiceImpl implements BlockService { ...@@ -60,11 +60,17 @@ public class BlockServiceImpl implements BlockService {
BcText.class); BcText.class);
if (bcText.getCode() == 0) { if (bcText.getCode() == 0) {
blockDataService.saveBlockData(BlockData.builder() BlockData billTypeAndBillId = blockDataService.findBillTypeAndBillId(billType, billId);
.billId(billId) if (billTypeAndBillId!=null){
.unitName(unitName) billTypeAndBillId.setRecordID(bcText.getData().getRecordID());
.billType(billType) blockDataService.saveBlockData(billTypeAndBillId);
.recordID(bcText.getData().getRecordID()).build()); }else {
blockDataService.saveBlockData(BlockData.builder()
.billId(billId)
.unitName(unitName)
.billType(billType)
.recordID(bcText.getData().getRecordID()).build());
}
}else { }else {
throw new ApiException(bcText.getInfo()); throw new ApiException(bcText.getInfo());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论