|
@@ -197,10 +197,13 @@ public class ReimbursementInfoService {
|
|
|
infoMapper.insert(info);
|
|
|
// 保存项目详情列表信息
|
|
|
if (CollectionUtils.isNotEmpty(dto.getDetailInfos())) {
|
|
|
+ int i = 0;
|
|
|
for (ReimbursementDetailInfo detailInfo : dto.getDetailInfos()) {
|
|
|
// 保存基础表信息主键值
|
|
|
detailInfo.setInfoId(id);
|
|
|
+ detailInfo.setSort(String.valueOf(i));
|
|
|
detailInfoMapper.insert(detailInfo);
|
|
|
+ i++;
|
|
|
}
|
|
|
}
|
|
|
// 保存合同详情列表信息
|
|
@@ -213,10 +216,13 @@ public class ReimbursementInfoService {
|
|
|
}
|
|
|
// 保存其他报销详情列表信息
|
|
|
if (CollectionUtils.isNotEmpty(dto.getDetailInfoOthers())) {
|
|
|
+ int i = 0;
|
|
|
for (ReimbursementDetailInfoOther detailInfo : dto.getDetailInfoOthers()) {
|
|
|
// 保存基础表信息主键值
|
|
|
detailInfo.setInfoId(id);
|
|
|
+ detailInfo.setSort(String.valueOf(i));
|
|
|
reimbursementDetailInfoOtherMapper.insert(detailInfo);
|
|
|
+ i++;
|
|
|
}
|
|
|
}
|
|
|
// 保存采购报销详情列表信息
|
|
@@ -277,11 +283,14 @@ public class ReimbursementInfoService {
|
|
|
|
|
|
// 保存项目详情列表信息
|
|
|
if (CollectionUtils.isNotEmpty(dto.getDetailInfos())) {
|
|
|
+ int i = 0;
|
|
|
for (ReimbursementDetailInfo detailInfo : dto.getDetailInfos()) {
|
|
|
// 保存基础表信息主键值
|
|
|
detailInfo.setInfoId(dto.getId());
|
|
|
detailInfo.setId("");
|
|
|
+ detailInfo.setSort(String.valueOf(i));
|
|
|
detailInfoMapper.insert(detailInfo);
|
|
|
+ i++;
|
|
|
}
|
|
|
}
|
|
|
// 保存合同详情列表信息
|
|
@@ -295,11 +304,14 @@ public class ReimbursementInfoService {
|
|
|
}
|
|
|
// 保存其他报销详情列表信息
|
|
|
if (CollectionUtils.isNotEmpty(dto.getDetailInfoOthers())) {
|
|
|
+ int i = 0;
|
|
|
for (ReimbursementDetailInfoOther detailInfo : dto.getDetailInfoOthers()) {
|
|
|
// 保存基础表信息主键值
|
|
|
detailInfo.setInfoId(dto.getId());
|
|
|
detailInfo.setId("");
|
|
|
+ detailInfo.setSort(String.valueOf(i));
|
|
|
reimbursementDetailInfoOtherMapper.insert(detailInfo);
|
|
|
+ i++;
|
|
|
}
|
|
|
}
|
|
|
// 保存采购报销详情列表信息
|