| | |
| | | import com.whyc.mapper.BattInfMapper; |
| | | import com.whyc.pojo.BatttestdataId; |
| | | import com.whyc.util.ActionUtil; |
| | | import com.whyc.util.ThreadLocalUtil; |
| | | import org.apache.poi.xwpf.usermodel.*; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTcPr; |
| | | import org.openxmlformats.schemas.wordprocessingml.x2006.main.STMerge; |
| | |
| | | String poiJson = req.getParameter("json"); |
| | | POIWord poiWord = ActionUtil.getGson().fromJson(poiJson, POIWord.class); |
| | | List<TestDataInfDoc> list = bdataService.searchWordExport(poiWord); |
| | | String date = ActionUtil.sdfwithtime_yyyyMMdd_HH_mm_ss.format(new Date()); |
| | | //String date = ActionUtil.sdfwithtime_yyyyMMdd_HH_mm_ss.format(new Date()); |
| | | String date = ThreadLocalUtil.format(new Date(),6); |
| | | String fileName = "doc_" + date + "文件"; |
| | | XWPFDocument doc = new XWPFDocument(); |
| | | //标题 |