Просмотр исходного кода

1 收款认领添加子收条号

wanyushuai 1 месяц назад
Родитель
Сommit
8c21b72b58

+ 5
- 3
src/main/java/com/example/backend/pAndSExe/service/impl/ShoukuanrenlingSettleServiceImpl.java Просмотреть файл

@@ -95,9 +95,11 @@ public class ShoukuanrenlingSettleServiceImpl implements ShoukuanrenlingSettleSe
95 95
                 breceiptctrl.setCpal(cpal);
96 96
                 breceiptctrl.setClaimerCd(inf.getCreateBy());
97 97
                 breceiptctrl.setClaimerNm(s);
98
-                if(inf.getStmtNo().length()==11){
99
-                    breceiptctrl.setFinRcptNo(inf.getStmtNo().substring(0,10));
100
-                }else breceiptctrl.setFinRcptNo(inf.getStmtNo());
98
+                if (inf.getStmtNo()!=null) {
99
+                    if (inf.getStmtNo().length() == 11) {
100
+                        breceiptctrl.setFinRcptNo(inf.getStmtNo().substring(0, 10));
101
+                    } else breceiptctrl.setFinRcptNo(inf.getStmtNo());
102
+                }
101 103
 
102 104
                 breceiptctrl.setClaimStatus("是");
103 105
 

Загрузка…
Отмена
Сохранить