Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
projectplan
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
Operate
Environments
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
班迪
projectplan
Commits
a45d76b4
Commit
a45d76b4
authored
2 years ago
by
wxy0715
Browse files
Options
Downloads
Patches
Plain Diff
删除拨款业务号
parent
b397e45d
Branches
Branches containing commit
No related merge requests found
Pipeline
#99455
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ServiceSite/src/main/java/com/seasky/projectplan/infrastructure/repository/prediction/PredictionRepository.java
+0
-73
0 additions, 73 deletions
...structure/repository/prediction/PredictionRepository.java
with
0 additions
and
73 deletions
ServiceSite/src/main/java/com/seasky/projectplan/infrastructure/repository/prediction/PredictionRepository.java
+
0
−
73
View file @
a45d76b4
...
...
@@ -89,79 +89,6 @@ public class PredictionRepository implements ProjectDetialRepository {
Map
<
String
,
Object
>
projectPlanBook
=
new
HashMap
<>(
1
);
projectPlanBook
.
put
(
"id"
,
projectPo
.
getProjectPlanBookId
());
List
<
ProjectPlanBookPo
>
projectPlanBookPos
=
projectPlanBookMapper
.
selectByMap
(
projectPlanBook
);
Map
<
String
,
Object
>
voucherMap
=
new
HashMap
<>(
1
);
voucherMap
.
put
(
"year"
,
projectPlanBookPos
.
get
(
0
).
getYear
());
voucherMap
.
put
(
"name"
,
"额度业务单号"
);
List
<
VoucherPo
>
voucherPos
=
voucherMapper
.
selectByMap
(
voucherMap
);
voucherMap
.
put
(
"year"
,
projectPlanBookPos
.
get
(
0
).
getYear
());
voucherMap
.
put
(
"name"
,
"拨款业务单号"
);
List
<
VoucherPo
>
vouchers
=
voucherMapper
.
selectByMap
(
voucherMap
);
//额度
if
(
ObjectUtils
.
isEmpty
(
voucherPos
)
&&
voucherPos
.
size
()
==
0
)
{
//新增
projectPo
.
setQuotaNo
(
"3C"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z000001"
);
projectMapper
.
updateById
(
projectPo
);
voucherMapper
.
insert
(
new
VoucherPo
(
projectPlanBookPos
.
get
(
0
).
getYear
(),
"额度业务单号"
,
"3C"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z000001"
));
}
else
{
Integer
max
=
0
;
for
(
VoucherPo
voucherPo
:
voucherPos
)
{
String
substring
=
voucherPo
.
getCode
().
substring
(
voucherPo
.
getCode
().
length
()
-
6
);
Integer
integer
=
Integer
.
valueOf
(
substring
);
if
(
integer
>
max
)
{
max
=
integer
;
}
}
max
=
max
+
1
;
StringBuilder
stringBuilder
=
new
StringBuilder
();
System
.
out
.
println
(
"string+:"
+
max
.
toString
().
length
());
stringBuilder
.
append
(
max
);
for
(
int
i
=
0
;
i
<
6
-
max
.
toString
().
length
();
i
++)
{
stringBuilder
.
insert
(
0
,
"0"
);
}
VoucherPo
voucherPo
=
new
VoucherPo
(
projectPlanBookPos
.
get
(
0
).
getYear
(),
"额度业务单号"
,
"3C"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z"
+
stringBuilder
);
voucherMapper
.
insert
(
voucherPo
);
projectPo
.
setQuotaNo
(
voucherPo
.
getCode
());
projectMapper
.
updateById
(
projectPo
);
}
//拨款
if
(
ObjectUtils
.
isEmpty
(
vouchers
)
&&
vouchers
.
size
()
==
0
)
{
//新增
projectPo
.
setVoucherNo
(
"2B"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z000001"
);
projectMapper
.
updateById
(
projectPo
);
voucherMapper
.
insert
(
new
VoucherPo
(
projectPlanBookPos
.
get
(
0
).
getYear
(),
"拨款业务单号"
,
"2B"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z000001"
));
}
else
{
Integer
max
=
0
;
for
(
VoucherPo
voucher
:
vouchers
)
{
String
substring
=
voucher
.
getCode
().
substring
(
voucher
.
getCode
().
length
()
-
6
);
Integer
integer
=
Integer
.
valueOf
(
substring
);
if
(
integer
>
max
)
{
max
=
integer
;
}
}
max
=
max
+
1
;
StringBuilder
stringBuilder
=
new
StringBuilder
();
System
.
out
.
println
(
"string+:"
+
max
.
toString
().
length
());
stringBuilder
.
append
(
max
);
for
(
int
i
=
0
;
i
<
6
-
max
.
toString
().
length
();
i
++)
{
stringBuilder
.
insert
(
0
,
"0"
);
}
VoucherPo
voucher
=
new
VoucherPo
(
projectPlanBookPos
.
get
(
0
).
getYear
(),
"拨款业务单号"
,
"2B"
+
projectPlanBookPos
.
get
(
0
).
getYear
()
+
"Z"
+
stringBuilder
);
voucherMapper
.
insert
(
voucher
);
projectPo
.
setVoucherNo
(
voucher
.
getCode
());
projectMapper
.
updateById
(
projectPo
);
}
List
<
ProjectDetialPo
>
projectDetialPos
=
PredictionConvert
.
voToProjectDetialPo
(
projectAgg
,
projectPo
);
for
(
ProjectDetialPo
projectDetialPo
:
projectDetialPos
)
{
projectDetialPo
.
prepareBeforeInsert
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment