打卡查询增加id

This commit is contained in:
xiezhijun 2021-04-15 10:25:19 +08:00
parent 3b644ee3c1
commit 90b8101280
2 changed files with 12 additions and 1 deletions

View File

@ -11,6 +11,8 @@ import java.util.List;
public class WxLogInfo implements Serializable { public class WxLogInfo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private Long id;
private String date; private String date;
private Long water; private Long water;
@ -293,6 +295,14 @@ public class WxLogInfo implements Serializable {
this.remark = remark; this.remark = remark;
} }
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
@Override @Override
public String toString() { public String toString() {
return "WxLogInfo{" + return "WxLogInfo{" +

View File

@ -46,6 +46,7 @@
</resultMap> </resultMap>
<resultMap type="com.stdiet.custom.page.WxLogInfo" id="WxLogInfo"> <resultMap type="com.stdiet.custom.page.WxLogInfo" id="WxLogInfo">
<result property="id" column="id" />
<result property="weight" column="weight"/> <result property="weight" column="weight"/>
<result property="sleepTime" column="sleep_time"/> <result property="sleepTime" column="sleep_time"/>
<result property="wakeupTime" column="wakeup_time"/> <result property="wakeupTime" column="wakeup_time"/>
@ -293,7 +294,7 @@
<!-- 根据openid和手机号查询对应打卡记录 --> <!-- 根据openid和手机号查询对应打卡记录 -->
<select id="getWxLogInfoDetailById" parameterType="SysWxUserLog" resultMap="WxLogInfo"> <select id="getWxLogInfoDetailById" parameterType="SysWxUserLog" resultMap="WxLogInfo">
SELECT wxlog.weight,wxlog.log_time,wxlog.sleep_time, wxlog.wakeup_time,wxlog.defecation, wxlog.water, wxlog.insomnia,wxlog.sport,wxlog.diet, SELECT wxlog.id,wxlog.weight,wxlog.log_time,wxlog.sleep_time, wxlog.wakeup_time,wxlog.defecation, wxlog.water, wxlog.insomnia,wxlog.sport,wxlog.diet,
wxlog.emotion,wxlog.sly_eat_food,wxlog.constipation,wxlog.breakfast_images,wxlog.lunch_images,wxlog.dinner_images,wxlog.extra_meal_images,wxlog.body_images wxlog.emotion,wxlog.sly_eat_food,wxlog.constipation,wxlog.breakfast_images,wxlog.lunch_images,wxlog.dinner_images,wxlog.extra_meal_images,wxlog.body_images
,wxlog.remark,wxlog.execution_score,wxlog.comment ,wxlog.remark,wxlog.execution_score,wxlog.comment
FROM sys_wx_user_log wxlog left join sys_wx_user_info wxinfo on wxinfo.openid = wxlog.openid FROM sys_wx_user_log wxlog left join sys_wx_user_info wxinfo on wxinfo.openid = wxlog.openid