打卡优化
This commit is contained in:
		| @@ -85,4 +85,11 @@ public interface SysWxUserLogMapper | ||||
|      */ | ||||
|     List<SysWxUserLog> getWxUserLogListByCustomerId(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 根据ID查询打卡详情 | ||||
|      * @param sysWxUserLog | ||||
|      * @return | ||||
|      */ | ||||
|     WxLogInfo getWxLogInfoDetailById(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
| } | ||||
| @@ -87,4 +87,11 @@ public interface ISysWxUserLogService | ||||
|      */ | ||||
|     List<SysWxUserLog> getWxUserLogListByCustomerId(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 根据ID查询打卡详情 | ||||
|      * @param sysWxUserLog | ||||
|      * @return | ||||
|      */ | ||||
|     WxLogInfo getWxLogInfoDetailById(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
| } | ||||
| @@ -133,4 +133,13 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService { | ||||
|         return sysWxUserLogMapper.getWxUserLogListByCustomerId(sysWxUserLog); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 根据ID查询打卡详情 | ||||
|      * @param sysWxUserLog | ||||
|      * @return | ||||
|      */ | ||||
|     public WxLogInfo getWxLogInfoDetailById(SysWxUserLog sysWxUserLog){ | ||||
|         return sysWxUserLogMapper.getWxLogInfoDetailById(sysWxUserLog); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -253,7 +253,7 @@ | ||||
|     <select id="getWxLogInfoList" 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, | ||||
|         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.suggest,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 | ||||
|         where wxlog.del_flag = 0 and (wxinfo.openid = #{openid} or wxinfo.phone = #{phone}) | ||||
|         order by wxlog.log_time desc | ||||
| @@ -290,4 +290,14 @@ | ||||
|         order by wxlog.log_time asc | ||||
|     </select> | ||||
|  | ||||
|     <!-- 根据openid和手机号查询对应打卡记录 --> | ||||
|     <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, | ||||
|         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 | ||||
|         FROM sys_wx_user_log wxlog left join sys_wx_user_info wxinfo on wxinfo.openid  = wxlog.openid | ||||
|         where wxlog.del_flag = 0 and wxlog.id = #{id} | ||||
|         order by wxlog.log_time desc | ||||
|     </select> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user