Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
e8d7e33a
Commit
e8d7e33a
authored
May 19, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql旧版实值
parent
2a76f08e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
18 deletions
+21
-18
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SerProjValueServiceImpl.java
+20
-17
bsoft-api/src/main/resources/mapper/SerProjMapper.xml
+1
-1
No files found.
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SerProjValueServiceImpl.java
View file @
e8d7e33a
...
...
@@ -59,13 +59,15 @@ public class SerProjValueServiceImpl implements SerProjValueService {
for
(
ProjectInfo
projInfo
:
projectInfo
){
values
=
serProjValueMapper
.
selectValue
(
projectType
,(
Integer
)
enumInfo
.
get
(
"value"
),
projInfo
.
getExponentId
(),
deptCode
,
date
,
BudgetType
.
NOT
.
getValue
(),
orgCode
);
for
(
SerProjValueResp
value
:
values
){
valueSz
=
projValueSzMapper
.
selectByProj
(
value
.
getProjId
(),
date
,
deptCode
,
orgCode
);
if
(
valueSz
!=
null
){
value
.
setSz
(
valueSz
.
getSz
());
value
.
setZxpl
(
valueSz
.
getZxpl
());
valueSz
=
null
;
}
if
(
values
!=
null
&&
values
.
size
()
>
0
){
// for(SerProjValueResp value : values){
// valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,deptCode,orgCode);
// if(valueSz != null){
// value.setSz(valueSz.getSz());
// value.setZxpl(valueSz.getZxpl());
// valueSz = null;
// }
// }
}
resultValues
=
getLevelData
(
values
,
BigDecimal
.
valueOf
(
PROJ_TOP_PARENT_ID
));
if
(
resultValues
!=
null
&&
resultValues
.
size
()
>
0
)
...
...
@@ -119,21 +121,22 @@ public class SerProjValueServiceImpl implements SerProjValueService {
SummaryProjType
projType
=
null
;
List
<
ProjectInfo
>
projectInfo
=
null
;
SerProjValueSz
valueSz
=
null
;
List
<
SerProjValueResp
>
values
=
null
;
if
(
enumList
!=
null
&&
enumList
.
size
()
>
0
){
for
(
Map
<
String
,
Object
>
enumInfo
:
enumList
){
projType
=
new
SummaryProjType
();
projType
.
setProjTypeName
(
String
.
valueOf
(
enumInfo
.
get
(
"description"
)));
List
<
SerProjValueResp
>
values
=
serProjValueMapper
.
selectValue
((
Integer
)
enumInfo
.
get
(
"value"
),
null
,
values
=
serProjValueMapper
.
selectValue
((
Integer
)
enumInfo
.
get
(
"value"
),
null
,
null
,
summary
.
getDeptCode
(),
date
,
budgetType
,
orgCode
);
if
(
values
!=
null
){
for
(
SerProjValueResp
value
:
values
){
valueSz
=
projValueSzMapper
.
selectByProj
(
value
.
getProjId
(),
date
,
summary
.
getDeptCode
(),
orgCode
);
if
(
valueSz
!=
null
){
value
.
setSz
(
valueSz
.
getSz
());
value
.
setZxpl
(
valueSz
.
getZxpl
());
valueSz
=
null
;
}
}
if
(
values
!=
null
&&
values
.
size
()
>
0
){
//
for(SerProjValueResp value : values){
//
valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,summary.getDeptCode(),orgCode);
//
if(valueSz != null){
//
value.setSz(valueSz.getSz());
//
value.setZxpl(valueSz.getZxpl());
//
valueSz = null;
//
}
//
}
projType
.
setProject
(
values
);
}
summary
.
getProjTypeList
().
add
(
projType
);
...
...
bsoft-api/src/main/resources/mapper/SerProjMapper.xml
View file @
e8d7e33a
...
...
@@ -84,7 +84,7 @@
and v.`DATE`= LEFT(#{date,jdbcType=DECIMAL},4)
</if>
<if
test=
"budgetType!=null"
>
and IS_BUDGET
&
#{budgetType,jdbcType=DECIMAL}
)
>0
and IS_BUDGET
&
#{budgetType,jdbcType=DECIMAL}>0
</if>
GROUP BY v.DEPT_CODE,v.SORT
order by v.SORT
...
...
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