浏览代码

多选题如果有输入项数据导出对齐

keyuan 4 年之前
父节点
当前提交
11c808e853
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/main/java/com/key/dwsurvey/service/impl/SurveyAnswerManagerImpl.java

+ 3 - 1
src/main/java/com/key/dwsurvey/service/impl/SurveyAnswerManagerImpl.java

@@ -354,7 +354,9 @@ public class SurveyAnswerManagerImpl extends
 					answerOptionName = answerOptionName.replace(" "," ");
 					exportUtil.setCell(cellIndex++, answerOptionName);
 
-					if(isNote) exportUtil.setCell(cellIndex++, answerOtherText);
+//					if(isNote) exportUtil.setCell(cellIndex++, answerOtherText);
+					Integer isNote1 = quCheckbox.getIsNote();
+					if(isNote1!=null && isNote1==1) exportUtil.setCell(cellIndex++, answerOtherText);
 				}
 			} else if (quType == QuType.FILLBLANK) {// 填空题
 				AnFillblank anFillblank=question.getAnFillblank();