|
|
|
@@ -1,12 +1,16 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
@TableName(value = "wx_question_oneself_topic") |
|
|
|
@Data |
|
|
|
@@ -30,6 +34,20 @@ public class WxQuestionOneselfTopic extends TenantEntity { |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="答案数组",name="answer") |
|
|
|
private String answer; |
|
|
|
|
|
|
|
public String getAnswer(){ |
|
|
|
if(StringUtils.isBlank(answer) && answers != null && answers.size() > 0){ |
|
|
|
for(int i = 0;i < answers.size();i++){ |
|
|
|
answers.get(i).put("id",i); |
|
|
|
} |
|
|
|
answer = JSONArray.toJSONString(answers); |
|
|
|
} |
|
|
|
return answer; |
|
|
|
} |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="答案数组",name="answer") |
|
|
|
private List<Map<String,Object>> answers; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "类型(1:单选,2:多选)", name = "type") |
|
|
|
private Integer type; |
|
|
|
|
|
|
|
|