添加查询打卡情况接口
This commit is contained in:
		| @@ -1,6 +1,8 @@ | ||||
| package com.stdiet.custom.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
| import com.stdiet.custom.domain.SysWxUserLog; | ||||
| import com.stdiet.custom.page.WxLogInfo; | ||||
|  | ||||
| @@ -61,4 +63,7 @@ public interface SysWxUserLogMapper | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogByIds(String[] openids); | ||||
|  | ||||
|     public int checkWxLogInfoCount(String openid); | ||||
|  | ||||
| } | ||||
| @@ -1,9 +0,0 @@ | ||||
| package com.stdiet.custom.page; | ||||
|  | ||||
| import java.io.Serializable; | ||||
|  | ||||
| public class WxCurUserLogInfo implements Serializable { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -1,6 +1,8 @@ | ||||
| package com.stdiet.custom.service; | ||||
|  | ||||
| import java.util.List; | ||||
|  | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
| import com.stdiet.custom.domain.SysWxUserLog; | ||||
| import com.stdiet.custom.page.WxLogInfo; | ||||
|  | ||||
| @@ -61,4 +63,6 @@ public interface ISysWxUserLogService | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogById(String openid); | ||||
|  | ||||
|     public int checkWxLogInfoCount(String openid); | ||||
| } | ||||
| @@ -3,6 +3,7 @@ package com.stdiet.custom.service.impl; | ||||
| import java.util.List; | ||||
|  | ||||
| import com.stdiet.common.utils.DateUtils; | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
| import com.stdiet.custom.page.WxLogInfo; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| @@ -93,4 +94,11 @@ public class SysWxUserLogServiceImpl implements ISysWxUserLogService { | ||||
|     public int deleteSysWxUserLogById(String openid) { | ||||
|         return sysWxUserLogMapper.deleteSysWxUserLogById(openid); | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int checkWxLogInfoCount(String openid) { | ||||
|         return sysWxUserLogMapper.checkWxLogInfoCount(openid); | ||||
|     } | ||||
|  | ||||
|  | ||||
| } | ||||
| @@ -42,6 +42,10 @@ | ||||
|         select openid, weight, appid, phone, log_time, sleep_time, wakeup_time, sport, avatar_url, diet, insomnia, defecation, water, create_by, create_time, update_by, update_time, remark from sys_wx_user_log | ||||
|     </sql> | ||||
|  | ||||
|     <select id="checkWxLogInfoCount" parameterType="String" resultType="Integer" > | ||||
|         select count(*) from sys_wx_user_log where to_days(log_time) = to_days(now()) and openid = #{openid} | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectSysWxUserLogList" parameterType="SysWxUserLog" resultMap="SysWxUserLogResult"> | ||||
|         <include refid="selectSysWxUserLogVo"/> | ||||
|         <where> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user