优化代码
This commit is contained in:
@ -62,32 +62,43 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<el-dialog v-model="dialogOpen" width="700px" append-to-body :title="dialogTitle" :close-on-click-modal="false"
|
<el-dialog v-model="dialogOpen" width="800px" append-to-body :title="dialogTitle" :close-on-click-modal="false"
|
||||||
@close="cancel">
|
@close="cancel">
|
||||||
<el-alert v-if="isBalance" type="success" show-icon :closable="false"
|
<el-alert v-if="isBalance" type="success" show-icon :closable="false"
|
||||||
center
|
center
|
||||||
title="报表数据平衡!">
|
title="报表数据平衡!">
|
||||||
</el-alert>
|
</el-alert>
|
||||||
<el-alert v-if="!isBalance" type="warning" show-icon :closable="false"
|
<el-alert v-if="!isBalance" type="warning" show-icon :closable="false"
|
||||||
:title="balanceTitle">
|
:title="balanceTitle">
|
||||||
</el-alert>
|
</el-alert>
|
||||||
<div class="balance-check-content" v-if="!isBalance">
|
<div class="balance-check-content" v-if="!isBalance">
|
||||||
<div class="balance-calculation">
|
<div class="balance-calculation">
|
||||||
<div class="balance-item">
|
<div class="balance-item">
|
||||||
<p class="balance-amount" v-if="endingBalance !== 0.00">{{formatBalance(endingBalance)}}</p>
|
<p class="balance-amount" v-if="endingBalance !== 0.00">{{ formatBalance(endingBalance) }}</p>
|
||||||
<p class="balance-amount" v-else>0.00</p>
|
<p class="balance-amount" v-else>0.00</p>
|
||||||
<p class="balance-label">期末现金及现金等价物余额(38行)</p>
|
<p class="balance-label">期末现金及现金等价物余额(38行)</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="operator">−</div>
|
<div class="operator">−</div>
|
||||||
<div class="balance-item">
|
<div class="balance-item" style="width: 40%">
|
||||||
<p class="balance-amount" v-if="startingBalance !== 0.00">{{formatBalance(startingBalance)}}</p>
|
<p class="balance-amount" v-if="startingBalance !== 0.00">{{ formatBalance(startingBalance) }}</p>
|
||||||
<p class="balance-amount" v-else>0.00</p>
|
<p class="balance-amount" v-else>0.00</p>
|
||||||
<p class="balance-label">科目初始余额</p>
|
<p class="balance-label">科目初始余额</p>
|
||||||
|
<!-- 分割线 -->
|
||||||
|
<hr class="balance-divider"/>
|
||||||
|
<!-- 明细列表 -->
|
||||||
|
<div
|
||||||
|
class="balance-detail"
|
||||||
|
v-for="(item, index) in bookInitBalances"
|
||||||
|
:key="index"
|
||||||
|
>
|
||||||
|
<span class="balance-detail-left">·{{ item.code }}{{ item.name }}</span>
|
||||||
|
<span class="balance-detail-right">{{ formatBalance(item.balance)}}</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="operator">=</div>
|
<div class="operator">=</div>
|
||||||
|
|
||||||
<div class="balance-item">
|
<div class="balance-item">
|
||||||
<p class="balance-amount" v-if="difference !== 0.00">{{formatBalance(difference)}}</p>
|
<p class="balance-amount" v-if="difference !== 0.00">{{ formatBalance(difference) }}</p>
|
||||||
<p class="balance-amount" v-else>0.00</p>
|
<p class="balance-amount" v-else>0.00</p>
|
||||||
<p class="balance-label">差额</p>
|
<p class="balance-label">差额</p>
|
||||||
</div>
|
</div>
|
||||||
@ -114,12 +125,11 @@ import {ElForm} from "element-plus";
|
|||||||
const {t} = useI18n()
|
const {t} = useI18n()
|
||||||
const {proxy} = getCurrentInstance()!;
|
const {proxy} = getCurrentInstance()!;
|
||||||
const dataList: any = ref<any>([]);
|
const dataList: any = ref<any>([]);
|
||||||
|
const bookInitBalances: any = ref<any>([]);
|
||||||
const loading: any = ref(false);
|
const loading: any = ref(false);
|
||||||
const data = reactive({
|
const data = reactive({
|
||||||
queryParams: {},
|
queryParams: {},
|
||||||
form: {
|
form: {}
|
||||||
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
const {queryParams, form} = toRefs(data);
|
const {queryParams, form} = toRefs(data);
|
||||||
const inputRef = ref<any>(null);
|
const inputRef = ref<any>(null);
|
||||||
@ -154,26 +164,26 @@ const manualInputRows = [2, 3, 4, 6, 7, 8, 9, 13, 14, 15, 16, 17, 19, 20, 21, 22
|
|||||||
// 按依赖关系排序的计算规则
|
// 按依赖关系排序的计算规则
|
||||||
const calculationRules = [
|
const calculationRules = [
|
||||||
// 一级计算 (直接依赖手动输入的行)
|
// 一级计算 (直接依赖手动输入的行)
|
||||||
{ targetIndex: 5, type: 'sum', sourceIndices: [2, 3, 4] }, // 经营活动现金流入小计
|
{targetIndex: 5, type: 'sum', sourceIndices: [2, 3, 4]}, // 经营活动现金流入小计
|
||||||
{ targetIndex: 10, type: 'sum', sourceIndices: [6, 7, 8, 9] }, // 经营活动现金流出小计
|
{targetIndex: 10, type: 'sum', sourceIndices: [6, 7, 8, 9]}, // 经营活动现金流出小计
|
||||||
{ targetIndex: 18, type: 'sum', sourceIndices: [13, 14, 15, 16, 17] }, // 投资活动现金流入小计
|
{targetIndex: 18, type: 'sum', sourceIndices: [13, 14, 15, 16, 17]}, // 投资活动现金流入小计
|
||||||
{ targetIndex: 23, type: 'sum', sourceIndices: [19, 20, 21, 22] }, // 投资活动现金流出小计
|
{targetIndex: 23, type: 'sum', sourceIndices: [19, 20, 21, 22]}, // 投资活动现金流出小计
|
||||||
{ targetIndex: 29, type: 'sum', sourceIndices: [26, 27, 28] }, // 筹资活动现金流入小计
|
{targetIndex: 29, type: 'sum', sourceIndices: [26, 27, 28]}, // 筹资活动现金流入小计
|
||||||
{ targetIndex: 33, type: 'sum', sourceIndices: [30, 31, 32] }, // 筹资活动现金流出小计
|
{targetIndex: 33, type: 'sum', sourceIndices: [30, 31, 32]}, // 筹资活动现金流出小计
|
||||||
|
|
||||||
// 二级计算 (依赖一级计算结果)
|
// 二级计算 (依赖一级计算结果)
|
||||||
{ targetIndex: 11, type: 'diff', minuend: 5, subtrahend: 10 }, // 经营活动产生的现金流量净额
|
{targetIndex: 11, type: 'diff', minuend: 5, subtrahend: 10}, // 经营活动产生的现金流量净额
|
||||||
{ targetIndex: 24, type: 'diff', minuend: 18, subtrahend: 23 }, // 投资活动产生的现金流量净额
|
{targetIndex: 24, type: 'diff', minuend: 18, subtrahend: 23}, // 投资活动产生的现金流量净额
|
||||||
{ targetIndex: 34, type: 'diff', minuend: 29, subtrahend: 33 }, // 筹资活动产生的现金流量净额
|
{targetIndex: 34, type: 'diff', minuend: 29, subtrahend: 33}, // 筹资活动产生的现金流量净额
|
||||||
|
|
||||||
// 三级计算 (依赖二级计算结果)
|
// 三级计算 (依赖二级计算结果)
|
||||||
{ targetIndex: 36, type: 'sum', sourceIndices: [11, 24, 34, 35] }, // 现金及现金等价物净增加额
|
{targetIndex: 36, type: 'sum', sourceIndices: [11, 24, 34, 35]}, // 现金及现金等价物净增加额
|
||||||
|
|
||||||
// 四级计算
|
// 四级计算
|
||||||
{ targetIndex: 38, type: 'sum', sourceIndices: [36, 37] }, // 期末现金及现金等价物余额 = 期初余额 + 净增加额
|
{targetIndex: 38, type: 'sum', sourceIndices: [36, 37]}, // 期末现金及现金等价物余额 = 期初余额 + 净增加额
|
||||||
|
|
||||||
// 现金及现金等价物净增加额计算
|
// 现金及现金等价物净增加额计算
|
||||||
{ targetIndex: 67, type: 'complexDiff', sourceIndices: [63, 64, 65, 66] }, // 现金及现金等价物净增加额 = 现金的期末余额 - 减:现金的期初余额 + 加:现金等价物的期末余额 - 减:现金等价物的期初余额
|
{targetIndex: 67, type: 'complexDiff', sourceIndices: [63, 64, 65, 66]}, // 现金及现金等价物净增加额 = 现金的期末余额 - 减:现金的期初余额 + 加:现金等价物的期末余额 - 减:现金等价物的期初余额
|
||||||
|
|
||||||
// 新增:第二种方法计算经营活动现金流量净额,除了"其他"项
|
// 新增:第二种方法计算经营活动现金流量净额,除了"其他"项
|
||||||
{
|
{
|
||||||
@ -338,7 +348,7 @@ watch(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{deep: true}
|
||||||
);
|
);
|
||||||
|
|
||||||
// 行类名方法
|
// 行类名方法
|
||||||
@ -352,12 +362,14 @@ const tableRowClassName = ({row, rowIndex}: { row: TableItem; rowIndex: number }
|
|||||||
function getList() {
|
function getList() {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
fetchPage(queryParams.value).then((response: any) => {
|
fetchPage(queryParams.value).then((response: any) => {
|
||||||
dataList.value = response.data.map((item: any) => ({
|
dataList.value = response.data.configCashFlowBalances.map((item: any) => ({
|
||||||
...item,
|
...item,
|
||||||
editing: false,
|
editing: false,
|
||||||
inputBalance: item.balance
|
inputBalance: item.balance
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
bookInitBalances.value = response.data.bookInitBalances;
|
||||||
|
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
// 在数据加载完成后执行一次计算
|
// 在数据加载完成后执行一次计算
|
||||||
calculateAllValues();
|
calculateAllValues();
|
||||||
@ -592,7 +604,7 @@ getList();
|
|||||||
|
|
||||||
.balance-calculation {
|
.balance-calculation {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: space-around;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
margin: 30px 0;
|
margin: 30px 0;
|
||||||
gap: 20px;
|
gap: 20px;
|
||||||
@ -623,4 +635,27 @@ getList();
|
|||||||
color: #909399;
|
color: #909399;
|
||||||
margin-top: 4px; /* 调整操作符垂直对齐位置 */
|
margin-top: 4px; /* 调整操作符垂直对齐位置 */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.balance-divider {
|
||||||
|
margin: 10px auto;
|
||||||
|
border: none;
|
||||||
|
border-top: 1px solid #eee;
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.balance-detail {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
font-size: 12px;
|
||||||
|
color: #666;
|
||||||
|
padding: 2px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.balance-detail-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.balance-detail-right {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -0,0 +1,24 @@
|
|||||||
|
package com.jinbooks.entity.vo;
|
||||||
|
|
||||||
|
import com.jinbooks.entity.base.BookInitBalance;
|
||||||
|
import com.jinbooks.entity.config.ConfigCashFlowBalance;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @description:
|
||||||
|
* @author: orangeBabu
|
||||||
|
* @time: 2025/6/3 16:37
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class CashFlowSubjectBalanceVo {
|
||||||
|
List<ConfigCashFlowBalance> configCashFlowBalances;
|
||||||
|
|
||||||
|
List<BookInitBalance> bookInitBalances;
|
||||||
|
}
|
||||||
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package com.jinbooks.persistence.service;
|
package com.jinbooks.persistence.service;
|
||||||
|
|
||||||
@ -24,13 +24,15 @@ import com.jinbooks.entity.book.dto.BookChangeDto;
|
|||||||
import com.jinbooks.entity.config.ConfigCashFlowBalance;
|
import com.jinbooks.entity.config.ConfigCashFlowBalance;
|
||||||
import com.jinbooks.entity.config.dto.ConfigCashFlowChangeDto;
|
import com.jinbooks.entity.config.dto.ConfigCashFlowChangeDto;
|
||||||
import com.jinbooks.entity.config.dto.ConfigCashFlowPageDto;
|
import com.jinbooks.entity.config.dto.ConfigCashFlowPageDto;
|
||||||
|
import com.jinbooks.entity.vo.CashFlowSubjectBalanceVo;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author 24096
|
* @author 24096
|
||||||
*/
|
*/
|
||||||
public interface ConfigCashFlowBalanceService extends IService<ConfigCashFlowBalance> {
|
public interface ConfigCashFlowBalanceService extends IService<ConfigCashFlowBalance> {
|
||||||
Message<List<ConfigCashFlowBalance>> pageList(ConfigCashFlowPageDto dto);
|
Message<CashFlowSubjectBalanceVo> pageList(ConfigCashFlowPageDto dto);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Description: 获取现金流量选择项
|
* @Description: 获取现金流量选择项
|
||||||
@ -42,8 +44,8 @@ public interface ConfigCashFlowBalanceService extends IService<ConfigCashFlowBal
|
|||||||
Message<List<ConfigCashFlowBalance>> getSelectItem(Integer cashFlowItemType);
|
Message<List<ConfigCashFlowBalance>> getSelectItem(Integer cashFlowItemType);
|
||||||
|
|
||||||
Message<String> save(ConfigCashFlowChangeDto dto);
|
Message<String> save(ConfigCashFlowChangeDto dto);
|
||||||
|
|
||||||
boolean deleteByBookIds(List<String> bookIds);
|
boolean deleteByBookIds(List<String> bookIds);
|
||||||
|
|
||||||
boolean configCashFlowBalance(BookChangeDto dto);
|
boolean configCashFlowBalance(BookChangeDto dto);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package com.jinbooks.persistence.service.impl;
|
package com.jinbooks.persistence.service.impl;
|
||||||
|
|
||||||
@ -27,6 +27,7 @@ import com.jinbooks.entity.book.dto.BookChangeDto;
|
|||||||
import com.jinbooks.entity.config.ConfigCashFlowBalance;
|
import com.jinbooks.entity.config.ConfigCashFlowBalance;
|
||||||
import com.jinbooks.entity.config.dto.ConfigCashFlowChangeDto;
|
import com.jinbooks.entity.config.dto.ConfigCashFlowChangeDto;
|
||||||
import com.jinbooks.entity.config.dto.ConfigCashFlowPageDto;
|
import com.jinbooks.entity.config.dto.ConfigCashFlowPageDto;
|
||||||
|
import com.jinbooks.entity.vo.CashFlowSubjectBalanceVo;
|
||||||
import com.jinbooks.exception.BusinessException;
|
import com.jinbooks.exception.BusinessException;
|
||||||
import com.jinbooks.persistence.mapper.BookInitBalanceMapper;
|
import com.jinbooks.persistence.mapper.BookInitBalanceMapper;
|
||||||
import com.jinbooks.persistence.mapper.ConfigCashFlowBalanceMapper;
|
import com.jinbooks.persistence.mapper.ConfigCashFlowBalanceMapper;
|
||||||
@ -56,12 +57,13 @@ public class ConfigCashFlowBalanceServiceImpl extends ServiceImpl<ConfigCashFlow
|
|||||||
private final BookInitBalanceMapper bookInitBalanceMapper;
|
private final BookInitBalanceMapper bookInitBalanceMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Message<List<ConfigCashFlowBalance>> pageList(ConfigCashFlowPageDto dto) {
|
public Message<CashFlowSubjectBalanceVo> pageList(ConfigCashFlowPageDto dto) {
|
||||||
LambdaQueryWrapper<ConfigCashFlowBalance> wrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<ConfigCashFlowBalance> wrapper = new LambdaQueryWrapper<>();
|
||||||
wrapper.eq(ConfigCashFlowBalance::getBookId, dto.getBookId())
|
wrapper.eq(ConfigCashFlowBalance::getBookId, dto.getBookId())
|
||||||
.orderByAsc(ConfigCashFlowBalance::getSortIndex);
|
.orderByAsc(ConfigCashFlowBalance::getSortIndex);
|
||||||
List<ConfigCashFlowBalance> list = super.list(wrapper);
|
List<ConfigCashFlowBalance> list = super.list(wrapper);
|
||||||
|
|
||||||
|
//获取科目初始余额
|
||||||
LambdaQueryWrapper<BookInitBalance> wrapperBookInit = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<BookInitBalance> wrapperBookInit = new LambdaQueryWrapper<>();
|
||||||
wrapperBookInit.eq(BookInitBalance::getBookId, dto.getBookId());
|
wrapperBookInit.eq(BookInitBalance::getBookId, dto.getBookId());
|
||||||
wrapperBookInit.eq(BookInitBalance::getLevel, 1);
|
wrapperBookInit.eq(BookInitBalance::getLevel, 1);
|
||||||
@ -115,9 +117,8 @@ public class ConfigCashFlowBalanceServiceImpl extends ServiceImpl<ConfigCashFlow
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// super.updateBatchById(list);
|
CashFlowSubjectBalanceVo cashFlowSubjectBalanceVo = new CashFlowSubjectBalanceVo(list, bookInitBalances);
|
||||||
|
return Message.ok(cashFlowSubjectBalanceVo);
|
||||||
return Message.ok(list);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package com.jinbooks.persistence.service.impl;
|
package com.jinbooks.persistence.service.impl;
|
||||||
|
|
||||||
@ -457,7 +457,7 @@ public class StatementReportServiceImpl implements StatementReportService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//设置期初余额
|
//设置期初余额
|
||||||
//获取初始余额
|
//获取科目初始余额
|
||||||
LambdaQueryWrapper<BookInitBalance> wrapperBookInit = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<BookInitBalance> wrapperBookInit = new LambdaQueryWrapper<>();
|
||||||
wrapperBookInit.eq(BookInitBalance::getBookId, bookId);
|
wrapperBookInit.eq(BookInitBalance::getBookId, bookId);
|
||||||
wrapperBookInit.eq(BookInitBalance::getLevel, 1);
|
wrapperBookInit.eq(BookInitBalance::getLevel, 1);
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
* Copyright [2025] [JinBooks of copyright http://www.jinbooks.com]
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -14,12 +14,13 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package com.jinbooks.web.config.contorller;
|
package com.jinbooks.web.config.contorller;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.jinbooks.entity.vo.CashFlowSubjectBalanceVo;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springdoc.core.annotations.ParameterObject;
|
import org.springdoc.core.annotations.ParameterObject;
|
||||||
@ -57,8 +58,8 @@ public class ConfigCashFlowBalanceController {
|
|||||||
private final ConfigCashFlowBalanceService configCashFlowService;
|
private final ConfigCashFlowBalanceService configCashFlowService;
|
||||||
|
|
||||||
@GetMapping(value = {"/fetch"})
|
@GetMapping(value = {"/fetch"})
|
||||||
public Message<List<ConfigCashFlowBalance>> fetch(@ParameterObject ConfigCashFlowPageDto dto,
|
public Message<CashFlowSubjectBalanceVo> fetch(@ParameterObject ConfigCashFlowPageDto dto,
|
||||||
@CurrentUser UserInfo currentUser) {
|
@CurrentUser UserInfo currentUser) {
|
||||||
logger.debug("fetch {}", dto);
|
logger.debug("fetch {}", dto);
|
||||||
dto.setBookId(currentUser.getBookId());
|
dto.setBookId(currentUser.getBookId());
|
||||||
return configCashFlowService.pageList(dto);
|
return configCashFlowService.pageList(dto);
|
||||||
|
|||||||
Reference in New Issue
Block a user