|
@@ -66,13 +66,15 @@ public class TBranchManageController extends BaseController {
|
|
tBranchManage.setMonthly(month + "");
|
|
tBranchManage.setMonthly(month + "");
|
|
List<TBranchManage> tBranchManages = tBranchManageService.selectTBranchManageList(tBranchManage);
|
|
List<TBranchManage> tBranchManages = tBranchManageService.selectTBranchManageList(tBranchManage);
|
|
|
|
|
|
- TFile tFile = new TFile();
|
|
|
|
- tFile.setTableName("branchManage");
|
|
|
|
- tFile.setTableId(tBranchManages.get(0).getManageId());
|
|
|
|
- tFiles = tFileService.selectTFileList(tFile);
|
|
|
|
|
|
+ if (tBranchManages.size() > 0) {
|
|
|
|
+ TFile tFile = new TFile();
|
|
|
|
+ tFile.setTableName("branchManage");
|
|
|
|
+ tFile.setTableId(tBranchManages.get(0).getManageId());
|
|
|
|
+ tFiles = tFileService.selectTFileList(tFile);
|
|
|
|
+ }
|
|
|
|
|
|
month -= 1;
|
|
month -= 1;
|
|
- } while (tFiles.size() == 0);
|
|
|
|
|
|
+ } while (tFiles == null || tFiles.size() == 0);
|
|
|
|
|
|
return AjaxResult.success(tFiles);
|
|
return AjaxResult.success(tFiles);
|
|
}
|
|
}
|