Commit 3a856190 by Suvalue

预算编制保存

parent 18386944
......@@ -95,14 +95,16 @@ public class SerProjValueServiceImpl implements SerProjValueService {
SerProjValue info = null;
long version = System.currentTimeMillis();
for(BudgetValue budgetValue : request.getBudgetValues()){
info = new SerProjValue(budgetValue);
info.setDate(request.getDate());
info.setDeptCode(request.getDeptCode());
info.setCreateDate(new Date());
info.setState(BigDecimal.valueOf(StateType.ON.getValue()));
info.setVersion(String.valueOf(version));
info.setHoscode(orgCode);
serProjValueMapper.insert(info);
if(budgetValue.getProjId() != null){
info = new SerProjValue(budgetValue);
info.setDate(request.getDate());
info.setDeptCode(request.getDeptCode());
info.setCreateDate(new Date());
info.setState(BigDecimal.valueOf(StateType.ON.getValue()));
info.setVersion(String.valueOf(version));
info.setHoscode(orgCode);
serProjValueMapper.insert(info);
}
}
//调用计算数值存储过程
serProjValueMapper.updateValue(request.getDate(),orgCode);
......
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();
}
}
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