|
@@ -18,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;
|
|
@@ -25,6 +26,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Slf4j
|
|
@@ -312,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
|