Commit 3a856190 by Suvalue

预算编制保存

parent 18386944
...@@ -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);
......
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