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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
34 deletions
+5
-34
bsoft-api/src/main/java/com/bsoft/api/service/Impl/SerProjValueServiceImpl.java
+2
-0
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
+1
-32
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,6 +95,7 @@ public class SerProjValueServiceImpl implements SerProjValueService {
SerProjValue
info
=
null
;
long
version
=
System
.
currentTimeMillis
();
for
(
BudgetValue
budgetValue
:
request
.
getBudgetValues
()){
if
(
budgetValue
.
getProjId
()
!=
null
){
info
=
new
SerProjValue
(
budgetValue
);
info
.
setDate
(
request
.
getDate
());
info
.
setDeptCode
(
request
.
getDeptCode
());
...
...
@@ -104,6 +105,7 @@ public class SerProjValueServiceImpl implements SerProjValueService {
info
.
setHoscode
(
orgCode
);
serProjValueMapper
.
insert
(
info
);
}
}
//调用计算数值存储过程
serProjValueMapper
.
updateValue
(
request
.
getDate
(),
orgCode
);
}
...
...
bsoft-api/src/main/resources/mapper/SerDiseaseMapper.xml
View file @
3a856190
...
...
@@ -52,11 +52,7 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where d.STATE=1
and rs.MDC_CODE=d.MDC_CODE and rs.MDC_CODE = #{code,jdbcType=VARCHAR} and rs.`DATE` = #{date,jdbcType=VARCHAR}
and d.`DATE` =#{date,jdbcType=VARCHAR}
<if
test=
"docCode!=null"
>
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
and rs.MDC_CODE=d.MDC_CODE and rs.MDC_CODE = #{code,jdbcType=VARCHAR}
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
...
...
@@ -66,12 +62,6 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"date!=null"
>
and d.`DATE` = #{date,jdbcType=VARCHAR} and rs.`DATE` = #{date,jdbcType=VARCHAR}
</if>
<if
test=
"docCode!=null"
>
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
...
...
@@ -85,15 +75,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"date!=null"
>
and d.`DATE` = #{date,jdbcType=VARCHAR} and rs.`DATE` = #{date,jdbcType=VARCHAR}
</if>
<if
test=
"level!=null"
>
and d.`LEVEL` = #{level,jdbcType=DECIMAL}
</if>
<if
test=
"docCode!=null"
>
and rs.DOC_CODE = #{docCode,jdbcType=DECIMAL}
</if>
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE = #{deptCode,jdbcType=VARCHAR}
</if>
...
...
@@ -113,15 +97,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"date!=null"
>
and d.`DATE` = #{date,jdbcType=VARCHAR} and rs.`DATE` = #{date,jdbcType=VARCHAR}
</if>
<if
test=
"parentId!=null"
>
and d.PARENT_ID = #{parentId,jdbcType=DECIMAL}
</if>
<if
test=
"docCode!=null"
>
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
...
...
@@ -131,9 +109,6 @@
select *
from SER_DISEASE
where 1 = 1 and STATE=1
<if
test=
"date!=null"
>
and `DATE` = #{date,jdbcType=VARCHAR}
</if>
<if
test=
"diseaseId!=null"
>
and id=(select PARENT_ID from SER_DISEASE where id = #{diseaseId,jdbcType=DECIMAL} )
</if>
...
...
@@ -143,15 +118,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE
<if
test=
"date!=null"
>
and d.`DATE` = #{date,jdbcType=VARCHAR} and rs.`DATE` = #{date,jdbcType=VARCHAR}
</if>
<if
test=
"diseaseId!=null"
>
and d.PARENT_ID=#{diseaseId,jdbcType=DECIMAL}
</if>
<if
test=
"docCode!=null"
>
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if
test=
"deptCode!=null"
>
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if>
...
...
bsoft-common/src/main/java/com/bsoft/common/utils/StringUtil.java
View file @
3a856190
package
com
.
bsoft
.
common
.
utils
;
public
class
StringUtil
{
public
static
boolean
isNullOrEmpty
(
String
str
){
public
static
boolean
isNullOrEmpty
(
String
str
)
{
return
str
==
null
||
str
.
isEmpty
();
}
public
static
boolean
isNullOrBlank
(
String
str
){
public
static
boolean
isNullOrBlank
(
String
str
)
{
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