|
|
@@ -243,33 +243,29 @@ public class InvAccountServiceImpl extends ServiceImpl<InvAccountMapper, InvAcco
|
|
|
List<AccountExcel> accountExcels = new ArrayList<>();
|
|
|
|
|
|
collect1.forEach(invAccount -> {
|
|
|
- if (invAccount.getInvAccountCardList() != null){
|
|
|
- invAccount.getInvAccountCardList().forEach(invAccountCard -> {
|
|
|
- AccountExcel accountExcel = new AccountExcel();
|
|
|
- accountExcel.setAccountId(invAccount.getAccountId());
|
|
|
- accountExcel.setAccountName(invAccount.getAccountName());
|
|
|
- accountExcel.setBankName(invAccountCard.getBankName());
|
|
|
- if (invAccount.getBusinessQuality() != null){
|
|
|
- if (invAccount.getBusinessQuality().equals("3")){
|
|
|
- accountExcel.setBusinessQuality("一般纳税");
|
|
|
- }else if (invAccount.getBusinessQuality().equals("1")){
|
|
|
- accountExcel.setBusinessQuality("小规模");
|
|
|
- }else if (invAccount.getBusinessQuality().equals("2")){
|
|
|
- accountExcel.setBusinessQuality("小规模");
|
|
|
- }
|
|
|
- }
|
|
|
- accountExcel.setOwned(invAccount.getOwned());
|
|
|
- if (invAccount.getEstablishTime() != null){
|
|
|
- LocalDateTime establishTime = LocalDateTime.fromDateFields(invAccount.getEstablishTime());
|
|
|
- accountExcel.setEstablishTime(establishTime.toString().substring(0,establishTime.toString().indexOf("T")));
|
|
|
+ if (invAccount.getInvAccountCardList() != null) {
|
|
|
+ AccountExcel accountExcel = new AccountExcel();
|
|
|
+ accountExcel.setAccountId(invAccount.getAccountId());
|
|
|
+ accountExcel.setAccountName(invAccount.getAccountName());
|
|
|
+ if (invAccount.getBusinessQuality() != null) {
|
|
|
+ if (invAccount.getBusinessQuality().equals("3")) {
|
|
|
+ accountExcel.setBusinessQuality("一般纳税");
|
|
|
+ } else if (invAccount.getBusinessQuality().equals("1")) {
|
|
|
+ accountExcel.setBusinessQuality("小规模");
|
|
|
+ } else if (invAccount.getBusinessQuality().equals("2")) {
|
|
|
+ accountExcel.setBusinessQuality("小规模");
|
|
|
}
|
|
|
- accountExcel.setSumInvoicingAmount(invAccount.getSumInvoicingAmount());
|
|
|
- accountExcel.setQuarterAmountExcess(invAccount.getQuarterAmountExcess());
|
|
|
- accountExcel.setInvoicingAmountExcess(invAccount.getInvoicingAmountExcess());
|
|
|
- accountExcel.setBalance(invAccountCard.getBalance());
|
|
|
- accountExcel.setEstimate(invAccount.getTentativeEstimates());
|
|
|
- accountExcels.add(accountExcel);
|
|
|
- });
|
|
|
+ }
|
|
|
+ accountExcel.setOwned(invAccount.getOwned());
|
|
|
+ if (invAccount.getEstablishTime() != null) {
|
|
|
+ LocalDateTime establishTime = LocalDateTime.fromDateFields(invAccount.getEstablishTime());
|
|
|
+ accountExcel.setEstablishTime(establishTime.toString().substring(0, establishTime.toString().indexOf("T")));
|
|
|
+ }
|
|
|
+ accountExcel.setSumInvoicingAmount(invAccount.getSumInvoicingAmount());
|
|
|
+ accountExcel.setQuarterAmountExcess(invAccount.getQuarterAmountExcess());
|
|
|
+ accountExcel.setInvoicingAmountExcess(invAccount.getInvoicingAmountExcess());
|
|
|
+ accountExcel.setEstimate(invAccount.getTentativeEstimates());
|
|
|
+ accountExcels.add(accountExcel);
|
|
|
}
|
|
|
});
|
|
|
|