|
|
|
@@ -1,13 +1,16 @@ |
|
|
|
package com.iformall.domain.po; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONArray; |
|
|
|
import com.aliyun.openservices.shade.com.alibaba.fastjson.JSON; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
|
|
import com.iformall.domain.po.base.TenantEntity; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
|
import lombok.EqualsAndHashCode; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
@@ -45,8 +48,15 @@ public class WxQuestionOneselfTopic extends TenantEntity { |
|
|
|
} |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="答案数组",name="answers") |
|
|
|
private List<Map<String,Object>> answers; |
|
|
|
@ApiModelProperty(value="答案数组",name="answers") |
|
|
|
private List<Map> answers; |
|
|
|
|
|
|
|
public List<Map> getAnswers(){ |
|
|
|
if((answers == null || answers.size() == 0) && StringUtils.isNotBlank(answer)){ |
|
|
|
answers = JSONArray.parseArray(answer, Map.class); |
|
|
|
} |
|
|
|
return answers; |
|
|
|
} |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "类型(1:单选,2:多选)", name = "type") |
|
|
|
private Integer type; |
|
|
|
|