Переглянути джерело

1 修改收款认领导入逻辑,明细表添加认领人

11816 3 тижднів тому
джерело
коміт
00d0098490

+ 6
- 1
src/main/java/com/example/backend/pAndSExe/service/impl/ShoukuanrenlingSettleServiceImpl.java Переглянути файл

@@ -77,6 +77,7 @@ public class ShoukuanrenlingSettleServiceImpl implements ShoukuanrenlingSettleSe
77 77
                 breceiptctrl.setFmodalid(19L);
78 78
                 breceiptctrl.setSoAdd(inf.getSono());
79 79
 
80
+
80 81
                 String s = mdkcctrlMapper.selectCreateByName(inf.getCreateBy());
81 82
                 breceiptctrl.setCreateByName(s);
82 83
                 breceiptctrl.setCreateTime(new Date());
@@ -105,6 +106,10 @@ public class ShoukuanrenlingSettleServiceImpl implements ShoukuanrenlingSettleSe
105 106
                 Long dtlId = IdWorker.getId(); // 19位雪花ID(明细表)
106 107
                 breceiptdtl.setId(dtlId);
107 108
                 breceiptdtl.setRid(breceiptctrlId); // 关联主表ID
109
+                breceiptdtl.setCreateBy(inf.getCreateBy());
110
+                breceiptdtl.setCreateByName(s);
111
+                breceiptdtl.setClaimerName(s);
112
+                breceiptdtl.setClaimerCode(inf.getCreateBy());
108 113
                 // 业务字段映射(从中间表获取)
109 114
                 //breceiptdtl.setClaimedAmt(inf.getClaimedAmt()); // 认领金额
110 115
                 breceiptdtl.setInvNo(inf.getInvNo()); // 发票号(需确保中间表InfShoukuanrenling有该字段)
@@ -145,4 +150,4 @@ public class ShoukuanrenlingSettleServiceImpl implements ShoukuanrenlingSettleSe
145 150
         return String.format("收款人认领中间表数据导入业务表完成:总条数=%d,成功=%d,失败=%d",
146 151
                 infList.size(), successCount, failCount);
147 152
     }
148
-}
153
+}

Завантаження…
Відмінити
Зберегти