From 4aeb96339c7956dbcb19b41099f4f1e91191c6aa Mon Sep 17 00:00:00 2001 From: sunyugang Date: Tue, 16 Sep 2025 15:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=97=AE=E5=8D=B7=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=AE=BE=E7=BD=AE=E6=8F=92=E5=85=A5=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/dw/domain/DwAnswer.java | 12 + .../service/impl/DwQuestionServiceImpl.java | 243 +++++++++++++++++- .../resources/mapper/dw/DwAnswerMapper.xml | 2 +- 3 files changed, 255 insertions(+), 2 deletions(-) diff --git a/ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java b/ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java index 4adec3a..3acc805 100644 --- a/ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java +++ b/ruoyi-dw/src/main/java/com/ruoyi/dw/domain/DwAnswer.java @@ -5,6 +5,8 @@ import org.apache.commons.lang3.builder.ToStringStyle; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; +import java.util.Date; + /** * 调查问卷答案对象 dw_answer * @@ -30,6 +32,8 @@ public class DwAnswer @Excel(name = "回答") private String answer; + private Date createTime; + public void setId(Long id) { this.id = id; @@ -70,6 +74,14 @@ public class DwAnswer return answer; } + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruoyi-dw/src/main/java/com/ruoyi/dw/service/impl/DwQuestionServiceImpl.java b/ruoyi-dw/src/main/java/com/ruoyi/dw/service/impl/DwQuestionServiceImpl.java index c6cfeaa..b03c150 100644 --- a/ruoyi-dw/src/main/java/com/ruoyi/dw/service/impl/DwQuestionServiceImpl.java +++ b/ruoyi-dw/src/main/java/com/ruoyi/dw/service/impl/DwQuestionServiceImpl.java @@ -1,6 +1,7 @@ package com.ruoyi.dw.service.impl; import com.ruoyi.common.core.redis.RedisCache; +import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.StringUtils; import com.ruoyi.dw.domain.DwAnswer; import com.ruoyi.dw.domain.DwInfo; @@ -16,6 +17,7 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; import java.util.ArrayList; import java.util.Collections; +import java.util.Date; import java.util.List; /** @@ -128,6 +130,8 @@ public class DwQuestionServiceImpl implements IDwQuestionService //第一个调查问卷问题 Row row = sheet.getRow(i); Cell idCell = row.getCell(0); + String dateTime = row.getCell(6).getStringCellValue(); + Date answerDate = DateUtils.dateTime(DateUtils.YYYY_MM_DD_HH_MM_SS, dateTime); String id = ""; if (idCell != null) { switch (idCell.getCellType()) { @@ -153,6 +157,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer110.setAnswer(cell15.getStringCellValue()); answer110.setInfoId(dwInfo.getId()); answer110.setQuestionId(110L); + answer110.setCreateTime(answerDate); answers.add(answer110); Cell cell16 = row.getCell(16); cell16.setCellType(CellType.STRING); @@ -160,30 +165,35 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer111.setAnswer(cell16.getStringCellValue()); answer111.setInfoId(dwInfo.getId()); answer111.setQuestionId(111L); + answer111.setCreateTime(answerDate); answers.add(answer111); DwAnswer answer1 = new DwAnswer(); Cell cell17 = row.getCell(17); answer1.setAnswer(cell17.getStringCellValue()); answer1.setInfoId(dwInfo.getId()); answer1.setQuestionId(1L); + answer1.setCreateTime(answerDate); answers.add(answer1); DwAnswer answer2 = new DwAnswer(); Cell cell18 = row.getCell(18); answer2.setAnswer(cell18.getStringCellValue()); answer2.setInfoId(dwInfo.getId()); answer2.setQuestionId(2L); + answer2.setCreateTime(answerDate); answers.add(answer2); DwAnswer answer3 = new DwAnswer(); Cell cell19 = row.getCell(19); answer3.setAnswer(cell19.getStringCellValue()); answer3.setInfoId(dwInfo.getId()); answer3.setQuestionId(3L); + answer3.setCreateTime(answerDate); answers.add(answer3); DwAnswer answer4 = new DwAnswer(); Cell cell20 = row.getCell(20); answer4.setAnswer(cell20.getStringCellValue()); answer4.setInfoId(dwInfo.getId()); answer4.setQuestionId(4L); + answer4.setCreateTime(answerDate); answers.add(answer4); Cell cell21 = row.getCell(21); if (cell21 != null){ @@ -191,6 +201,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer5.setAnswer(cell21.getStringCellValue()); answer5.setInfoId(dwInfo.getId()); answer5.setQuestionId(5L); + answer5.setCreateTime(answerDate); answers.add(answer5); } Cell cell22 = row.getCell(22); @@ -199,6 +210,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer6.setAnswer(cell22.getStringCellValue()); answer6.setInfoId(dwInfo.getId()); answer6.setQuestionId(6L); + answer6.setCreateTime(answerDate); answers.add(answer6); } Cell cell23 = row.getCell(23); @@ -212,6 +224,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer7.setInfoId(dwInfo.getId()); answer7.setQuestionId(7L); + answer7.setCreateTime(answerDate); answers.add(answer7); } DwAnswer answer8 = new DwAnswer(); @@ -226,6 +239,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer8.setInfoId(dwInfo.getId()); answer8.setQuestionId(8L); + answer8.setCreateTime(answerDate); answers.add(answer8); Cell cell28 = row.getCell(28); if (cell28 != null && StringUtils.isNotEmpty(cell28.getStringCellValue())){ @@ -233,6 +247,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer91.setAnswer(cell28.getStringCellValue()); answer91.setInfoId(dwInfo.getId()); answer91.setQuestionId(9L); + answer91.setCreateTime(answerDate); answers.add(answer91); } Cell cell29 = row.getCell(29); @@ -241,6 +256,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer92.setAnswer(cell29.getStringCellValue()); answer92.setInfoId(dwInfo.getId()); answer92.setQuestionId(9L); + answer92.setCreateTime(answerDate); answers.add(answer92); } Cell cell30 = row.getCell(30); @@ -249,6 +265,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer93.setAnswer(cell30.getStringCellValue()); answer93.setInfoId(dwInfo.getId()); answer93.setQuestionId(9L); + answer93.setCreateTime(answerDate); answers.add(answer93); } Cell cell31 = row.getCell(31); @@ -257,6 +274,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer94.setAnswer(cell31.getStringCellValue()); answer94.setInfoId(dwInfo.getId()); answer94.setQuestionId(9L); + answer94.setCreateTime(answerDate); answers.add(answer94); } Cell cell32 = row.getCell(32); @@ -265,6 +283,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer95.setAnswer(cell32.getStringCellValue()); answer95.setInfoId(dwInfo.getId()); answer95.setQuestionId(9L); + answer95.setCreateTime(answerDate); answers.add(answer95); } Cell cell33 = row.getCell(33); @@ -273,6 +292,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer96.setAnswer(cell33.getStringCellValue()); answer96.setInfoId(dwInfo.getId()); answer96.setQuestionId(9L); + answer96.setCreateTime(answerDate); answers.add(answer96); } Cell cell34 = row.getCell(34); @@ -281,6 +301,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer97.setAnswer(cell34.getStringCellValue()); answer97.setInfoId(dwInfo.getId()); answer97.setQuestionId(9L); + answer97.setCreateTime(answerDate); answers.add(answer97); } Cell cell35 = row.getCell(35); @@ -289,6 +310,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer98.setAnswer(cell35.getStringCellValue()); answer98.setInfoId(dwInfo.getId()); answer98.setQuestionId(9L); + answer98.setCreateTime(answerDate); answers.add(answer98); } Cell cell36 = row.getCell(36); @@ -297,6 +319,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer99.setAnswer(cell36.getStringCellValue()); answer99.setInfoId(dwInfo.getId()); answer99.setQuestionId(9L); + answer99.setCreateTime(answerDate); answers.add(answer99); } Cell cell37 = row.getCell(37); @@ -305,6 +328,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer910.setAnswer(cell37.getStringCellValue()); answer910.setInfoId(dwInfo.getId()); answer910.setQuestionId(9L); + answer910.setCreateTime(answerDate); answers.add(answer910); } Cell cell38 = row.getCell(38); @@ -312,36 +336,42 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer10.setAnswer(cell38.getStringCellValue()); answer10.setInfoId(dwInfo.getId()); answer10.setQuestionId(10L); + answer10.setCreateTime(answerDate); answers.add(answer10); DwAnswer answer11 = new DwAnswer(); Cell cell39 = row.getCell(39); answer11.setAnswer(cell39.getStringCellValue()); answer11.setInfoId(dwInfo.getId()); answer11.setQuestionId(11L); + answer11.setCreateTime(answerDate); answers.add(answer11); Cell cell40 = row.getCell(40); DwAnswer answer12 = new DwAnswer(); answer12.setAnswer(cell40.getStringCellValue()); answer12.setInfoId(dwInfo.getId()); answer12.setQuestionId(12L); + answer12.setCreateTime(answerDate); answers.add(answer12); Cell cell41 = row.getCell(41); DwAnswer answer13 = new DwAnswer(); answer13.setAnswer(cell41.getStringCellValue()); answer13.setInfoId(dwInfo.getId()); answer13.setQuestionId(13L); + answer13.setCreateTime(answerDate); answers.add(answer13); Cell cell42 = row.getCell(42); DwAnswer answer14 = new DwAnswer(); answer14.setAnswer(cell42.getStringCellValue()); answer14.setInfoId(dwInfo.getId()); answer14.setQuestionId(14L); + answer14.setCreateTime(answerDate); answers.add(answer14); DwAnswer answer15 = new DwAnswer(); Cell cell43 = row.getCell(43); answer15.setAnswer(cell43.getStringCellValue()); answer15.setInfoId(dwInfo.getId()); answer15.setQuestionId(15L); + answer15.setCreateTime(answerDate); answers.add(answer15); DwAnswer answer16 = new DwAnswer(); Cell cell44 = row.getCell(44); @@ -353,18 +383,21 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer16.setInfoId(dwInfo.getId()); answer16.setQuestionId(16L); + answer16.setCreateTime(answerDate); answers.add(answer16); DwAnswer answer17 = new DwAnswer(); Cell cell46 = row.getCell(46); answer17.setAnswer(cell46.getStringCellValue()); answer17.setInfoId(dwInfo.getId()); answer17.setQuestionId(17L); + answer17.setCreateTime(answerDate); answers.add(answer17); DwAnswer answer18 = new DwAnswer(); Cell cell47 = row.getCell(47); answer18.setAnswer(cell47.getStringCellValue()); answer18.setInfoId(dwInfo.getId()); answer18.setQuestionId(18L); + answer18.setCreateTime(answerDate); answers.add(answer18); DwAnswer answer19 = new DwAnswer(); Cell cell48 = row.getCell(48); @@ -376,18 +409,21 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer19.setInfoId(dwInfo.getId()); answer19.setQuestionId(19L); + answer19.setCreateTime(answerDate); answers.add(answer19); DwAnswer answer20 = new DwAnswer(); Cell cell50 = row.getCell(50); answer20.setAnswer(cell50.getStringCellValue()); answer20.setInfoId(dwInfo.getId()); answer20.setQuestionId(20L); + answer20.setCreateTime(answerDate); answers.add(answer20); DwAnswer answer21 = new DwAnswer(); Cell cell51 = row.getCell(51); answer21.setAnswer(cell51.getStringCellValue()); answer21.setInfoId(dwInfo.getId()); answer21.setQuestionId(21L); + answer21.setCreateTime(answerDate); answers.add(answer21); Cell cell53 = row.getCell(53); if (cell53 != null && StringUtils.isNotEmpty(cell53.getStringCellValue())){ @@ -395,6 +431,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer221.setAnswer(cell53.getStringCellValue()); answer221.setInfoId(dwInfo.getId()); answer221.setQuestionId(22L); + answer221.setCreateTime(answerDate); answers.add(answer221); } Cell cell54 = row.getCell(54); @@ -403,6 +440,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer222.setAnswer(cell54.getStringCellValue()); answer222.setInfoId(dwInfo.getId()); answer222.setQuestionId(22L); + answer222.setCreateTime(answerDate); answers.add(answer222); } Cell cell55 = row.getCell(55); @@ -411,6 +449,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer223.setAnswer(cell55.getStringCellValue()); answer223.setInfoId(dwInfo.getId()); answer223.setQuestionId(22L); + answer223.setCreateTime(answerDate); answers.add(answer223); } Cell cell56 = row.getCell(56); @@ -419,6 +458,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer224.setAnswer(cell56.getStringCellValue()); answer224.setInfoId(dwInfo.getId()); answer224.setQuestionId(22L); + answer224.setCreateTime(answerDate); answers.add(answer224); } Cell cell57 = row.getCell(57); @@ -427,6 +467,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer225.setAnswer(cell57.getStringCellValue()); answer225.setInfoId(dwInfo.getId()); answer225.setQuestionId(22L); + answer225.setCreateTime(answerDate); answers.add(answer225); } Cell cell58 = row.getCell(58); @@ -435,6 +476,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer226.setAnswer(cell58.getStringCellValue()); answer226.setInfoId(dwInfo.getId()); answer226.setQuestionId(22L); + answer226.setCreateTime(answerDate); answers.add(answer226); } Cell cell59 = row.getCell(59); @@ -443,6 +485,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer227.setAnswer(cell59.getStringCellValue()); answer227.setInfoId(dwInfo.getId()); answer227.setQuestionId(22L); + answer227.setCreateTime(answerDate); answers.add(answer227); } Cell cell60 = row.getCell(60); @@ -451,6 +494,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer228.setAnswer(cell60.getStringCellValue()); answer228.setInfoId(dwInfo.getId()); answer228.setQuestionId(22L); + answer228.setCreateTime(answerDate); answers.add(answer228); } Cell cell61 = row.getCell(61); @@ -459,6 +503,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer229.setAnswer(cell61.getStringCellValue()); answer229.setInfoId(dwInfo.getId()); answer229.setQuestionId(22L); + answer229.setCreateTime(answerDate); answers.add(answer229); } DwAnswer answer23 = new DwAnswer(); @@ -466,12 +511,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer23.setAnswer(cell62.getStringCellValue()); answer23.setInfoId(dwInfo.getId()); answer23.setQuestionId(23L); + answer23.setCreateTime(answerDate); answers.add(answer23); DwAnswer answer24 = new DwAnswer(); Cell cell63 = row.getCell(63); answer24.setAnswer(cell63.getStringCellValue()); answer24.setInfoId(dwInfo.getId()); answer24.setQuestionId(24L); + answer24.setCreateTime(answerDate); answers.add(answer24); DwAnswer answer25 = new DwAnswer(); Cell cell64 = row.getCell(64); @@ -483,6 +530,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer25.setInfoId(dwInfo.getId()); answer25.setQuestionId(25L); + answer25.setCreateTime(answerDate); answers.add(answer25); Cell cell67 = row.getCell(67); if (cell67 != null && StringUtils.isNotEmpty(cell67.getStringCellValue())){ @@ -490,6 +538,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer261.setAnswer(cell67.getStringCellValue()); answer261.setInfoId(dwInfo.getId()); answer261.setQuestionId(26L); + answer261.setCreateTime(answerDate); answers.add(answer261); } Cell cell68 = row.getCell(68); @@ -498,6 +547,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer262.setAnswer(cell68.getStringCellValue()); answer262.setInfoId(dwInfo.getId()); answer262.setQuestionId(26L); + answer262.setCreateTime(answerDate); answers.add(answer262); } Cell cell69 = row.getCell(69); @@ -506,6 +556,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer263.setAnswer(cell69.getStringCellValue()); answer263.setInfoId(dwInfo.getId()); answer263.setQuestionId(26L); + answer263.setCreateTime(answerDate); answers.add(answer263); } Cell cell70 = row.getCell(70); @@ -514,6 +565,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer264.setAnswer(cell70.getStringCellValue()); answer264.setInfoId(dwInfo.getId()); answer264.setQuestionId(26L); + answer264.setCreateTime(answerDate); answers.add(answer264); } Cell cell71 = row.getCell(71); @@ -522,6 +574,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer265.setAnswer(cell71.getStringCellValue()); answer265.setInfoId(dwInfo.getId()); answer265.setQuestionId(26L); + answer265.setCreateTime(answerDate); answers.add(answer265); } Cell cell72 = row.getCell(72); @@ -530,6 +583,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer266.setAnswer(cell72.getStringCellValue()); answer266.setInfoId(dwInfo.getId()); answer266.setQuestionId(26L); + answer266.setCreateTime(answerDate); answers.add(answer266); } DwAnswer answer27 = new DwAnswer(); @@ -537,6 +591,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer27.setAnswer(cell73.getStringCellValue()); answer27.setInfoId(dwInfo.getId()); answer27.setQuestionId(27L); + answer27.setCreateTime(answerDate); answers.add(answer27); DwAnswer answer28 = new DwAnswer(); Cell cell74 = row.getCell(74); @@ -553,18 +608,21 @@ public class DwQuestionServiceImpl implements IDwQuestionService +cell80.getStringCellValue() +","+ cell81.getStringCellValue()); answer28.setInfoId(dwInfo.getId()); answer28.setQuestionId(28L); + answer28.setCreateTime(answerDate); answers.add(answer28); DwAnswer answer29 = new DwAnswer(); Cell cell82 = row.getCell(82); answer29.setAnswer(cell82.getStringCellValue()); answer29.setInfoId(dwInfo.getId()); answer29.setQuestionId(29L); + answer29.setCreateTime(answerDate); answers.add(answer29); DwAnswer answer30 = new DwAnswer(); Cell cell83 = row.getCell(83); answer30.setAnswer(cell83.getStringCellValue()); answer30.setInfoId(dwInfo.getId()); answer30.setQuestionId(30L); + answer30.setCreateTime(answerDate); answers.add(answer30); Cell cell84 = row.getCell(84); Cell cell85 = row.getCell(85); @@ -580,6 +638,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer31.setAnswer(diqu); answer31.setInfoId(dwInfo.getId()); answer31.setQuestionId(31L); + answer31.setCreateTime(answerDate); answers.add(answer31); } } @@ -588,6 +647,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer32.setAnswer(cell86.getStringCellValue()); answer32.setInfoId(dwInfo.getId()); answer32.setQuestionId(32L); + answer32.setCreateTime(answerDate); answers.add(answer32); Cell cell88 = row.getCell(88); if (cell88 != null && StringUtils.isNotEmpty(cell88.getStringCellValue())){ @@ -595,6 +655,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer331.setAnswer(cell88.getStringCellValue()); answer331.setInfoId(dwInfo.getId()); answer331.setQuestionId(33L); + answer331.setCreateTime(answerDate); answers.add(answer331); } Cell cell89 = row.getCell(89); @@ -603,6 +664,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer332.setAnswer(cell89.getStringCellValue()); answer332.setInfoId(dwInfo.getId()); answer332.setQuestionId(33L); + answer332.setCreateTime(answerDate); answers.add(answer332); } Cell cell90 = row.getCell(90); @@ -611,6 +673,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer333.setAnswer(cell90.getStringCellValue()); answer333.setInfoId(dwInfo.getId()); answer333.setQuestionId(33L); + answer333.setCreateTime(answerDate); answers.add(answer333); } Cell cell91 = row.getCell(91); @@ -619,6 +682,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer334.setAnswer(cell91.getStringCellValue()); answer334.setInfoId(dwInfo.getId()); answer334.setQuestionId(33L); + answer334.setCreateTime(answerDate); answers.add(answer334); } Cell cell92 = row.getCell(92); @@ -627,6 +691,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer335.setAnswer(cell92.getStringCellValue()); answer335.setInfoId(dwInfo.getId()); answer335.setQuestionId(33L); + answer335.setCreateTime(answerDate); answers.add(answer335); } Cell cell93 = row.getCell(93); @@ -635,6 +700,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer336.setAnswer(cell93.getStringCellValue()); answer336.setInfoId(dwInfo.getId()); answer336.setQuestionId(33L); + answer336.setCreateTime(answerDate); answers.add(answer336); } Cell cell94 = row.getCell(94); @@ -643,6 +709,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer337.setAnswer(cell94.getStringCellValue()); answer337.setInfoId(dwInfo.getId()); answer337.setQuestionId(33L); + answer337.setCreateTime(answerDate); answers.add(answer337); } Cell cell95 = row.getCell(95); @@ -651,6 +718,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer338.setAnswer(cell95.getStringCellValue()); answer338.setInfoId(dwInfo.getId()); answer338.setQuestionId(33L); + answer338.setCreateTime(answerDate); answers.add(answer338); } Cell cell96 = row.getCell(96); @@ -659,6 +727,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer339.setAnswer(cell96.getStringCellValue()); answer339.setInfoId(dwInfo.getId()); answer339.setQuestionId(33L); + answer339.setCreateTime(answerDate); answers.add(answer339); } Cell cell97 = row.getCell(97); @@ -667,6 +736,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3310.setAnswer(cell97.getStringCellValue()); answer3310.setInfoId(dwInfo.getId()); answer3310.setQuestionId(33L); + answer3310.setCreateTime(answerDate); answers.add(answer3310); } Cell cell98 = row.getCell(98); @@ -675,6 +745,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3311.setAnswer(cell98.getStringCellValue()); answer3311.setInfoId(dwInfo.getId()); answer3311.setQuestionId(33L); + answer3311.setCreateTime(answerDate); answers.add(answer3311); } Cell cell99 = row.getCell(99); @@ -683,6 +754,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3312.setAnswer(cell99.getStringCellValue()); answer3312.setInfoId(dwInfo.getId()); answer3312.setQuestionId(33L); + answer3312.setCreateTime(answerDate); answers.add(answer3312); } DwAnswer answer34 = new DwAnswer(); @@ -690,6 +762,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer34.setAnswer(cell100.getStringCellValue()); answer34.setInfoId(dwInfo.getId()); answer34.setQuestionId(34L); + answer34.setCreateTime(answerDate); answers.add(answer34); DwAnswer answer35 = new DwAnswer(); Cell cell101 = row.getCell(101); @@ -702,6 +775,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService +cell105.getStringCellValue()); answer35.setInfoId(dwInfo.getId()); answer35.setQuestionId(35L); + answer35.setCreateTime(answerDate); answers.add(answer35); Cell cell107 = row.getCell(107); if (cell107 != null && StringUtils.isNotEmpty(cell107.getStringCellValue())){ @@ -709,6 +783,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer361.setAnswer(cell107.getStringCellValue()); answer361.setInfoId(dwInfo.getId()); answer361.setQuestionId(36L); + answer361.setCreateTime(answerDate); answers.add(answer361); } Cell cell108 = row.getCell(108); @@ -717,6 +792,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer362.setAnswer(cell108.getStringCellValue()); answer362.setInfoId(dwInfo.getId()); answer362.setQuestionId(36L); + answer362.setCreateTime(answerDate); answers.add(answer362); } Cell cell109 = row.getCell(109); @@ -725,6 +801,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer363.setAnswer(cell109.getStringCellValue()); answer363.setInfoId(dwInfo.getId()); answer363.setQuestionId(36L); + answer363.setCreateTime(answerDate); answers.add(answer363); } Cell cell110 = row.getCell(110); @@ -733,6 +810,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer364.setAnswer(cell110.getStringCellValue()); answer364.setInfoId(dwInfo.getId()); answer364.setQuestionId(36L); + answer364.setCreateTime(answerDate); answers.add(answer364); } Cell cell111 = row.getCell(111); @@ -741,6 +819,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer365.setAnswer(cell111.getStringCellValue()); answer365.setInfoId(dwInfo.getId()); answer365.setQuestionId(36L); + answer365.setCreateTime(answerDate); answers.add(answer365); } Cell cell112 = row.getCell(112); @@ -749,6 +828,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer366.setAnswer(cell112.getStringCellValue()); answer366.setInfoId(dwInfo.getId()); answer366.setQuestionId(36L); + answer366.setCreateTime(answerDate); answers.add(answer366); } Cell cell113 = row.getCell(113); @@ -757,6 +837,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer367.setAnswer(cell113.getStringCellValue()); answer367.setInfoId(dwInfo.getId()); answer367.setQuestionId(36L); + answer367.setCreateTime(answerDate); answers.add(answer367); } Cell cell114 = row.getCell(114); @@ -765,6 +846,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer368.setAnswer(cell114.getStringCellValue()); answer368.setInfoId(dwInfo.getId()); answer368.setQuestionId(36L); + answer368.setCreateTime(answerDate); answers.add(answer368); } Cell cell115 = row.getCell(115); @@ -773,6 +855,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer369.setAnswer(cell115.getStringCellValue()); answer369.setInfoId(dwInfo.getId()); answer369.setQuestionId(36L); + answer369.setCreateTime(answerDate); answers.add(answer369); } Cell cell116 = row.getCell(116); @@ -781,6 +864,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3610.setAnswer(cell116.getStringCellValue()); answer3610.setInfoId(dwInfo.getId()); answer3610.setQuestionId(36L); + answer3610.setCreateTime(answerDate); answers.add(answer3610); } Cell cell117 = row.getCell(117); @@ -789,6 +873,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3611.setAnswer(cell117.getStringCellValue()); answer3611.setInfoId(dwInfo.getId()); answer3611.setQuestionId(36L); + answer3611.setCreateTime(answerDate); answers.add(answer3611); } @@ -798,6 +883,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3612.setAnswer(cell118.getStringCellValue()); answer3612.setInfoId(dwInfo.getId()); answer3612.setQuestionId(36L); + answer3612.setCreateTime(answerDate); answers.add(answer3612); } Cell cell119 = row.getCell(119); @@ -806,6 +892,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3613.setAnswer(cell119.getStringCellValue()); answer3613.setInfoId(dwInfo.getId()); answer3613.setQuestionId(36L); + answer3613.setCreateTime(answerDate); answers.add(answer3613); } Cell cell120 = row.getCell(120); @@ -814,6 +901,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3614.setAnswer(cell120.getStringCellValue()); answer3614.setInfoId(dwInfo.getId()); answer3614.setQuestionId(36L); + answer3614.setCreateTime(answerDate); answers.add(answer3614); } Cell cell122 = row.getCell(122); @@ -822,6 +910,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer3615.setAnswer(cell122.getStringCellValue()); answer3615.setInfoId(dwInfo.getId()); answer3615.setQuestionId(36L); + answer3615.setCreateTime(answerDate); answers.add(answer3615); } DwAnswer answer37 = new DwAnswer(); @@ -846,6 +935,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer381.setAnswer(cell132.getStringCellValue()); answer381.setInfoId(dwInfo.getId()); answer381.setQuestionId(38L); + answer381.setCreateTime(answerDate); answers.add(answer381); } Cell cell133 = row.getCell(133); @@ -854,6 +944,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer382.setAnswer(cell133.getStringCellValue()); answer382.setInfoId(dwInfo.getId()); answer382.setQuestionId(38L); + answer382.setCreateTime(answerDate); answers.add(answer382); } Cell cell134 = row.getCell(134); @@ -862,6 +953,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer383.setAnswer(cell134.getStringCellValue()); answer383.setInfoId(dwInfo.getId()); answer383.setQuestionId(38L); + answer383.setCreateTime(answerDate); answers.add(answer383); } Cell cell135 = row.getCell(135); @@ -870,6 +962,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer384.setAnswer(cell135.getStringCellValue()); answer384.setInfoId(dwInfo.getId()); answer384.setQuestionId(38L); + answer384.setCreateTime(answerDate); answers.add(answer384); } Cell cell136 = row.getCell(136); @@ -878,6 +971,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer385.setAnswer(cell136.getStringCellValue()); answer385.setInfoId(dwInfo.getId()); answer385.setQuestionId(38L); + answer385.setCreateTime(answerDate); answers.add(answer385); } Cell cell137 = row.getCell(137); @@ -886,6 +980,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer386.setAnswer(cell137.getStringCellValue()); answer386.setInfoId(dwInfo.getId()); answer386.setQuestionId(38L); + answer386.setCreateTime(answerDate); answers.add(answer386); } DwAnswer answer39 = new DwAnswer(); @@ -893,6 +988,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer39.setAnswer(cell138.getStringCellValue()); answer39.setInfoId(dwInfo.getId()); answer39.setQuestionId(39L); + answer39.setCreateTime(answerDate); answers.add(answer39); DwAnswer answer40 = new DwAnswer(); Cell cell139 = row.getCell(139); @@ -903,6 +999,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService +","+cell141.getStringCellValue() +","+cell142.getStringCellValue() ); answer40.setInfoId(dwInfo.getId()); answer40.setQuestionId(40L); + answer40.setCreateTime(answerDate); answers.add(answer40); DwAnswer answer41 = new DwAnswer(); Cell cell143 = row.getCell(143); @@ -916,6 +1013,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService +","+cell147.getStringCellValue() +","+cell148.getStringCellValue()); answer41.setInfoId(dwInfo.getId()); answer41.setQuestionId(41L); + answer41.setCreateTime(answerDate); answers.add(answer41); }else if (dwInfo.getId() == 2) { DwAnswer answer115 = new DwAnswer(); @@ -923,30 +1021,35 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer115.setAnswer(cell15.getStringCellValue()); answer115.setInfoId(dwInfo.getId()); answer115.setQuestionId(115L); + answer115.setCreateTime(answerDate); answers.add(answer115); DwAnswer answer116 = new DwAnswer(); Cell cell16 = row.getCell(16); answer116.setAnswer(cell16.getStringCellValue()); answer116.setInfoId(dwInfo.getId()); answer116.setQuestionId(116L); + answer116.setCreateTime(answerDate); answers.add(answer116); DwAnswer answer117 = new DwAnswer(); Cell cell17 = row.getCell(17); answer117.setAnswer(cell17.getStringCellValue()); answer117.setInfoId(dwInfo.getId()); answer117.setQuestionId(117L); + answer117.setCreateTime(answerDate); answers.add(answer117); DwAnswer answer1 = new DwAnswer(); Cell cell18 = row.getCell(18); answer1.setAnswer(cell18.getStringCellValue()); answer1.setInfoId(dwInfo.getId()); answer1.setQuestionId(42L); + answer1.setCreateTime(answerDate); answers.add(answer1); DwAnswer answer2 = new DwAnswer(); Cell cell19 = row.getCell(19); answer2.setAnswer(cell19.getStringCellValue()); answer2.setInfoId(dwInfo.getId()); answer2.setQuestionId(43L); + answer2.setCreateTime(answerDate); answers.add(answer2); DwAnswer answer3 = new DwAnswer(); Cell cell20 = row.getCell(20); @@ -958,24 +1061,28 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer3.setInfoId(dwInfo.getId()); answer3.setQuestionId(44L); + answer3.setCreateTime(answerDate); answers.add(answer3); DwAnswer answer4 = new DwAnswer(); Cell cell22 = row.getCell(22); answer4.setAnswer(cell22.getStringCellValue()); answer4.setInfoId(dwInfo.getId()); answer4.setQuestionId(45L); + answer4.setCreateTime(answerDate); answers.add(answer4); DwAnswer answer5 = new DwAnswer(); Cell cell23 = row.getCell(23); answer5.setAnswer(cell23.getStringCellValue()); answer5.setInfoId(dwInfo.getId()); answer5.setQuestionId(46L); + answer5.setCreateTime(answerDate); answers.add(answer5); DwAnswer answer6 = new DwAnswer(); Cell cell24 = row.getCell(24); answer6.setAnswer(cell24.getStringCellValue()); answer6.setInfoId(dwInfo.getId()); answer6.setQuestionId(47L); + answer6.setCreateTime(answerDate); answers.add(answer6); DwAnswer answer7 = new DwAnswer(); Cell cell25 = row.getCell(25); @@ -987,18 +1094,21 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer7.setInfoId(dwInfo.getId()); answer7.setQuestionId(48L); + answer7.setCreateTime(answerDate); answers.add(answer7); DwAnswer answer8 = new DwAnswer(); Cell cell27 = row.getCell(27); answer8.setAnswer(cell27.getStringCellValue()); answer8.setInfoId(dwInfo.getId()); answer8.setQuestionId(49L); + answer8.setCreateTime(answerDate); answers.add(answer8); DwAnswer answer9 = new DwAnswer(); Cell cell28 = row.getCell(28); answer9.setAnswer(cell28.getStringCellValue()); answer9.setInfoId(dwInfo.getId()); answer9.setQuestionId(50L); + answer9.setCreateTime(answerDate); answers.add(answer9); Cell cell30 = row.getCell(30); if (cell30 != null && StringUtils.isNotEmpty(cell30.getStringCellValue())) { @@ -1006,6 +1116,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer101.setAnswer(cell30.getStringCellValue()); answer101.setInfoId(dwInfo.getId()); answer101.setQuestionId(51L); + answer101.setCreateTime(answerDate); answers.add(answer101); } Cell cell31 = row.getCell(31); @@ -1014,6 +1125,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer102.setAnswer(cell31.getStringCellValue()); answer102.setInfoId(dwInfo.getId()); answer102.setQuestionId(51L); + answer102.setCreateTime(answerDate); answers.add(answer102); } Cell cell32 = row.getCell(32); @@ -1022,6 +1134,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer103.setAnswer(cell32.getStringCellValue()); answer103.setInfoId(dwInfo.getId()); answer103.setQuestionId(51L); + answer103.setCreateTime(answerDate); answers.add(answer103); } Cell cell33 = row.getCell(33); @@ -1030,6 +1143,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer104.setAnswer(cell33.getStringCellValue()); answer104.setInfoId(dwInfo.getId()); answer104.setQuestionId(51L); + answer104.setCreateTime(answerDate); answers.add(answer104); } Cell cell34 = row.getCell(34); @@ -1038,6 +1152,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer105.setAnswer(cell34.getStringCellValue()); answer105.setInfoId(dwInfo.getId()); answer105.setQuestionId(51L); + answer105.setCreateTime(answerDate); answers.add(answer105); } Cell cell35 = row.getCell(35); @@ -1046,6 +1161,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer106.setAnswer(cell35.getStringCellValue()); answer106.setInfoId(dwInfo.getId()); answer106.setQuestionId(51L); + answer106.setCreateTime(answerDate); answers.add(answer106); } Cell cell36 = row.getCell(36); @@ -1054,6 +1170,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer107.setAnswer(cell36.getStringCellValue()); answer107.setInfoId(dwInfo.getId()); answer107.setQuestionId(51L); + answer107.setCreateTime(answerDate); answers.add(answer107); } Cell cell37 = row.getCell(37); @@ -1062,6 +1179,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer108.setAnswer(cell37.getStringCellValue()); answer108.setInfoId(dwInfo.getId()); answer108.setQuestionId(51L); + answer108.setCreateTime(answerDate); answers.add(answer108); } Cell cell38 = row.getCell(38); @@ -1070,6 +1188,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer109.setAnswer(cell38.getStringCellValue()); answer109.setInfoId(dwInfo.getId()); answer109.setQuestionId(51L); + answer109.setCreateTime(answerDate); answers.add(answer109); } Cell cell39 = row.getCell(39); @@ -1078,6 +1197,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer110.setAnswer(cell39.getStringCellValue()); answer110.setInfoId(dwInfo.getId()); answer110.setQuestionId(51L); + answer110.setCreateTime(answerDate); answers.add(answer110); } Cell cell40 = row.getCell(40); @@ -1086,6 +1206,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer111.setAnswer(cell40.getStringCellValue()); answer111.setInfoId(dwInfo.getId()); answer111.setQuestionId(51L); + answer111.setCreateTime(answerDate); answers.add(answer111); } Cell cell41 = row.getCell(41); @@ -1094,6 +1215,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer112.setAnswer(cell41.getStringCellValue()); answer112.setInfoId(dwInfo.getId()); answer112.setQuestionId(51L); + answer112.setCreateTime(answerDate); answers.add(answer112); } DwAnswer answer11 = new DwAnswer(); @@ -1101,12 +1223,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer11.setAnswer(cell42.getStringCellValue()); answer11.setInfoId(dwInfo.getId()); answer11.setQuestionId(52L); + answer11.setCreateTime(answerDate); answers.add(answer11); DwAnswer answer12 = new DwAnswer(); Cell cell43 = row.getCell(43); answer12.setAnswer(cell43.getStringCellValue()); answer12.setInfoId(dwInfo.getId()); answer12.setQuestionId(53L); + answer12.setCreateTime(answerDate); answers.add(answer12); DwAnswer answer13 = new DwAnswer(); Cell cell44 = row.getCell(44); @@ -1116,12 +1240,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService + "," +cell46.getStringCellValue()); answer13.setInfoId(dwInfo.getId()); answer13.setQuestionId(54L); + answer13.setCreateTime(answerDate); answers.add(answer13); DwAnswer answer14 = new DwAnswer(); Cell cell47 = row.getCell(47); answer14.setAnswer(cell47.getStringCellValue()); answer14.setInfoId(dwInfo.getId()); answer14.setQuestionId(55L); + answer14.setCreateTime(answerDate); answers.add(answer14); DwAnswer answer15 = new DwAnswer(); Cell cell48 = row.getCell(48); @@ -1133,12 +1259,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer15.setInfoId(dwInfo.getId()); answer15.setQuestionId(56L); + answer15.setCreateTime(answerDate); answers.add(answer15); DwAnswer answer16 = new DwAnswer(); Cell cell50 = row.getCell(50); answer16.setAnswer(cell50.getStringCellValue()); answer16.setInfoId(dwInfo.getId()); answer16.setQuestionId(57L); + answer16.setCreateTime(answerDate); answers.add(answer16); DwAnswer answer17 = new DwAnswer(); Cell cell51 = row.getCell(51); @@ -1155,6 +1283,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer181.setAnswer(cell55.getStringCellValue()); answer181.setInfoId(dwInfo.getId()); answer181.setQuestionId(59L); + answer181.setCreateTime(answerDate); answers.add(answer181); } Cell cell56 = row.getCell(56); @@ -1163,6 +1292,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer181.setAnswer(cell56.getStringCellValue()); answer181.setInfoId(dwInfo.getId()); answer181.setQuestionId(59L); + answer181.setCreateTime(answerDate); answers.add(answer181); } Cell cell57 = row.getCell(57); @@ -1171,6 +1301,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer182.setAnswer(cell57.getStringCellValue()); answer182.setInfoId(dwInfo.getId()); answer182.setQuestionId(59L); + answer182.setCreateTime(answerDate); answers.add(answer182); } Cell cell58 = row.getCell(58); @@ -1179,6 +1310,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer183.setAnswer(cell58.getStringCellValue()); answer183.setInfoId(dwInfo.getId()); answer183.setQuestionId(59L); + answer183.setCreateTime(answerDate); answers.add(answer183); } Cell cell59 = row.getCell(59); @@ -1187,6 +1319,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer184.setAnswer(cell59.getStringCellValue()); answer184.setInfoId(dwInfo.getId()); answer184.setQuestionId(59L); + answer184.setCreateTime(answerDate); answers.add(answer184); } Cell cell60 = row.getCell(60); @@ -1195,6 +1328,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer185.setAnswer(cell60.getStringCellValue()); answer185.setInfoId(dwInfo.getId()); answer185.setQuestionId(59L); + answer185.setCreateTime(answerDate); answers.add(answer185); } Cell cell62 = row.getCell(62); @@ -1203,6 +1337,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer186.setAnswer(cell62.getStringCellValue()); answer186.setInfoId(dwInfo.getId()); answer186.setQuestionId(59L); + answer186.setCreateTime(answerDate); answers.add(answer186); } Cell cell64 = row.getCell(64); @@ -1211,6 +1346,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer192.setAnswer(cell64.getStringCellValue()); answer192.setInfoId(dwInfo.getId()); answer192.setQuestionId(60L); + answer192.setCreateTime(answerDate); answers.add(answer192); } Cell cell65 = row.getCell(65); @@ -1219,6 +1355,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer193.setAnswer(cell65.getStringCellValue()); answer193.setInfoId(dwInfo.getId()); answer193.setQuestionId(60L); + answer193.setCreateTime(answerDate); answers.add(answer193); } Cell cell66 = row.getCell(66); @@ -1227,6 +1364,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer194.setAnswer(cell66.getStringCellValue()); answer194.setInfoId(dwInfo.getId()); answer194.setQuestionId(60L); + answer194.setCreateTime(answerDate); answers.add(answer194); } Cell cell67 = row.getCell(67); @@ -1235,6 +1373,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer195.setAnswer(cell67.getStringCellValue()); answer195.setInfoId(dwInfo.getId()); answer195.setQuestionId(60L); + answer195.setCreateTime(answerDate); answers.add(answer195); } Cell cell68 = row.getCell(68); @@ -1243,6 +1382,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer196.setAnswer(cell68.getStringCellValue()); answer196.setInfoId(dwInfo.getId()); answer196.setQuestionId(60L); + answer196.setCreateTime(answerDate); answers.add(answer196); } Cell cell69 = row.getCell(69); @@ -1251,6 +1391,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer197.setAnswer(cell69.getStringCellValue()); answer197.setInfoId(dwInfo.getId()); answer197.setQuestionId(60L); + answer197.setCreateTime(answerDate); answers.add(answer197); } Cell cell72 = row.getCell(72); @@ -1259,6 +1400,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer201.setAnswer(cell72.getStringCellValue()); answer201.setInfoId(dwInfo.getId()); answer201.setQuestionId(61L); + answer201.setCreateTime(answerDate); answers.add(answer201); } Cell cell73 = row.getCell(73); @@ -1267,6 +1409,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer202.setAnswer(cell73.getStringCellValue()); answer202.setInfoId(dwInfo.getId()); answer202.setQuestionId(61L); + answer202.setCreateTime(answerDate); answers.add(answer202); } Cell cell74 = row.getCell(74); @@ -1275,6 +1418,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer203.setAnswer(cell74.getStringCellValue()); answer203.setInfoId(dwInfo.getId()); answer203.setQuestionId(61L); + answer203.setCreateTime(answerDate); answers.add(answer203); } Cell cell75 = row.getCell(75); @@ -1283,6 +1427,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer204.setAnswer(cell75.getStringCellValue()); answer204.setInfoId(dwInfo.getId()); answer204.setQuestionId(61L); + answer204.setCreateTime(answerDate); answers.add(answer204); } Cell cell76 = row.getCell(76); @@ -1291,6 +1436,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer205.setAnswer(cell76.getStringCellValue()); answer205.setInfoId(dwInfo.getId()); answer205.setQuestionId(61L); + answer205.setCreateTime(answerDate); answers.add(answer205); } Cell cell77 = row.getCell(77); @@ -1299,6 +1445,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer206.setAnswer(cell77.getStringCellValue()); answer206.setInfoId(dwInfo.getId()); answer206.setQuestionId(61L); + answer206.setCreateTime(answerDate); answers.add(answer206); } Cell cell79 = row.getCell(79); @@ -1307,6 +1454,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer207.setAnswer(cell79.getStringCellValue()); answer207.setInfoId(dwInfo.getId()); answer207.setQuestionId(61L); + answer207.setCreateTime(answerDate); answers.add(answer207); } DwAnswer answer21 = new DwAnswer(); @@ -1314,12 +1462,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer21.setAnswer(cell80.getStringCellValue()); answer21.setInfoId(dwInfo.getId()); answer21.setQuestionId(62L); + answer21.setCreateTime(answerDate); answers.add(answer21); DwAnswer answer22 = new DwAnswer(); Cell cell82 = row.getCell(82); answer22.setAnswer(cell82.getStringCellValue()); answer22.setInfoId(dwInfo.getId()); answer22.setQuestionId(63L); + answer22.setCreateTime(answerDate); answers.add(answer22); DwAnswer answer23 = new DwAnswer(); Cell cell83 = row.getCell(83); @@ -1332,6 +1482,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer23.setInfoId(dwInfo.getId()); answer23.setQuestionId(64L); + answer23.setCreateTime(answerDate); answers.add(answer23); } DwAnswer answer24 = new DwAnswer(); @@ -1339,6 +1490,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer24.setAnswer(cell85.getStringCellValue()); answer24.setInfoId(dwInfo.getId()); answer24.setQuestionId(65L); + answer24.setCreateTime(answerDate); answers.add(answer24); }else if (dwInfo.getId() == 3) { DwAnswer answer1 = new DwAnswer(); @@ -1346,38 +1498,43 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer1.setAnswer(cell15.getStringCellValue()); answer1.setInfoId(dwInfo.getId()); answer1.setQuestionId(66L); + answer1.setCreateTime(answerDate); answers.add(answer1); DwAnswer answer2 = new DwAnswer(); Cell cell16 = row.getCell(16); answer2.setAnswer(cell16.getStringCellValue()); answer2.setInfoId(dwInfo.getId()); answer2.setQuestionId(67L); + answer2.setCreateTime(answerDate); answers.add(answer2); DwAnswer answer3 = new DwAnswer(); Cell cell17 = row.getCell(17); answer3.setAnswer(cell17.getStringCellValue()); answer3.setInfoId(dwInfo.getId()); answer3.setQuestionId(68L); + answer3.setCreateTime(answerDate); answers.add(answer3); DwAnswer answer4 = new DwAnswer(); Cell cell18 = row.getCell(18); answer4.setAnswer(cell18.getStringCellValue()); answer4.setInfoId(dwInfo.getId()); answer4.setQuestionId(69L); + answer4.setCreateTime(answerDate); answers.add(answer4); DwAnswer answer5 = new DwAnswer(); Cell cell19 = row.getCell(19); answer5.setAnswer(cell19.getStringCellValue()); answer5.setInfoId(dwInfo.getId()); answer5.setQuestionId(72L); + answer5.setCreateTime(answerDate); answers.add(answer5); - Cell cell20 = row.getCell(20); if (cell20 != null && StringUtils.isNotEmpty(cell20.getStringCellValue())) { DwAnswer answer6 = new DwAnswer(); answer6.setAnswer(cell20.getStringCellValue()); answer6.setInfoId(dwInfo.getId()); answer6.setQuestionId(71L); + answer6.setCreateTime(answerDate); answers.add(answer6); } DwAnswer answer7 = new DwAnswer(); @@ -1385,12 +1542,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer7.setAnswer(cell21.getStringCellValue()); answer7.setInfoId(dwInfo.getId()); answer7.setQuestionId(73L); + answer7.setCreateTime(answerDate); answers.add(answer7); DwAnswer answer8 = new DwAnswer(); Cell cell22 = row.getCell(22); answer8.setAnswer(cell22.getStringCellValue()); answer8.setInfoId(dwInfo.getId()); answer8.setQuestionId(74L); + answer8.setCreateTime(answerDate); answers.add(answer8); Cell cell24 = row.getCell(24); if (cell24 != null && StringUtils.isNotEmpty(cell24.getStringCellValue())){ @@ -1398,6 +1557,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer101.setAnswer(cell24.getStringCellValue()); answer101.setInfoId(dwInfo.getId()); answer101.setQuestionId(75L); + answer101.setCreateTime(answerDate); answers.add(answer101); } Cell cell25 = row.getCell(25); @@ -1406,6 +1566,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer102.setAnswer(cell25.getStringCellValue()); answer102.setInfoId(dwInfo.getId()); answer102.setQuestionId(75L); + answer102.setCreateTime(answerDate); answers.add(answer102); } Cell cell26 = row.getCell(26); @@ -1414,6 +1575,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer103.setAnswer(cell26.getStringCellValue()); answer103.setInfoId(dwInfo.getId()); answer103.setQuestionId(75L); + answer103.setCreateTime(answerDate); answers.add(answer103); } Cell cell27 = row.getCell(27); @@ -1422,6 +1584,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer104.setAnswer(cell27.getStringCellValue()); answer104.setInfoId(dwInfo.getId()); answer104.setQuestionId(75L); + answer104.setCreateTime(answerDate); answers.add(answer104); } Cell cell28 = row.getCell(28); @@ -1430,6 +1593,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer105.setAnswer(cell28.getStringCellValue()); answer105.setInfoId(dwInfo.getId()); answer105.setQuestionId(75L); + answer105.setCreateTime(answerDate); answers.add(answer105); } Cell cell30 = row.getCell(30); @@ -1438,6 +1602,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer106.setAnswer(cell30.getStringCellValue()); answer106.setInfoId(dwInfo.getId()); answer106.setQuestionId(75L); + answer106.setCreateTime(answerDate); answers.add(answer106); } Cell cell32 = row.getCell(32); @@ -1446,6 +1611,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer107.setAnswer(cell32.getStringCellValue()); answer107.setInfoId(dwInfo.getId()); answer107.setQuestionId(75L); + answer107.setCreateTime(answerDate); answers.add(answer107); } DwAnswer answer11 = new DwAnswer(); @@ -1458,12 +1624,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer11.setInfoId(dwInfo.getId()); answer11.setQuestionId(76L); + answer11.setCreateTime(answerDate); answers.add(answer11); DwAnswer answer12 = new DwAnswer(); Cell cell35 = row.getCell(35); answer12.setAnswer(cell35.getStringCellValue()); answer12.setInfoId(dwInfo.getId()); answer12.setQuestionId(77L); + answer12.setCreateTime(answerDate); answers.add(answer12); DwAnswer answer13 = new DwAnswer(); Cell cell36 = row.getCell(36); @@ -1475,12 +1643,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer13.setInfoId(dwInfo.getId()); answer13.setQuestionId(78L); + answer13.setCreateTime(answerDate); answers.add(answer13); DwAnswer answer14 = new DwAnswer(); Cell cell38 = row.getCell(38); answer14.setAnswer(cell38.getStringCellValue()); answer14.setInfoId(dwInfo.getId()); answer14.setQuestionId(79L); + answer14.setCreateTime(answerDate); answers.add(answer14); Cell cell40 = row.getCell(40); Cell cell41 = row.getCell(41); @@ -1493,12 +1663,15 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer151.setAnswer(cell40.getStringCellValue()); answer151.setInfoId(dwInfo.getId()); answer151.setQuestionId(80L); + answer151.setCreateTime(answerDate); + answers.add(answer151); } if (cell41 != null && StringUtils.isNotEmpty(cell41.getStringCellValue())){ DwAnswer answer152 = new DwAnswer(); answer152.setAnswer(cell41.getStringCellValue()); answer152.setInfoId(dwInfo.getId()); answer152.setQuestionId(80L); + answer152.setCreateTime(answerDate); answers.add(answer152); } if (cell42 != null && StringUtils.isNotEmpty(cell42.getStringCellValue())){ @@ -1506,6 +1679,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer153.setAnswer(cell42.getStringCellValue()); answer153.setInfoId(dwInfo.getId()); answer153.setQuestionId(80L); + answer153.setCreateTime(answerDate); answers.add(answer153); } if (cell43 != null && StringUtils.isNotEmpty(cell43.getStringCellValue())){ @@ -1513,6 +1687,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer154.setAnswer(cell43.getStringCellValue()); answer154.setInfoId(dwInfo.getId()); answer154.setQuestionId(80L); + answer154.setCreateTime(answerDate); answers.add(answer154); } if (cell44 != null && StringUtils.isNotEmpty(cell44.getStringCellValue())){ @@ -1520,6 +1695,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer155.setAnswer(cell44.getStringCellValue()); answer155.setInfoId(dwInfo.getId()); answer155.setQuestionId(80L); + answer155.setCreateTime(answerDate); answers.add(answer155); } if (cell46 != null && StringUtils.isNotEmpty(cell46.getStringCellValue())){ @@ -1527,6 +1703,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer156.setAnswer(cell46.getStringCellValue()); answer156.setInfoId(dwInfo.getId()); answer156.setQuestionId(80L); + answer156.setCreateTime(answerDate); answers.add(answer156); } DwAnswer answer16 = new DwAnswer(); @@ -1534,6 +1711,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer16.setAnswer(cell47.getStringCellValue()); answer16.setInfoId(dwInfo.getId()); answer16.setQuestionId(81L); + answer16.setCreateTime(answerDate); answers.add(answer16); Cell cell49 = row.getCell(49); if (cell49!=null && StringUtils.isNotEmpty(cell49.getStringCellValue())){ @@ -1541,6 +1719,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer171.setAnswer(cell49.getStringCellValue()); answer171.setInfoId(dwInfo.getId()); answer171.setQuestionId(82L); + answer171.setCreateTime(answerDate); answers.add(answer171); } Cell cell50 = row.getCell(50); @@ -1549,6 +1728,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer172.setAnswer(cell50.getStringCellValue()); answer172.setInfoId(dwInfo.getId()); answer172.setQuestionId(82L); + answer172.setCreateTime(answerDate); answers.add(answer172); } Cell cell51 = row.getCell(51); @@ -1557,6 +1737,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer173.setAnswer(cell51.getStringCellValue()); answer173.setInfoId(dwInfo.getId()); answer173.setQuestionId(82L); + answer173.setCreateTime(answerDate); answers.add(answer173); } Cell cell52 = row.getCell(52); @@ -1565,6 +1746,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer174.setAnswer(cell52.getStringCellValue()); answer174.setInfoId(dwInfo.getId()); answer174.setQuestionId(82L); + answer174.setCreateTime(answerDate); answers.add(answer174); } Cell cell54 = row.getCell(54); @@ -1573,6 +1755,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer175.setAnswer(cell54.getStringCellValue()); answer175.setInfoId(dwInfo.getId()); answer175.setQuestionId(82L); + answer175.setCreateTime(answerDate); answers.add(answer175); } Cell cell56 = row.getCell(56); @@ -1581,6 +1764,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer181.setAnswer(cell56.getStringCellValue()); answer181.setInfoId(dwInfo.getId()); answer181.setQuestionId(83L); + answer181.setCreateTime(answerDate); answers.add(answer181); } Cell cell57 = row.getCell(57); @@ -1589,6 +1773,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer182.setAnswer(cell57.getStringCellValue()); answer182.setInfoId(dwInfo.getId()); answer182.setQuestionId(83L); + answer182.setCreateTime(answerDate); answers.add(answer182); } Cell cell58 = row.getCell(58); @@ -1597,6 +1782,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer183.setAnswer(cell58.getStringCellValue()); answer183.setInfoId(dwInfo.getId()); answer183.setQuestionId(83L); + answer183.setCreateTime(answerDate); answers.add(answer183); } Cell cell59 = row.getCell(59); @@ -1605,6 +1791,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer184.setAnswer(cell59.getStringCellValue()); answer184.setInfoId(dwInfo.getId()); answer184.setQuestionId(83L); + answer184.setCreateTime(answerDate); answers.add(answer184); } Cell cell60 = row.getCell(60); @@ -1613,6 +1800,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer185.setAnswer(cell60.getStringCellValue()); answer185.setInfoId(dwInfo.getId()); answer185.setQuestionId(83L); + answer185.setCreateTime(answerDate); answers.add(answer185); } Cell cell61 = row.getCell(61); @@ -1621,6 +1809,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer186.setAnswer(cell61.getStringCellValue()); answer186.setInfoId(dwInfo.getId()); answer186.setQuestionId(83L); + answer186.setCreateTime(answerDate); answers.add(answer186); } Cell cell63 = row.getCell(63); @@ -1629,6 +1818,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer191.setAnswer(cell63.getStringCellValue()); answer191.setInfoId(dwInfo.getId()); answer191.setQuestionId(84L); + answer191.setCreateTime(answerDate); answers.add(answer191); } Cell cell64 = row.getCell(64); @@ -1637,6 +1827,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer192.setAnswer(cell64.getStringCellValue()); answer192.setInfoId(dwInfo.getId()); answer192.setQuestionId(84L); + answer192.setCreateTime(answerDate); answers.add(answer192); } Cell cell65 = row.getCell(65); @@ -1645,6 +1836,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer193.setAnswer(cell65.getStringCellValue()); answer193.setInfoId(dwInfo.getId()); answer193.setQuestionId(84L); + answer193.setCreateTime(answerDate); answers.add(answer193); } Cell cell66 = row.getCell(66); @@ -1653,6 +1845,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer194.setAnswer(cell66.getStringCellValue()); answer194.setInfoId(dwInfo.getId()); answer194.setQuestionId(84L); + answer194.setCreateTime(answerDate); answers.add(answer194); } Cell cell67 = row.getCell(67); @@ -1661,6 +1854,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer195.setAnswer(cell67.getStringCellValue()); answer195.setInfoId(dwInfo.getId()); answer195.setQuestionId(84L); + answer195.setCreateTime(answerDate); answers.add(answer195); } Cell cell68 = row.getCell(68); @@ -1669,6 +1863,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer196.setAnswer(cell68.getStringCellValue()); answer196.setInfoId(dwInfo.getId()); answer196.setQuestionId(84L); + answer196.setCreateTime(answerDate); answers.add(answer196); } DwAnswer answer20 = new DwAnswer(); @@ -1676,6 +1871,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer20.setAnswer(cell69.getStringCellValue()); answer20.setInfoId(dwInfo.getId()); answer20.setQuestionId(85L); + answer20.setCreateTime(answerDate); answers.add(answer20); Cell cell71 = row.getCell(71); Cell cell72 = row.getCell(72); @@ -1688,6 +1884,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer211.setAnswer(cell71.getStringCellValue()); answer211.setInfoId(dwInfo.getId()); answer211.setQuestionId(86L); + answer211.setCreateTime(answerDate); answers.add(answer211); } if (cell72 != null && StringUtils.isNotEmpty(cell72.getStringCellValue())){ @@ -1695,6 +1892,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer212.setAnswer(cell72.getStringCellValue()); answer212.setInfoId(dwInfo.getId()); answer212.setQuestionId(86L); + answer212.setCreateTime(answerDate); answers.add(answer212); } if (cell73 != null && StringUtils.isNotEmpty(cell73.getStringCellValue())){ @@ -1702,6 +1900,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer213.setAnswer(cell73.getStringCellValue()); answer213.setInfoId(dwInfo.getId()); answer213.setQuestionId(86L); + answer213.setCreateTime(answerDate); answers.add(answer213); } if (cell74 != null && StringUtils.isNotEmpty(cell74.getStringCellValue())){ @@ -1709,6 +1908,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer214.setAnswer(cell74.getStringCellValue()); answer214.setInfoId(dwInfo.getId()); answer214.setQuestionId(86L); + answer214.setCreateTime(answerDate); answers.add(answer214); } if (cell75 != null && StringUtils.isNotEmpty(cell75.getStringCellValue())){ @@ -1716,6 +1916,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer215.setAnswer(cell75.getStringCellValue()); answer215.setInfoId(dwInfo.getId()); answer215.setQuestionId(86L); + answer215.setCreateTime(answerDate); answers.add(answer215); } if (cell77 != null && StringUtils.isNotEmpty(cell77.getStringCellValue())){ @@ -1723,6 +1924,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer216.setAnswer(cell77.getStringCellValue()); answer216.setInfoId(dwInfo.getId()); answer216.setQuestionId(86L); + answer216.setCreateTime(answerDate); answers.add(answer216); } DwAnswer answer22 = new DwAnswer(); @@ -1730,6 +1932,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer22.setAnswer(cell78.getStringCellValue()); answer22.setInfoId(dwInfo.getId()); answer22.setQuestionId(87L); + answer22.setCreateTime(answerDate); answers.add(answer22); }else if (dwInfo.getId().intValue() == 4){ DwAnswer answer1 = new DwAnswer(); @@ -1737,12 +1940,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer1.setAnswer(cell15.getStringCellValue()); answer1.setInfoId(dwInfo.getId()); answer1.setQuestionId(88L); + answer1.setCreateTime(answerDate); answers.add(answer1); DwAnswer answer2 = new DwAnswer(); Cell cell16 = row.getCell(16); answer2.setAnswer(cell16.getStringCellValue()); answer2.setInfoId(dwInfo.getId()); answer2.setQuestionId(89L); + answer2.setCreateTime(answerDate); answers.add(answer2); DwAnswer answer3 = new DwAnswer(); Cell cell17 = row.getCell(17); @@ -1754,6 +1959,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer3.setInfoId(dwInfo.getId()); answer3.setQuestionId(90L); + answer3.setCreateTime(answerDate); answers.add(answer3); Cell cell19 = row.getCell(19); if (cell19 != null && StringUtils.isNotEmpty(cell19.getStringCellValue())){ @@ -1761,6 +1967,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer41.setAnswer(cell19.getStringCellValue()); answer41.setInfoId(dwInfo.getId()); answer41.setQuestionId(91L); + answer41.setCreateTime(answerDate); answers.add(answer41); } Cell cell20 = row.getCell(20); @@ -1769,6 +1976,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer42.setAnswer(cell20.getStringCellValue()); answer42.setInfoId(dwInfo.getId()); answer42.setQuestionId(91L); + answer42.setCreateTime(answerDate); answers.add(answer42); } Cell cell21 = row.getCell(21); @@ -1777,6 +1985,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer43.setAnswer(cell21.getStringCellValue()); answer43.setInfoId(dwInfo.getId()); answer43.setQuestionId(91L); + answer43.setCreateTime(answerDate); answers.add(answer43); } Cell cell22 = row.getCell(22); @@ -1785,6 +1994,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer44.setAnswer(cell22.getStringCellValue()); answer44.setInfoId(dwInfo.getId()); answer44.setQuestionId(91L); + answer44.setCreateTime(answerDate); answers.add(answer44); } Cell cell24 = row.getCell(24); @@ -1793,6 +2003,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer201.setAnswer(cell24.getStringCellValue()); answer201.setInfoId(dwInfo.getId()); answer201.setQuestionId(107L); + answer201.setCreateTime(answerDate); answers.add(answer201); } Cell cell25 = row.getCell(25); @@ -1801,6 +2012,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer202.setAnswer(cell25.getStringCellValue()); answer202.setInfoId(dwInfo.getId()); answer202.setQuestionId(107L); + answer202.setCreateTime(answerDate); answers.add(answer202); } Cell cell26 = row.getCell(26); @@ -1809,6 +2021,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer203.setAnswer(cell26.getStringCellValue()); answer203.setInfoId(dwInfo.getId()); answer203.setQuestionId(107L); + answer203.setCreateTime(answerDate); answers.add(answer203); } Cell cell28 = row.getCell(28); @@ -1817,6 +2030,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer211.setAnswer(cell28.getStringCellValue()); answer211.setInfoId(dwInfo.getId()); answer211.setQuestionId(108L); + answer211.setCreateTime(answerDate); answers.add(answer211); } Cell cell29 = row.getCell(29); @@ -1825,6 +2039,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer212.setAnswer(cell29.getStringCellValue()); answer212.setInfoId(dwInfo.getId()); answer212.setQuestionId(108L); + answer212.setCreateTime(answerDate); answers.add(answer212); } Cell cell30 = row.getCell(30); @@ -1833,6 +2048,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer213.setAnswer(cell30.getStringCellValue()); answer213.setInfoId(dwInfo.getId()); answer213.setQuestionId(108L); + answer213.setCreateTime(answerDate); answers.add(answer213); } Cell cell31 = row.getCell(31); @@ -1841,6 +2057,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer214.setAnswer(cell31.getStringCellValue()); answer214.setInfoId(dwInfo.getId()); answer214.setQuestionId(108L); + answer214.setCreateTime(answerDate); answers.add(answer214); } Cell cell32 = row.getCell(32); @@ -1849,6 +2066,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer215.setAnswer(cell32.getStringCellValue()); answer215.setInfoId(dwInfo.getId()); answer215.setQuestionId(108L); + answer215.setCreateTime(answerDate); answers.add(answer215); } Cell cell33 = row.getCell(33); @@ -1857,6 +2075,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer216.setAnswer(cell33.getStringCellValue()); answer216.setInfoId(dwInfo.getId()); answer216.setQuestionId(108L); + answer216.setCreateTime(answerDate); answers.add(answer216); } Cell cell34 = row.getCell(34); @@ -1865,6 +2084,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer51.setAnswer(cell34.getStringCellValue()); answer51.setInfoId(dwInfo.getId()); answer51.setQuestionId(108L); + answer51.setCreateTime(answerDate); answers.add(answer51); } Cell cell36 = row.getCell(36); @@ -1873,6 +2093,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer52.setAnswer(cell36.getStringCellValue()); answer52.setInfoId(dwInfo.getId()); answer52.setQuestionId(92L); + answer52.setCreateTime(answerDate); answers.add(answer52); } Cell cell37 = row.getCell(37); @@ -1881,6 +2102,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer53.setAnswer(cell37.getStringCellValue()); answer53.setInfoId(dwInfo.getId()); answer53.setQuestionId(92L); + answer53.setCreateTime(answerDate); answers.add(answer53); } Cell cell38 = row.getCell(38); @@ -1889,6 +2111,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer54.setAnswer(cell38.getStringCellValue()); answer54.setInfoId(dwInfo.getId()); answer54.setQuestionId(92L); + answer54.setCreateTime(answerDate); answers.add(answer54); } Cell cell39 = row.getCell(39); @@ -1897,6 +2120,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer55.setAnswer(cell39.getStringCellValue()); answer55.setInfoId(dwInfo.getId()); answer55.setQuestionId(92L); + answer55.setCreateTime(answerDate); answers.add(answer55); } Cell cell40 = row.getCell(40); @@ -1905,6 +2129,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer56.setAnswer(cell40.getStringCellValue()); answer56.setInfoId(dwInfo.getId()); answer56.setQuestionId(92L); + answer56.setCreateTime(answerDate); answers.add(answer56); } Cell cell41 = row.getCell(41); @@ -1913,6 +2138,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer57.setAnswer(cell41.getStringCellValue()); answer57.setInfoId(dwInfo.getId()); answer57.setQuestionId(92L); + answer57.setCreateTime(answerDate); answers.add(answer57); } Cell cell42 = row.getCell(42); @@ -1921,6 +2147,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer58.setAnswer(cell42.getStringCellValue()); answer58.setInfoId(dwInfo.getId()); answer58.setQuestionId(92L); + answer58.setCreateTime(answerDate); answers.add(answer58); } Cell cell43 = row.getCell(43); @@ -1928,36 +2155,42 @@ public class DwQuestionServiceImpl implements IDwQuestionService answer6.setAnswer(cell43.getStringCellValue()); answer6.setInfoId(dwInfo.getId()); answer6.setQuestionId(93L); + answer6.setCreateTime(answerDate); answers.add(answer6); DwAnswer answer7 = new DwAnswer(); Cell cell44 = row.getCell(44); answer7.setAnswer(cell44.getStringCellValue()); answer7.setInfoId(dwInfo.getId()); answer7.setQuestionId(94L); + answer7.setCreateTime(answerDate); answers.add(answer7); DwAnswer answer8 = new DwAnswer(); Cell cell45 = row.getCell(45); answer8.setAnswer(cell45.getStringCellValue()); answer8.setInfoId(dwInfo.getId()); answer8.setQuestionId(95L); + answer8.setCreateTime(answerDate); answers.add(answer8); DwAnswer answer9 = new DwAnswer(); Cell cell46 = row.getCell(46); answer9.setAnswer(cell46.getStringCellValue()); answer9.setInfoId(dwInfo.getId()); answer9.setQuestionId(96L); + answer9.setCreateTime(answerDate); answers.add(answer9); DwAnswer answer10 = new DwAnswer(); Cell cell47 = row.getCell(47); answer10.setAnswer(cell47.getStringCellValue()); answer10.setInfoId(dwInfo.getId()); answer10.setQuestionId(97L); + answer10.setCreateTime(answerDate); answers.add(answer10); DwAnswer answer11 = new DwAnswer(); Cell cell48 = row.getCell(48); answer11.setAnswer(cell48.getStringCellValue()); answer11.setInfoId(dwInfo.getId()); answer11.setQuestionId(98L); + answer11.setCreateTime(answerDate); answers.add(answer11); DwAnswer answer12 = new DwAnswer(); Cell cell49 = row.getCell(49); @@ -1983,6 +2216,7 @@ public class DwQuestionServiceImpl implements IDwQuestionService + "," + cell61.getStringCellValue() + "," + cell62.getStringCellValue()); answer12.setInfoId(dwInfo.getId()); answer12.setQuestionId(99L); + answer12.setCreateTime(answerDate); answers.add(answer12); DwAnswer answer13 = new DwAnswer(); Cell cell63 = row.getCell(63); @@ -1994,12 +2228,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer13.setInfoId(dwInfo.getId()); answer13.setQuestionId(100L); + answer13.setCreateTime(answerDate); answers.add(answer13); DwAnswer answer14 = new DwAnswer(); Cell cell65 = row.getCell(65); answer14.setAnswer(cell65.getStringCellValue()); answer14.setInfoId(dwInfo.getId()); answer14.setQuestionId(101L); + answer14.setCreateTime(answerDate); answers.add(answer14); DwAnswer answer15 = new DwAnswer(); Cell cell66 = row.getCell(66); @@ -2011,18 +2247,21 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer15.setInfoId(dwInfo.getId()); answer15.setQuestionId(102L); + answer15.setCreateTime(answerDate); answers.add(answer15); DwAnswer answer16 = new DwAnswer(); Cell cell68 = row.getCell(68); answer16.setAnswer(cell68.getStringCellValue()); answer16.setInfoId(dwInfo.getId()); answer16.setQuestionId(103L); + answer16.setCreateTime(answerDate); answers.add(answer16); DwAnswer answer17 = new DwAnswer(); Cell cell69 = row.getCell(69); answer17.setAnswer(cell69.getStringCellValue()); answer17.setInfoId(dwInfo.getId()); answer17.setQuestionId(104L); + answer17.setCreateTime(answerDate); answers.add(answer17); DwAnswer answer18 = new DwAnswer(); Cell cell70 = row.getCell(70); @@ -2034,12 +2273,14 @@ public class DwQuestionServiceImpl implements IDwQuestionService } answer18.setInfoId(dwInfo.getId()); answer18.setQuestionId(105L); + answer18.setCreateTime(answerDate); answers.add(answer18); DwAnswer answer19 = new DwAnswer(); Cell cell72 = row.getCell(72); answer19.setAnswer(cell72.getStringCellValue()); answer19.setInfoId(dwInfo.getId()); answer19.setQuestionId(106L); + answer19.setCreateTime(answerDate); answers.add(answer19); }else { return -2; diff --git a/ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml b/ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml index a4d5f75..d9df9de 100644 --- a/ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml +++ b/ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml @@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" insert into dw_answer (info_id, question_id, answer,create_time) VALUES - (#{item.infoId},#{item.questionId},#{item.answer},SYSDATE()) + (#{item.infoId},#{item.questionId},#{item.answer},#{item.createTime})