root 2 年 前
コミット
b7f1b632a2

+ 2 - 1
simulation-resource-server/src/main/java/com/css/simulation/resource/model/service/ConfigService.java

@@ -84,10 +84,11 @@ public class ConfigService {
     }
 
     public ConfigPO saveConfig(ConfigVO configVO) {
-        //构建主表对象
+        // 构建主表对象
         ConfigPO configPO = new ConfigPO();
         String currentUserId = AuthUtil.getCurrentUserId();
         Timestamp currentTime = TimeUtil.getNowForMysql();
+        // vo 转 po
         ObjectUtil.voToPo(configVO, configPO);
         configPO.setCreateUserId(currentUserId);
         configPO.setCreateTime(currentTime);

+ 1 - 2
simulation-resource-server/src/main/java/com/css/simulation/resource/project/impl/SimulationProjectServiceImpl.java

@@ -778,7 +778,6 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
 
     @Override
     public ResponseBodyVO<ProjectReportVo> selectProjectReportById(SimulationManualProjectParam param) {
-        String id = param.getId();
         String projectType = param.getProjectType();
         // 封装要使用到的数据
         SimulationManualProjectPo poParam = new SimulationManualProjectPo();
@@ -821,7 +820,7 @@ public class SimulationProjectServiceImpl implements SimulationProjectService {
         List<SimulationMptFirstTargetScorePo> pos = simulationMptFirstTargetScoreMapper.selectFirstTargetByPid(par);
 
         List<AlgorithmScoreVo> algorithmScoreVoList = new ArrayList<>();
-        String evaluationLevelReport = "";
+        String evaluationLevelReport;
 
         StringBuilder stringBuilder = new StringBuilder();
 

+ 2 - 0
simulation-resource-server/src/main/resources/mapper/model/ConfigMapper.xml

@@ -163,6 +163,7 @@
                                  create_user_id,
                                  modify_user_id,
                                  is_deleted,
+                                 is_unavailable,
                                  vehicle_array)
         values (#{id,jdbcType=VARCHAR},
                 #{configCode,jdbcType=VARCHAR},
@@ -175,6 +176,7 @@
                 #{createUserId,jdbcType=VARCHAR},
                 #{modifyUserId,jdbcType=VARCHAR},
                 #{isDeleted,jdbcType=VARCHAR},
+                #{isUnavailable},
                 #{vehicleArray,jdbcType=VARCHAR})
     </insert>