营养小知识提问优化
This commit is contained in:
		| @@ -26,10 +26,14 @@ public class SysAskNutritionQuestion extends BaseEntity | ||||
|     @Excel(name = "问题内容") | ||||
|     private String question; | ||||
|  | ||||
|     /** 是否已回答,0未回答,1已回答 */ | ||||
|     @Excel(name = "是否已回答,0未回答,1已回答") | ||||
|     /** 问题状态,0未回答 1已回答  2已关闭 */ | ||||
|     @Excel(name = "问题状态") | ||||
|     private Integer replyFlag; | ||||
|  | ||||
|     /** 解答之后对应的营养知识ID */ | ||||
|     @Excel(name = "解答之后对应的营养知识ID") | ||||
|     private Long nutritionQuestionId; | ||||
|  | ||||
|     /** 删除标识 0未删除 1已删除 */ | ||||
|     private Integer delFlag; | ||||
| } | ||||
| @@ -42,4 +42,7 @@ public class SysNutritionQuestion extends BaseEntity | ||||
|  | ||||
|     /** 删除标识 0未删除 1已删除 */ | ||||
|     private Integer delFlag; | ||||
|  | ||||
|     //解答问题对应的ID | ||||
|     private Long askQuestionId; | ||||
| } | ||||
| @@ -9,6 +9,7 @@ | ||||
|         <result property="openid"    column="openid"    /> | ||||
|         <result property="question"    column="question"    /> | ||||
|         <result property="replyFlag"    column="reply_flag"    /> | ||||
|         <result property="nutritionQuestionId"    column="nutrition_question_id"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
| @@ -40,6 +41,7 @@ | ||||
|             <if test="openid != null">openid,</if> | ||||
|             <if test="question != null">question,</if> | ||||
|             <if test="replyFlag != null">reply_flag,</if> | ||||
|             <if test="nutritionQuestionId != null">nutrition_question_id,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
| @@ -50,6 +52,7 @@ | ||||
|             <if test="openid != null">#{openid},</if> | ||||
|             <if test="question != null">#{question},</if> | ||||
|             <if test="replyFlag != null">#{replyFlag},</if> | ||||
|             <if test="nutritionQuestionId != null">#{nutritionQuestionId},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
| @@ -64,6 +67,7 @@ | ||||
|             <if test="openid != null">openid = #{openid},</if> | ||||
|             <if test="question != null">question = #{question},</if> | ||||
|             <if test="replyFlag != null">reply_flag = #{replyFlag},</if> | ||||
|             <if test="nutritionQuestionId != null">nutrition_question_id = #{nutritionQuestionId},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user