zouxuan 3 years ago
parent
commit
5197cb9061

+ 3 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/FinancialExpenditureServiceImpl.java

@@ -253,7 +253,7 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
                         continue;
                     }
                     List<HashMap> hashMaps = JSONObject.parseArray(formData.get(submitForm).toString(), HashMap.class);
-                    for (HashMap hashMap : hashMaps) {
+                    nullUser: for (HashMap hashMap : hashMaps) {
                         FinancialExpenditure financialExpenditure = new FinancialExpenditure();
                         financialExpenditure.setBatchNo(pWorkOrderInfo.getId().toString());
                         financialExpenditure.setFinancialProcessNo(pWorkOrderInfo.getId().toString());
@@ -306,6 +306,8 @@ public class FinancialExpenditureServiceImpl extends BaseServiceImpl<Long, Finan
                                             if(Objects.nonNull(o) && StringUtils.isNotEmpty(o.toString())){
                                                 financialExpenditure.setStudentId(Integer.parseInt(o.toString()));
                                                 continue;
+                                            }else {
+                                                continue nullUser;
                                             }
                                         }else if(name.contains("分部")){
                                             Object o = hashMap.get(inputDto.getModel());