Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-api-boot-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-api-boot-master
Commits
020eaa82
Commit
020eaa82
authored
Jan 08, 2025
by
zhangfeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(wealth): 费用明细查询
parent
44d7f643
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
update_old_data.sql
sql/v2.2财务/update_old_data.sql
+1
-1
ReceiptItemServiceImpl.java
...le/wealth/service/receiptItem/ReceiptItemServiceImpl.java
+1
-1
ReceivableServiceImpl.java
...dule/wealth/service/receivable/ReceivableServiceImpl.java
+16
-4
No files found.
sql/v2.2财务/update_old_data.sql
View file @
020eaa82
...
@@ -31,7 +31,7 @@ WHERE approval_time IS NULL AND `status` = 1;
...
@@ -31,7 +31,7 @@ WHERE approval_time IS NULL AND `status` = 1;
#
刷新银行明细审核核销币种
#
刷新银行明细审核核销币种
UPDATE
ecw_receipt_item
SET
write_off_currency_id
=
1
WHERE
write_off_currency_id
IS
NULL
;
UPDATE
ecw_receipt_item
SET
write_off_currency_id
=
1
WHERE
write_off_currency_id
IS
NULL
;
UPDATE
ecw_receipt
SET
generate_path
=
0
;
UPDATE
ecw_receipt
SET
generate_path
=
0
WHERE
generate_path
IS
NULL
;
#
刷新应收款优惠金额
#
刷新应收款优惠金额
UPDATE
ecw_receivable
er
UPDATE
ecw_receivable
er
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receiptItem/ReceiptItemServiceImpl.java
View file @
020eaa82
...
@@ -737,7 +737,7 @@ public class ReceiptItemServiceImpl extends AbstractService<ReceiptItemMapper, R
...
@@ -737,7 +737,7 @@ public class ReceiptItemServiceImpl extends AbstractService<ReceiptItemMapper, R
ReceiptItemBackVO
itemBackVO
=
ReceiptItemConvert
.
INSTANCE
.
convert
(
receiptItemDO
);
ReceiptItemBackVO
itemBackVO
=
ReceiptItemConvert
.
INSTANCE
.
convert
(
receiptItemDO
);
ReceiptDO
receiptDO
=
receiptMapper
.
selectById
(
receiptItemDO
.
getReceiptId
());
ReceiptDO
receiptDO
=
receiptMapper
.
selectById
(
receiptItemDO
.
getReceiptId
());
itemBackVO
.
setReceiptNo
(
receiptDO
.
getReceiptNo
());
itemBackVO
.
setReceiptNo
(
receiptDO
.
getReceiptNo
());
List
<
ReceivableInItemVO
>
listForCreateReceiptItem
=
receivableService
.
get
ListForCreateReceiptItem
(
receiptItemDO
.
getReceip
tId
());
List
<
ReceivableInItemVO
>
listForCreateReceiptItem
=
receivableService
.
get
ReceivableByReceiptItem
(
receiptItemDO
.
ge
tId
());
itemBackVO
.
setReceivableList
(
listForCreateReceiptItem
);
itemBackVO
.
setReceivableList
(
listForCreateReceiptItem
);
return
itemBackVO
;
return
itemBackVO
;
}
}
...
...
yudao-module-wealth/yudao-module-wealth-core/src/main/java/cn/iocoder/yudao/module/wealth/service/receivable/ReceivableServiceImpl.java
View file @
020eaa82
...
@@ -33,7 +33,6 @@ import cn.iocoder.yudao.module.wealth.dal.mysql.receivable.ReceivableMapper;
...
@@ -33,7 +33,6 @@ import cn.iocoder.yudao.module.wealth.dal.mysql.receivable.ReceivableMapper;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receivable.ReceivableWriteOffRecordMapper
;
import
cn.iocoder.yudao.module.wealth.dal.mysql.receivable.ReceivableWriteOffRecordMapper
;
import
cn.iocoder.yudao.module.wealth.service.receipt.ReceiptService
;
import
cn.iocoder.yudao.module.wealth.service.receipt.ReceiptService
;
import
cn.iocoder.yudao.module.wealth.service.receivableDiscount.ReceivableDiscountService
;
import
cn.iocoder.yudao.module.wealth.service.receivableDiscount.ReceivableDiscountService
;
import
cn.iocoder.yudao.module.wealth.vo.receiptItem.ReceiptItemBackVO
;
import
cn.iocoder.yudao.module.wealth.vo.receivable.*
;
import
cn.iocoder.yudao.module.wealth.vo.receivable.*
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
...
@@ -50,6 +49,7 @@ import java.math.RoundingMode;
...
@@ -50,6 +49,7 @@ import java.math.RoundingMode;
import
java.util.*
;
import
java.util.*
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.CompletableFuture
;
import
java.util.concurrent.ExecutionException
;
import
java.util.concurrent.ExecutionException
;
import
java.util.stream.Collectors
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
framework
.
common
.
exception
.
util
.
ServiceExceptionUtil
.
exception
;
import
static
cn
.
iocoder
.
yudao
.
module
.
wealth
.
enums
.
ErrorCodeConstants
.*;
import
static
cn
.
iocoder
.
yudao
.
module
.
wealth
.
enums
.
ErrorCodeConstants
.*;
...
@@ -264,7 +264,7 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
...
@@ -264,7 +264,7 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
public
List
<
WealthMoneyAmountVO
>
receivablePageAmount
(
ReceivableQueryVO
query
)
{
public
List
<
WealthMoneyAmountVO
>
receivablePageAmount
(
ReceivableQueryVO
query
)
{
List
<
WealthMoneyAmountVO
>
voList
=
receivableMapper
.
receivablePageAmount
(
query
);
List
<
WealthMoneyAmountVO
>
voList
=
receivableMapper
.
receivablePageAmount
(
query
);
Map
<
Integer
,
CurrencyRespDTO
>
allCurrency
=
currencyApi
.
getAllCurrency
();
Map
<
Integer
,
CurrencyRespDTO
>
allCurrency
=
currencyApi
.
getAllCurrency
();
voList
.
forEach
(
vo
->
{
voList
.
stream
().
filter
(
vo
->
allCurrency
.
containsKey
(
vo
.
getCurrencyId
())).
forEach
(
vo
->
{
vo
.
setCurrencySymbol
(
allCurrency
.
get
(
vo
.
getCurrencyId
()).
getFuhao
());
vo
.
setCurrencySymbol
(
allCurrency
.
get
(
vo
.
getCurrencyId
()).
getFuhao
());
vo
.
setCurrencyName
(
allCurrency
.
get
(
vo
.
getCurrencyId
()).
getTitleZh
());
vo
.
setCurrencyName
(
allCurrency
.
get
(
vo
.
getCurrencyId
()).
getTitleZh
());
});
});
...
@@ -481,8 +481,10 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
...
@@ -481,8 +481,10 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
List
<
WealthMoneyAmountVO
>
totalStatistics
=
totalStatisticsFuture
.
get
();
List
<
WealthMoneyAmountVO
>
totalStatistics
=
totalStatisticsFuture
.
get
();
if
(
CollectionUtil
.
isNotEmpty
(
searchStatistics
))
{
if
(
CollectionUtil
.
isNotEmpty
(
searchStatistics
))
{
searchStatistics
=
searchStatistics
.
stream
().
filter
(
vo
->
allCurrency
.
containsKey
(
vo
.
getCurrencyId
())).
collect
(
Collectors
.
toList
());
calculateStatisticalAmount
(
allCurrency
,
searchStatistics
);
calculateStatisticalAmount
(
allCurrency
,
searchStatistics
);
}
}
totalStatistics
=
totalStatistics
.
stream
().
filter
(
vo
->
allCurrency
.
containsKey
(
vo
.
getCurrencyId
())).
collect
(
Collectors
.
toList
());
calculateStatisticalAmount
(
allCurrency
,
totalStatistics
);
calculateStatisticalAmount
(
allCurrency
,
totalStatistics
);
CostDetailBackVO
.
CostDetailBackVOBuilder
voBuilder
=
CostDetailBackVO
.
builder
()
CostDetailBackVO
.
CostDetailBackVOBuilder
voBuilder
=
CostDetailBackVO
.
builder
()
...
@@ -502,7 +504,11 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
...
@@ -502,7 +504,11 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
vo
.
setWriteOffAmount
(
BigDecimal
.
ZERO
);
vo
.
setWriteOffAmount
(
BigDecimal
.
ZERO
);
}
}
vo
.
setNotWriteOffAmount
(
vo
.
getReceivableTotalAmount
().
subtract
(
vo
.
getWriteOffAmount
()));
vo
.
setNotWriteOffAmount
(
vo
.
getReceivableTotalAmount
().
subtract
(
vo
.
getWriteOffAmount
()));
vo
.
setWriteOffProportion
(
vo
.
getWriteOffAmount
().
divide
(
vo
.
getReceivableTotalAmount
(),
4
,
BigDecimal
.
ROUND_HALF_UP
).
toString
()
+
"%"
);
if
(
vo
.
getWriteOffAmount
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
||
vo
.
getReceivableTotalAmount
().
compareTo
(
BigDecimal
.
ZERO
)
<=
0
)
{
vo
.
setWriteOffProportion
(
"0.00%"
);
}
else
{
vo
.
setWriteOffProportion
(
vo
.
getWriteOffAmount
().
divide
(
vo
.
getReceivableTotalAmount
(),
2
,
RoundingMode
.
HALF_UP
).
multiply
(
new
BigDecimal
(
"100"
))
+
"%"
);
}
RegionDTO
regionCity
=
regionApi
.
getRegionById
(
vo
.
getDestinationCity
().
longValue
());
RegionDTO
regionCity
=
regionApi
.
getRegionById
(
vo
.
getDestinationCity
().
longValue
());
vo
.
setDestinationCityZh
(
regionCity
.
getTitleZh
());
vo
.
setDestinationCityZh
(
regionCity
.
getTitleZh
());
...
@@ -519,10 +525,16 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
...
@@ -519,10 +525,16 @@ public class ReceivableServiceImpl extends AbstractService<ReceivableMapper, Rec
.
pages
(
costDetailPage
.
getPages
())
.
pages
(
costDetailPage
.
getPages
())
.
build
();
.
build
();
}
}
return
voBuilder
.
list
(
Collections
.
EMPTY_LIST
)
.
total
(
costDetailPage
.
getTotal
())
.
rows
(
costDetailPage
.
getSize
())
.
page
(
costDetailPage
.
getCurrent
())
.
pages
(
costDetailPage
.
getPages
())
.
build
();
}
catch
(
InterruptedException
|
ExecutionException
e
)
{
}
catch
(
InterruptedException
|
ExecutionException
e
)
{
throw
new
RuntimeException
(
"查询异常"
);
throw
new
RuntimeException
(
"查询异常"
);
}
}
return
null
;
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment