提交 6a1af196 authored 作者: 马晨俊's avatar 马晨俊

mcj:

新增新系数计算,新增预算计算
上级 e6d482d5
......@@ -39,5 +39,5 @@ public interface TechnologyDao extends JpaRepository<Technology,String>, JpaSpec
* @param support 是否支持
* @return
*/
int countAllBySupportIsNot(String support);
int countAllBySupportIsNot(Integer support);
}
......@@ -112,7 +112,7 @@ public class TechnologyServiceImpl implements TechnologyService {
@Override
public int findAllTechnologyNotSupport() {
return technologyDao.countAllBySupportIsNot("1");
return technologyDao.countAllBySupportIsNot(1);
}
/**
......
......@@ -72,7 +72,7 @@ public class BudgetUitl {
strings.add("模块数");
strings.add("数据库表");
strings.add("代码量");
int coefficient = 0;
double coefficient = 1;
List<CoefficientModel> nameIn = coefficientModelDao.findAllByNameIn(strings);
List<CoefficientModel> collect = nameIn.stream().filter(a -> a.getScale() == scale).collect(Collectors.toList());
for (CoefficientModel model : collect) {
......@@ -105,7 +105,7 @@ public class BudgetUitl {
else if("数据库表".equals(model.getName())){
Double value = model.countCoefficient(inspectParameter.getTables());
coefficientModelVo.setValue(value);
coefficient*=value;
coefficient *=value;
}
else if("代码量".equals(model.getName())){
Double value = model.countCoefficient(inspectParameter.getCodeSize());
......
package com.zjty.inspect.utils;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.github.junrar.Archive;
import com.github.junrar.rarfile.FileHeader;
import lombok.extern.slf4j.Slf4j;
import net.lingala.zip4j.core.ZipFile;
import org.dom4j.Document;
import org.dom4j.io.SAXReader;
import org.springframework.web.multipart.MultipartFile;
import java.io.*;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.time.LocalDate;
import java.time.LocalDateTime;
@Slf4j
public class FileUtil {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论