Commit a92825e8 by Suvalue

旧版实值计算

parent 67a13aaf
...@@ -59,14 +59,14 @@ public class SerProjValueServiceImpl implements SerProjValueService { ...@@ -59,14 +59,14 @@ public class SerProjValueServiceImpl implements SerProjValueService {
for(ProjectInfo projInfo : projectInfo){ for(ProjectInfo projInfo : projectInfo){
values = serProjValueMapper.selectValue(projectType,(Integer)enumInfo.get("value"), values = serProjValueMapper.selectValue(projectType,(Integer)enumInfo.get("value"),
projInfo.getExponentId(),deptCode,date,BudgetType.NOT.getValue(),orgCode); projInfo.getExponentId(),deptCode,date,BudgetType.NOT.getValue(),orgCode);
for(SerProjValueResp value : values){ // for(SerProjValueResp value : values){
valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,deptCode,orgCode); // valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,deptCode,orgCode);
if(valueSz != null){ // if(valueSz != null){
value.setSz(valueSz.getSz()); // value.setSz(valueSz.getSz());
value.setZxpl(valueSz.getZxpl()); // value.setZxpl(valueSz.getZxpl());
valueSz = null; // valueSz = null;
} // }
} // }
resultValues = getLevelData(values,BigDecimal.valueOf(PROJ_TOP_PARENT_ID)); resultValues = getLevelData(values,BigDecimal.valueOf(PROJ_TOP_PARENT_ID));
if(resultValues != null && resultValues.size() > 0) if(resultValues != null && resultValues.size() > 0)
projInfo.setProjectValues(resultValues); projInfo.setProjectValues(resultValues);
...@@ -126,14 +126,14 @@ public class SerProjValueServiceImpl implements SerProjValueService { ...@@ -126,14 +126,14 @@ public class SerProjValueServiceImpl implements SerProjValueService {
List<SerProjValueResp> values = serProjValueMapper.selectValue((Integer)enumInfo.get("value"),null, List<SerProjValueResp> values = serProjValueMapper.selectValue((Integer)enumInfo.get("value"),null,
null,summary.getDeptCode(),date,budgetType,orgCode); null,summary.getDeptCode(),date,budgetType,orgCode);
if(values != null){ if(values != null){
for(SerProjValueResp value : values){ // for(SerProjValueResp value : values){
valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,summary.getDeptCode(),orgCode); // valueSz = projValueSzMapper.selectByProj(value.getProjId(),date,summary.getDeptCode(),orgCode);
if(valueSz != null){ // if(valueSz != null){
value.setSz(valueSz.getSz()); // value.setSz(valueSz.getSz());
value.setZxpl(valueSz.getZxpl()); // value.setZxpl(valueSz.getZxpl());
valueSz = null; // valueSz = null;
} // }
} // }
projType.setProject(values); projType.setProject(values);
} }
summary.getProjTypeList().add(projType); summary.getProjTypeList().add(projType);
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
join SER_PROJ p on p.ID =v.PROJ_ID and p.STATE = 1 join SER_PROJ p on p.ID =v.PROJ_ID and p.STATE = 1
where 1=1 where 1=1
<if test="date!=null"> <if test="date!=null">
and v."DATE"=TO_NUMBER(SUBSTR(#{date,jdbcType=DECIMAL},1,4)) and v."DATE"=#{date,jdbcType=DECIMAL}
</if> </if>
<if test="budgetType!=null"> <if test="budgetType!=null">
and BitAnd(IS_BUDGET,#{budgetType})>0 and BitAnd(IS_BUDGET,#{budgetType})>0
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
AND v.DEPT_CODE = #{dept,jdbcType=VARCHAR} AND v.DEPT_CODE = #{dept,jdbcType=VARCHAR}
</if> </if>
<if test="date!=null"> <if test="date!=null">
AND v."DATE" = TO_NUMBER(SUBSTR(#{date,jdbcType=DECIMAL},1,4)) AND v."DATE" = #{date,jdbcType=DECIMAL}
</if> </if>
<if test="hosCode!=null"> <if test="hosCode!=null">
AND v.HOSCODE = #{hosCode,jdbcType=VARCHAR} AND v.HOSCODE = #{hosCode,jdbcType=VARCHAR}
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
AND v.DEPT_CODE = #{dept,jdbcType=VARCHAR} AND v.DEPT_CODE = #{dept,jdbcType=VARCHAR}
</if> </if>
<if test="date!=null"> <if test="date!=null">
AND v."DATE" = TO_NUMBER(SUBSTR(#{date,jdbcType=DECIMAL},1,4)) AND v."DATE" = #{date,jdbcType=DECIMAL}
</if> </if>
<if test="hosCode!=null"> <if test="hosCode!=null">
AND v.HOSCODE = #{hosCode,jdbcType=VARCHAR} AND v.HOSCODE = #{hosCode,jdbcType=VARCHAR}
......
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