修改子表def4只有第一条数据有值

This commit is contained in:
lihao 2025-11-05 08:43:37 +08:00
parent 91da40edf2
commit 8d34f95caa
1 changed files with 6 additions and 0 deletions

View File

@ -347,6 +347,12 @@ public class GatheringbillRestResource extends ArapBaseRestResource {
headvo.setLocal_money(money.multiply(headvo.getRate()).setScale(2, UFDouble.ROUND_HALF_UP));
AggGatheringBillVO bill = new AggGatheringBillVO();
bill.setParentVO(headvo);
for (int i = 0; i < itemvos.size(); i++) {
// 跳过第一个元素索引为0从第二个元素开始置空
if (i > 0) {
itemvos.get(i).setDef4(null);
}
}
bill.setChildrenVO((CircularlyAccessibleValueObject[]) itemvos.toArray(new GatheringBillItemVO[0]));
try {
Map<String, String> returnMap = ((IGatheringbillOpenService) NCLocator.getInstance()