Преглед изворни кода

报销编号查询为空时,新增异常处理

anderx пре 2 година
родитељ
комит
1ab51c78b7

+ 3 - 0
src/main/java/com/goafanti/expenseAccount/service/impl/ExpenseAccountServiceImpl.java

@@ -705,6 +705,9 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
     @Override
     public Object selectByCheckNo(String checkNo) {
         OutExpenseAccount useEa = expenseAccountMapper.selectByCheckNo(checkNo);
+        if (useEa==null){
+            throw  new BusinessException("报销编号不存在,请客对后再查询。");
+        }
         if (useEa.getProcessStatus()<3){
             throw  new BusinessException("报销单财务未审核,不可以根据编号查看打印。");
         }

+ 0 - 1
src/main/java/com/goafanti/organization/service/impl/OrganizationServiceImpl.java

@@ -67,7 +67,6 @@ public class OrganizationServiceImpl extends BaseMybatisDao<DepartmentMapper> im
 			hideSign=null;
 		}
 		List<DepOut> depList=departmentMapper.selectSuperId(hideSign,null,null);
-
 		return listSort(depList);
 	}