|
@@ -10,16 +10,22 @@ import com.mirs.biz.service.IBrdfDataService;
|
|
|
import com.mirs.biz.service.IEmiMeasurementService;
|
|
|
import com.mirs.biz.service.IIntegratedDataService;
|
|
|
import com.mirs.biz.service.ISampleService;
|
|
|
+import com.mirs.common.annotation.Log;
|
|
|
import com.mirs.common.config.RuoYiConfig;
|
|
|
import com.mirs.common.core.controller.BaseController;
|
|
|
import com.mirs.common.core.domain.AjaxResult;
|
|
|
+import com.mirs.common.enums.BusinessType;
|
|
|
+import com.mirs.common.utils.poi.ExcelUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.*;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.ArrayList;
|
|
@@ -154,4 +160,40 @@ public class IndexController extends BaseController {
|
|
|
}
|
|
|
return success(result);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出BRDF数据列表
|
|
|
+ */
|
|
|
+ @Log(title = "Emi首页导出测量数据", businessType = BusinessType.EXPORT)
|
|
|
+ @PostMapping("/exportEmiMeasurementList")
|
|
|
+ public void exportEmiMeasurementList(HttpServletResponse response, IndexSearchDTO dto)
|
|
|
+ {
|
|
|
+ List<EmiMeasurement> emiMeasurementList = emiMeasurementService.selectEmiMeasurementList(dto.getEmiMeasurement());
|
|
|
+ ExcelUtil<EmiMeasurement> util = new ExcelUtil<EmiMeasurement>(EmiMeasurement.class);
|
|
|
+ util.exportExcel(response, emiMeasurementList, "BRDF数据数据");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出BRDF数据列表
|
|
|
+ */
|
|
|
+ @Log(title = "Emi首页导出积分数据", businessType = BusinessType.EXPORT)
|
|
|
+ @PostMapping("/exportIntegratedDataList")
|
|
|
+ public void exportIntegratedDataList(HttpServletResponse response, IndexSearchDTO dto)
|
|
|
+ {
|
|
|
+ List<IntegratedData> integratedDataList = integratedDataService.selectIntegratedDataList(dto.getIntegratedData());
|
|
|
+ ExcelUtil<IntegratedData> util = new ExcelUtil<IntegratedData>(IntegratedData.class);
|
|
|
+ util.exportExcel(response, integratedDataList, "BRDF数据数据");
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 导出BRDF数据列表
|
|
|
+ */
|
|
|
+ @Log(title = "Emi首页导出BRDF数据", businessType = BusinessType.EXPORT)
|
|
|
+ @PostMapping("/exportBrdfDataLis")
|
|
|
+ public void exportBrdfDataLis(HttpServletResponse response, IndexSearchDTO dto)
|
|
|
+ {
|
|
|
+ List<BrdfData> brdfData = brdfDataService.selectBrdfDataList(dto.getBrdfData());
|
|
|
+ ExcelUtil<BrdfData> util = new ExcelUtil<BrdfData>(BrdfData.class);
|
|
|
+ util.exportExcel(response, brdfData, "BRDF数据数据");
|
|
|
+ }
|
|
|
}
|