Commit 4a948478 authored by 廖旭伟's avatar 廖旭伟

窗口绩效汇总bug修改

parent 117d9cf2
...@@ -3,6 +3,7 @@ import com.mortals.xhx.module.window.model.WindowPerformSummaryQuery; ...@@ -3,6 +3,7 @@ import com.mortals.xhx.module.window.model.WindowPerformSummaryQuery;
import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
import java.math.BigDecimal;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -43,4 +44,19 @@ public class WindowPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Win ...@@ -43,4 +44,19 @@ public class WindowPerformSummaryServiceImpl extends AbstractCRUDServiceImpl<Win
} }
this.save(addList); this.save(addList);
} }
@Override
protected void validData(WindowPerformSummaryEntity entity, Context context) throws AppException {
BigDecimal sum = BigDecimal.ZERO;
if(entity.getCkjsdf()!=null){
sum.add(entity.getCkjsdf());
}
if(entity.getZdrwdf()!=null){
sum.add(entity.getZdrwdf());
}
if(entity.getAddTotalScore()!=null){
sum.add(entity.getAddTotalScore());
}
entity.setSumScore(sum);
}
} }
\ No newline at end of file
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