diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysWxUserLog.java b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysWxUserLog.java index 9f42757b5..be0f278c9 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysWxUserLog.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/domain/SysWxUserLog.java @@ -1,5 +1,7 @@ package com.stdiet.custom.domain; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.annotation.JsonFormat; import com.stdiet.common.annotation.Excel; import com.stdiet.common.core.domain.BaseEntity; @@ -206,6 +208,8 @@ public class SysWxUserLog extends BaseEntity { //图片预览路径 private Map> imagesUrl; + private JSONArray scaleBodyData; + //获取详情标识 private Integer nextFlag; diff --git a/stdiet-custom/src/main/java/com/stdiet/custom/page/WxLogInfo.java b/stdiet-custom/src/main/java/com/stdiet/custom/page/WxLogInfo.java index 5527525f9..e78d00aba 100644 --- a/stdiet-custom/src/main/java/com/stdiet/custom/page/WxLogInfo.java +++ b/stdiet-custom/src/main/java/com/stdiet/custom/page/WxLogInfo.java @@ -1,5 +1,6 @@ package com.stdiet.custom.page; +import com.alibaba.fastjson.JSONArray; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; @@ -125,6 +126,8 @@ public class WxLogInfo { private String healthManifesto; + private JSONArray scaleBodyData; + public void setDefecation(String defecation) { if (defecation.equals("Y") || defecation.equals("N")) { // this.defecation = defecation.equals("Y") ? "是" : "否"; diff --git a/stdiet-custom/src/main/resources/mapper/custom/SysWxUserLogMapper.xml b/stdiet-custom/src/main/resources/mapper/custom/SysWxUserLogMapper.xml index 6d8dd38a6..0a194a1d5 100644 --- a/stdiet-custom/src/main/resources/mapper/custom/SysWxUserLogMapper.xml +++ b/stdiet-custom/src/main/resources/mapper/custom/SysWxUserLogMapper.xml @@ -53,6 +53,7 @@ + @@ -98,6 +99,7 @@ + @@ -216,6 +218,7 @@ health_manifesto, del_flag, menstrual_period, + scale_body_data #{openid}, @@ -258,6 +261,7 @@ #{healthManifesto}, #{delFlag}, #{menstrualPeriod}, + #{scaleBodyData, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler}, @@ -301,6 +305,7 @@ health_manifesto = #{healthManifesto}, del_flag = #{delFlag}, menstrual_period = #{menstrualPeriod}, + scale_body_data = #{scaleBodyData, jdbcType=OTHER, typeHandler=com.stdiet.custom.typehandler.ArrayJsonHandler} where id = #{id} @@ -322,7 +327,7 @@ wxlog.water, wxlog.insomnia,wxlog.sport, wxlog.sport_desc,wxlog.diet, wxlog.diet_desc, wxlog.emotion, wxlog.emotion_desc,wxlog.sly_eat_food,wxlog.constipation,wxlog.ingredient_desc,wxlog.breakfast_images, wxlog.lunch_images,wxlog.dinner_images,wxlog.extra_meal_images,wxlog.body_images, wxlog.body_desc, - wxlog.remark,wxlog.execution_score,wxlog.comment, wxlog.health_manifesto, wxlog.menstrual_period + wxlog.remark,wxlog.execution_score,wxlog.comment, wxlog.health_manifesto, wxlog.menstrual_period, wxlog.scale_body_data FROM sys_wx_user_log wxlog where wxlog.del_flag = 0 and wxlog.openid = #{openid} order by wxlog.log_time asc