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
3a856190
Commit
3a856190
authored
Jun 11, 2020
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预算编制保存
parent
18386944
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
10 deletions
+12
-10
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SerProjValueServiceImpl.java
+10
-8
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
+0
-0
bsoft-common/src/main/java/com/bsoft/common/utils/StringUtil.java
+2
-2
No files found.
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SerProjValueServiceImpl.java
View file @
3a856190
...
@@ -95,14 +95,16 @@ public class SerProjValueServiceImpl implements SerProjValueService {
...
@@ -95,14 +95,16 @@ public class SerProjValueServiceImpl implements SerProjValueService {
SerProjValue
info
=
null
;
SerProjValue
info
=
null
;
long
version
=
System
.
currentTimeMillis
();
long
version
=
System
.
currentTimeMillis
();
for
(
BudgetValue
budgetValue
:
request
.
getBudgetValues
()){
for
(
BudgetValue
budgetValue
:
request
.
getBudgetValues
()){
info
=
new
SerProjValue
(
budgetValue
);
if
(
budgetValue
.
getProjId
()
!=
null
){
info
.
setDate
(
request
.
getDate
());
info
=
new
SerProjValue
(
budgetValue
);
info
.
setDeptCode
(
request
.
getDeptCode
());
info
.
setDate
(
request
.
getDate
());
info
.
setCreateDate
(
new
Date
());
info
.
setDeptCode
(
request
.
getDeptCode
());
info
.
setState
(
BigDecimal
.
valueOf
(
StateType
.
ON
.
getValue
()));
info
.
setCreateDate
(
new
Date
());
info
.
setVersion
(
String
.
valueOf
(
version
));
info
.
setState
(
BigDecimal
.
valueOf
(
StateType
.
ON
.
getValue
()));
info
.
setHoscode
(
orgCode
);
info
.
setVersion
(
String
.
valueOf
(
version
));
serProjValueMapper
.
insert
(
info
);
info
.
setHoscode
(
orgCode
);
serProjValueMapper
.
insert
(
info
);
}
}
}
//调用计算数值存储过程
//调用计算数值存储过程
serProjValueMapper
.
updateValue
(
request
.
getDate
(),
orgCode
);
serProjValueMapper
.
updateValue
(
request
.
getDate
(),
orgCode
);
...
...
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
View file @
3a856190
This diff is collapsed.
Click to expand it.
bsoft-common/src/main/java/com/bsoft/common/utils/StringUtil.java
View file @
3a856190
package
com
.
bsoft
.
common
.
utils
;
package
com
.
bsoft
.
common
.
utils
;
public
class
StringUtil
{
public
class
StringUtil
{
public
static
boolean
isNullOrEmpty
(
String
str
){
public
static
boolean
isNullOrEmpty
(
String
str
)
{
return
str
==
null
||
str
.
isEmpty
();
return
str
==
null
||
str
.
isEmpty
();
}
}
public
static
boolean
isNullOrBlank
(
String
str
){
public
static
boolean
isNullOrBlank
(
String
str
)
{
return
str
==
null
||
str
.
trim
().
isEmpty
();
return
str
==
null
||
str
.
trim
().
isEmpty
();
}
}
}
}
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