|
@@ -6,6 +6,7 @@ package com.malk.aiwei.controller;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.malk.aiwei.server.YDSearch;
|
|
|
import com.malk.aiwei.service.AWClint;
|
|
|
import com.malk.delegate.McDelegate;
|
|
|
import com.malk.server.aliwork.YDConf;
|
|
@@ -17,6 +18,7 @@ import com.malk.server.teambition.TBConf;
|
|
|
import com.malk.service.aliwork.YDClient;
|
|
|
import com.malk.service.aliwork.YDService;
|
|
|
import com.malk.service.teambition.TBClient;
|
|
|
+import com.malk.utils.UtilExcel;
|
|
|
import com.malk.utils.UtilMap;
|
|
|
import com.malk.utils.UtilServlet;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
@@ -24,10 +26,8 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Slf4j
|
|
|
@RestController
|
|
@@ -314,6 +314,17 @@ public class TBxYDController {
|
|
|
return UtilMap.map("options", result);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 搭配出
|
|
|
+ */
|
|
|
+ @PostMapping("export")
|
|
|
+ void export(@RequestBody Map data, HttpServletResponse response) {
|
|
|
+ List<Map> dataList = UtilMap.getList(data,"dataList");
|
|
|
+ String fileName = UtilMap.getString(data,"fileName");
|
|
|
+ String tempFileName = UtilMap.getString(data,"tempFileName");
|
|
|
+ UtilExcel.exportMapAndListByTemplate(response, dataList, Map.class, fileName, tempFileName);
|
|
|
+ }
|
|
|
+
|
|
|
//////// test ////////
|
|
|
|
|
|
@Autowired
|