Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
二
二医大银行收款回单
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JAVA
二医大银行收款回单
Merge requests
!469
Jiangxiaoming
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Jiangxiaoming
jiangxiaoming
into
dev
Overview
0
Commits
2
Pipelines
0
Changes
2
Merged
jiangxiaoming
requested to merge
jiangxiaoming
into
dev
8 months ago
Overview
0
Commits
2
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
dev
dev (base)
and
latest version
latest version
dca3b5d0
2 commits,
8 months ago
2 files
+
10
−
8
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
ServiceSite/src/main/java/com/seasky/ledgerincome/application/command/EntryCommandServiceImpl.java
+
6
−
4
Options
@@ -457,14 +457,16 @@ public class EntryCommandServiceImpl implements EntryCommandService {
throw
ExceptionUtil
.
getException
(
null
,
"已线下入账不允许入账:"
+
incomeAggregate
.
getIncomeId
());
}
EntryBillAggregate
entryBillAggregate
=
entryBillRepository
.
findByIncomeId
(
incomeId
);
if
(
entryBillAggregate
!=
null
&&
entryBillAggregate
.
getVoucherState
().
getValue
().
equals
(
VoucherStateEnum
.
已入账
.
getValue
())){
throw
new
RuntimeException
(
"已经入账的回单不允许再次入账"
);
}
// 查询凭证 是否有申请中的
VoucherAggregate
agg
=
voucherRepository
.
findByOutOrderNo
(
incomeId
);
// 查询凭证 是否有申请中的
if
(
agg
.
getVoucherState
()!=
null
&&
agg
.
getVoucherState
().
equals
(
VoucherStateApplyEnum
.
申请中
.
getValue
())){
throw
new
RuntimeException
(
"当前回单入账在途中"
);
}
if
(
entryBillAggregate
!=
null
&&
entryBillAggregate
.
getVoucherState
().
getValue
().
equals
(
VoucherStateEnum
.
已入账
.
getValue
())
&&
agg
.
getVoucherState
().
equals
(
VoucherStateApplyEnum
.
已入账
.
getValue
())
){
throw
new
RuntimeException
(
"已经入账的回单不允许再次入账"
);
}
List
<
EntryBillFlowEntity
>
flowEntityList
=
new
ArrayList
<>();
Long
entryNo
=
IdUtil
.
getSnowflakeNextId
();
if
(
StringUtils
.
isNotEmpty
(
cmd
.
getVoucherCode
())&&
ObjectUtil
.
isNotEmpty
(
cmd
.
getVoucherDate
())){