Commit 945b5b72 by 刘宇峰

测试配置热刷新

1 parent 3aa9f0c1
...@@ -5,6 +5,7 @@ import cn.com.glsx.admin.modules.model.export.TrialDriveReportExport; ...@@ -5,6 +5,7 @@ import cn.com.glsx.admin.modules.model.export.TrialDriveReportExport;
import cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch; import cn.com.glsx.admin.modules.model.param.TrialDriveReportSearch;
import cn.com.glsx.admin.modules.utils.DateUtil; import cn.com.glsx.admin.modules.utils.DateUtil;
import com.glsx.plat.common.utils.StringUtils; import com.glsx.plat.common.utils.StringUtils;
import com.glsx.plat.context.utils.PropertiesUtils;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -27,6 +28,8 @@ public class TrialDriveReportService { ...@@ -27,6 +28,8 @@ public class TrialDriveReportService {
private TrialDriveReportMapper trialDriveReportMapper; private TrialDriveReportMapper trialDriveReportMapper;
public List<TrialDriveReportExport> search(TrialDriveReportSearch search) { public List<TrialDriveReportExport> search(TrialDriveReportSearch search) {
String needToShowVehicleTypeList = PropertiesUtils.getProperty("glsx.effectivetestdrive.needtoshow");
log.info(needToShowVehicleTypeList);
return trialDriveReportMapper.getTestDrivePageList(search); return trialDriveReportMapper.getTestDrivePageList(search);
} }
...@@ -47,7 +50,6 @@ public class TrialDriveReportService { ...@@ -47,7 +50,6 @@ public class TrialDriveReportService {
for (TrialDriveReportExport drivePageExcel : testDrivePageList) { for (TrialDriveReportExport drivePageExcel : testDrivePageList) {
search.setSn(drivePageExcel.getSn()); search.setSn(drivePageExcel.getSn());
List<TrialDriveReportExport> testDriveDataOneList = trialDriveReportMapper.getEffectiveTestDriveData(search); List<TrialDriveReportExport> testDriveDataOneList = trialDriveReportMapper.getEffectiveTestDriveData(search);
log.info("testDriveDataOneList 的长度是" + testDriveDataOneList.size());
//将每一个查询的对象进行填充 //将每一个查询的对象进行填充
makeDriveData(testDriveDataOneList, excelHashMap); makeDriveData(testDriveDataOneList, excelHashMap);
} }
...@@ -347,8 +349,6 @@ public class TrialDriveReportService { ...@@ -347,8 +349,6 @@ public class TrialDriveReportService {
*/ */
private void makeDriveData(List<TrialDriveReportExport> testDriveDataOneList, HashMap<String, TrialDriveReportExport> excelHashMap) { private void makeDriveData(List<TrialDriveReportExport> testDriveDataOneList, HashMap<String, TrialDriveReportExport> excelHashMap) {
try { try {
log.info("===== EffectiveTestDriveReport ====start====");
// 试驾表格需要展示的车辆类型 // 试驾表格需要展示的车辆类型
HashMap<String, Integer> sumHashMap = new HashMap<>(); HashMap<String, Integer> sumHashMap = new HashMap<>();
for (TrialDriveReportExport driveDataOne : testDriveDataOneList) { for (TrialDriveReportExport driveDataOne : testDriveDataOneList) {
...@@ -623,7 +623,6 @@ public class TrialDriveReportService { ...@@ -623,7 +623,6 @@ public class TrialDriveReportService {
} catch (Exception e) { } catch (Exception e) {
log.error("makeDriveData error Exception" + e.getMessage()); log.error("makeDriveData error Exception" + e.getMessage());
} }
log.info("===== EffectiveTestDriveReport ====end====");
} }
private Integer replaceDayCount(Integer dayCount) { private Integer replaceDayCount(Integer dayCount) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!