Commit 3a856190 by Suvalue

预算编制保存

parent 18386944
...@@ -95,6 +95,7 @@ public class SerProjValueServiceImpl implements SerProjValueService { ...@@ -95,6 +95,7 @@ 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()){
if(budgetValue.getProjId() != null){
info = new SerProjValue(budgetValue); info = new SerProjValue(budgetValue);
info.setDate(request.getDate()); info.setDate(request.getDate());
info.setDeptCode(request.getDeptCode()); info.setDeptCode(request.getDeptCode());
...@@ -104,6 +105,7 @@ public class SerProjValueServiceImpl implements SerProjValueService { ...@@ -104,6 +105,7 @@ public class SerProjValueServiceImpl implements SerProjValueService {
info.setHoscode(orgCode); info.setHoscode(orgCode);
serProjValueMapper.insert(info); serProjValueMapper.insert(info);
} }
}
//调用计算数值存储过程 //调用计算数值存储过程
serProjValueMapper.updateValue(request.getDate(),orgCode); serProjValueMapper.updateValue(request.getDate(),orgCode);
} }
......
...@@ -52,11 +52,7 @@ ...@@ -52,11 +52,7 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where d.STATE=1 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 rs.MDC_CODE=d.MDC_CODE and rs.MDC_CODE = #{code,jdbcType=VARCHAR}
and d.`DATE` =#{date,jdbcType=VARCHAR}
<if test="docCode!=null">
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if test="deptCode!=null"> <if test="deptCode!=null">
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR} and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if> </if>
...@@ -66,12 +62,6 @@ ...@@ -66,12 +62,6 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE 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"> <if test="deptCode!=null">
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR} and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if> </if>
...@@ -85,15 +75,9 @@ ...@@ -85,15 +75,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs from SER_DISEASE d,SER_DISEASE_DOC_RS rs
where 1 = 1 and STATE=1 and rs.MDC_CODE=d.MDC_CODE 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"> <if test="level!=null">
and d.`LEVEL` = #{level,jdbcType=DECIMAL} and d.`LEVEL` = #{level,jdbcType=DECIMAL}
</if> </if>
<if test="docCode!=null">
and rs.DOC_CODE = #{docCode,jdbcType=DECIMAL}
</if>
<if test="deptCode!=null"> <if test="deptCode!=null">
and rs.DEPT_CODE = #{deptCode,jdbcType=VARCHAR} and rs.DEPT_CODE = #{deptCode,jdbcType=VARCHAR}
</if> </if>
...@@ -113,15 +97,9 @@ ...@@ -113,15 +97,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs 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 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"> <if test="parentId!=null">
and d.PARENT_ID = #{parentId,jdbcType=DECIMAL} and d.PARENT_ID = #{parentId,jdbcType=DECIMAL}
</if> </if>
<if test="docCode!=null">
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if test="deptCode!=null"> <if test="deptCode!=null">
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR} and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if> </if>
...@@ -131,9 +109,6 @@ ...@@ -131,9 +109,6 @@
select * select *
from SER_DISEASE from SER_DISEASE
where 1 = 1 and STATE=1 where 1 = 1 and STATE=1
<if test="date!=null">
and `DATE` = #{date,jdbcType=VARCHAR}
</if>
<if test="diseaseId!=null"> <if test="diseaseId!=null">
and id=(select PARENT_ID from SER_DISEASE where id = #{diseaseId,jdbcType=DECIMAL} ) and id=(select PARENT_ID from SER_DISEASE where id = #{diseaseId,jdbcType=DECIMAL} )
</if> </if>
...@@ -143,15 +118,9 @@ ...@@ -143,15 +118,9 @@
d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME d.PARENT_ID, d.`LEVEL`, d.ORG_ID, d.ORG_NAME
from SER_DISEASE d,SER_DISEASE_DOC_RS rs 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 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"> <if test="diseaseId!=null">
and d.PARENT_ID=#{diseaseId,jdbcType=DECIMAL} and d.PARENT_ID=#{diseaseId,jdbcType=DECIMAL}
</if> </if>
<if test="docCode!=null">
and rs.DOC_CODE=#{docCode,jdbcType=VARCHAR}
</if>
<if test="deptCode!=null"> <if test="deptCode!=null">
and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR} and rs.DEPT_CODE=#{deptCode,jdbcType=VARCHAR}
</if> </if>
......
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();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment