调整后台
This commit is contained in:
		| @@ -220,4 +220,138 @@ public class SysContract extends BaseEntity { | ||||
|  | ||||
|                 .toString(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 微信用户对象 sys_wx_user_info | ||||
|      * | ||||
|      * @author wonder | ||||
|      * @date 2020-11-28 | ||||
|      */ | ||||
|     public static class SysWxUserInfo extends BaseEntity | ||||
|     { | ||||
|         private static final long serialVersionUID = 1L; | ||||
|  | ||||
|         /** 微信openid */ | ||||
|         private String openid; | ||||
|  | ||||
|         /** 昵称 */ | ||||
|         @Excel(name = "昵称") | ||||
|         private String nickName; | ||||
|  | ||||
|         /** 电话 */ | ||||
|         @Excel(name = "电话") | ||||
|         private String phone; | ||||
|  | ||||
|         /** 用户头像 */ | ||||
|         @Excel(name = "用户头像") | ||||
|         private String avatarUrl; | ||||
|  | ||||
|         /** 用户性别(0男 1女 2未知) */ | ||||
|         @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") | ||||
|         private String sex; | ||||
|  | ||||
|         /** 城市 */ | ||||
|         @Excel(name = "城市") | ||||
|         private String city; | ||||
|  | ||||
|         /** 省份 */ | ||||
|         @Excel(name = "省份") | ||||
|         private String province; | ||||
|  | ||||
|         /** 国家 */ | ||||
|         @Excel(name = "国家") | ||||
|         private String country; | ||||
|  | ||||
|         public void setOpenid(String openid) | ||||
|         { | ||||
|             this.openid = openid; | ||||
|         } | ||||
|  | ||||
|         public String getOpenid() | ||||
|         { | ||||
|             return openid; | ||||
|         } | ||||
|         public void setNickName(String nickName) | ||||
|         { | ||||
|             this.nickName = nickName; | ||||
|         } | ||||
|  | ||||
|         public String getNickName() | ||||
|         { | ||||
|             return nickName; | ||||
|         } | ||||
|         public void setPhone(String phone) | ||||
|         { | ||||
|             this.phone = phone; | ||||
|         } | ||||
|  | ||||
|         public String getPhone() | ||||
|         { | ||||
|             return phone; | ||||
|         } | ||||
|         public void setAvatarUrl(String avatarUrl) | ||||
|         { | ||||
|             this.avatarUrl = avatarUrl; | ||||
|         } | ||||
|  | ||||
|         public String getAvatarUrl() | ||||
|         { | ||||
|             return avatarUrl; | ||||
|         } | ||||
|         public void setSex(String sex) | ||||
|         { | ||||
|             this.sex = sex; | ||||
|         } | ||||
|  | ||||
|         public String getSex() | ||||
|         { | ||||
|             return sex; | ||||
|         } | ||||
|         public void setCity(String city) | ||||
|         { | ||||
|             this.city = city; | ||||
|         } | ||||
|  | ||||
|         public String getCity() | ||||
|         { | ||||
|             return city; | ||||
|         } | ||||
|         public void setProvince(String province) | ||||
|         { | ||||
|             this.province = province; | ||||
|         } | ||||
|  | ||||
|         public String getProvince() | ||||
|         { | ||||
|             return province; | ||||
|         } | ||||
|         public void setCountry(String country) | ||||
|         { | ||||
|             this.country = country; | ||||
|         } | ||||
|  | ||||
|         public String getCountry() | ||||
|         { | ||||
|             return country; | ||||
|         } | ||||
|  | ||||
|         @Override | ||||
|         public String toString() { | ||||
|             return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|                 .append("openid", getOpenid()) | ||||
|                 .append("nickName", getNickName()) | ||||
|                 .append("phone", getPhone()) | ||||
|                 .append("avatarUrl", getAvatarUrl()) | ||||
|                 .append("sex", getSex()) | ||||
|                 .append("city", getCity()) | ||||
|                 .append("province", getProvince()) | ||||
|                 .append("country", getCountry()) | ||||
|                 .append("createBy", getCreateBy()) | ||||
|                 .append("createTime", getCreateTime()) | ||||
|                 .append("updateBy", getUpdateBy()) | ||||
|                 .append("updateTime", getUpdateTime()) | ||||
|                 .append("remark", getRemark()) | ||||
|                 .toString(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -42,6 +42,14 @@ public class SysOrder extends BaseEntity { | ||||
|     @Excel(name = "金额") | ||||
|     private BigDecimal amount; | ||||
|  | ||||
|     private BigDecimal weight; | ||||
|  | ||||
|     private String status; | ||||
|  | ||||
|     private Date startTime; | ||||
|  | ||||
|     private Date pauseTime; | ||||
|  | ||||
|     /** | ||||
|      * 收款方式 | ||||
|      */ | ||||
| @@ -173,6 +181,40 @@ public class SysOrder extends BaseEntity { | ||||
|     @Excel(name = "成交时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") | ||||
|     private Date orderTime; | ||||
|  | ||||
|     public Date getStartTime() { | ||||
|         return startTime; | ||||
|     } | ||||
|  | ||||
|     public BigDecimal getWeight() { | ||||
|         return weight; | ||||
|     } | ||||
|  | ||||
|     public Date getPauseTime() { | ||||
|         return pauseTime; | ||||
|     } | ||||
|  | ||||
|     public String getStatus() { | ||||
|         return status; | ||||
|     } | ||||
|  | ||||
|     public void setStartTime(Date startTime) { | ||||
|         this.startTime = startTime; | ||||
|     } | ||||
|  | ||||
|     public void setPauseTime(Date pauseTime) { | ||||
|         this.pauseTime = pauseTime; | ||||
|     } | ||||
|  | ||||
|     public void setStatus(String status) { | ||||
|         this.status = status; | ||||
|     } | ||||
|  | ||||
|  | ||||
|  | ||||
|     public void setWeight(BigDecimal weight) { | ||||
|         this.weight = weight; | ||||
|     } | ||||
|  | ||||
|     public String getServeTime() { | ||||
|         return serveTime; | ||||
|     } | ||||
| @@ -442,6 +484,10 @@ public class SysOrder extends BaseEntity { | ||||
|                 .append("serveTimeId", getServeTimeId()) | ||||
|                 .append("serveTime", getServeTime()) | ||||
|                 .append("reviewStatus", getReviewStatus()) | ||||
|                 .append("status", getStatus()) | ||||
|                 .append("startTime", getStartTime()) | ||||
|                 .append("pauseTime", getPauseTime()) | ||||
|                 .append("weight", getWeight()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,154 @@ | ||||
| package com.stdiet.custom.domain; | ||||
|  | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.stdiet.common.annotation.Excel; | ||||
| import com.stdiet.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 微信用户对象 sys_wx_user_info | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public class SysWxUserInfo extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 微信openid */ | ||||
|     private String openid; | ||||
|  | ||||
|     /** 昵称 */ | ||||
|     @Excel(name = "昵称") | ||||
|     private String nickName; | ||||
|  | ||||
|     /** 微信appid */ | ||||
|     @Excel(name = "微信appid") | ||||
|     private String appid; | ||||
|  | ||||
|     /** 电话 */ | ||||
|     @Excel(name = "电话") | ||||
|     private String phone; | ||||
|  | ||||
|     /** 用户头像 */ | ||||
|     @Excel(name = "用户头像") | ||||
|     private String avatarUrl; | ||||
|  | ||||
|     /** 用户性别(0男 1女 2未知) */ | ||||
|     @Excel(name = "用户性别", readConverterExp = "0=男,1=女,2=未知") | ||||
|     private String sex; | ||||
|  | ||||
|     /** 城市 */ | ||||
|     @Excel(name = "城市") | ||||
|     private String city; | ||||
|  | ||||
|     /** 省份 */ | ||||
|     @Excel(name = "省份") | ||||
|     private String province; | ||||
|  | ||||
|     /** 国家 */ | ||||
|     @Excel(name = "国家") | ||||
|     private String country; | ||||
|  | ||||
|     public void setOpenid(String openid) | ||||
|     { | ||||
|         this.openid = openid; | ||||
|     } | ||||
|  | ||||
|     public String getOpenid() | ||||
|     { | ||||
|         return openid; | ||||
|     } | ||||
|     public void setNickName(String nickName) | ||||
|     { | ||||
|         this.nickName = nickName; | ||||
|     } | ||||
|  | ||||
|     public String getNickName() | ||||
|     { | ||||
|         return nickName; | ||||
|     } | ||||
|     public void setAppid(String appid) | ||||
|     { | ||||
|         this.appid = appid; | ||||
|     } | ||||
|  | ||||
|     public String getAppid() | ||||
|     { | ||||
|         return appid; | ||||
|     } | ||||
|     public void setPhone(String phone) | ||||
|     { | ||||
|         this.phone = phone; | ||||
|     } | ||||
|  | ||||
|     public String getPhone() | ||||
|     { | ||||
|         return phone; | ||||
|     } | ||||
|     public void setAvatarUrl(String avatarUrl) | ||||
|     { | ||||
|         this.avatarUrl = avatarUrl; | ||||
|     } | ||||
|  | ||||
|     public String getAvatarUrl() | ||||
|     { | ||||
|         return avatarUrl; | ||||
|     } | ||||
|     public void setSex(String sex) | ||||
|     { | ||||
|         this.sex = sex; | ||||
|     } | ||||
|  | ||||
|     public String getSex() | ||||
|     { | ||||
|         return sex; | ||||
|     } | ||||
|     public void setCity(String city) | ||||
|     { | ||||
|         this.city = city; | ||||
|     } | ||||
|  | ||||
|     public String getCity() | ||||
|     { | ||||
|         return city; | ||||
|     } | ||||
|     public void setProvince(String province) | ||||
|     { | ||||
|         this.province = province; | ||||
|     } | ||||
|  | ||||
|     public String getProvince() | ||||
|     { | ||||
|         return province; | ||||
|     } | ||||
|     public void setCountry(String country) | ||||
|     { | ||||
|         this.country = country; | ||||
|     } | ||||
|  | ||||
|     public String getCountry() | ||||
|     { | ||||
|         return country; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|                 .append("openid", getOpenid()) | ||||
|                 .append("nickName", getNickName()) | ||||
|                 .append("appid", getAppid()) | ||||
|                 .append("phone", getPhone()) | ||||
|                 .append("avatarUrl", getAvatarUrl()) | ||||
|                 .append("sex", getSex()) | ||||
|                 .append("city", getCity()) | ||||
|                 .append("province", getProvince()) | ||||
|                 .append("country", getCountry()) | ||||
|                 .append("createBy", getCreateBy()) | ||||
|                 .append("createTime", getCreateTime()) | ||||
|                 .append("updateBy", getUpdateBy()) | ||||
|                 .append("updateTime", getUpdateTime()) | ||||
|                 .append("remark", getRemark()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,201 @@ | ||||
| package com.stdiet.custom.domain; | ||||
|  | ||||
| import java.math.BigDecimal; | ||||
| import java.util.Date; | ||||
| import com.fasterxml.jackson.annotation.JsonFormat; | ||||
| import org.apache.commons.lang3.builder.ToStringBuilder; | ||||
| import org.apache.commons.lang3.builder.ToStringStyle; | ||||
| import com.stdiet.common.annotation.Excel; | ||||
| import com.stdiet.common.core.domain.BaseEntity; | ||||
|  | ||||
| /** | ||||
|  * 微信用户记录对象 sys_wx_user_log | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public class SysWxUserLog extends BaseEntity | ||||
| { | ||||
|     private static final long serialVersionUID = 1L; | ||||
|  | ||||
|     /** 微信openid */ | ||||
|     private String openid; | ||||
|  | ||||
|     /** 体重 */ | ||||
|     @Excel(name = "体重") | ||||
|     private BigDecimal weight; | ||||
|  | ||||
|     /** 微信appid */ | ||||
|     @Excel(name = "微信appid") | ||||
|     private String appid; | ||||
|  | ||||
|     /** 电话 */ | ||||
|     @Excel(name = "电话") | ||||
|     private String phone; | ||||
|  | ||||
|     /** 睡觉时间 */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @Excel(name = "睡觉时间", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date sleepTime; | ||||
|  | ||||
|     /** 起床时间 */ | ||||
|     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|     @Excel(name = "起床时间", width = 30, dateFormat = "yyyy-MM-dd") | ||||
|     private Date wakeupTime; | ||||
|  | ||||
|     /** 运动情况 */ | ||||
|     @Excel(name = "运动情况") | ||||
|     private Long sport; | ||||
|  | ||||
|     /** 用户头像 */ | ||||
|     @Excel(name = "用户头像") | ||||
|     private String avatarUrl; | ||||
|  | ||||
|     /** 饮食情况 */ | ||||
|     @Excel(name = "饮食情况") | ||||
|     private Long diet; | ||||
|  | ||||
|     /** 熬夜失眠(Y是 N否) */ | ||||
|     @Excel(name = "熬夜失眠", readConverterExp = "Y=是,N=否") | ||||
|     private String insomnia; | ||||
|  | ||||
|     /** 排便情况 */ | ||||
|     @Excel(name = "排便情况") | ||||
|     private Long defecation; | ||||
|  | ||||
|     /** 饮水量 */ | ||||
|     @Excel(name = "饮水量") | ||||
|     private Long water; | ||||
|  | ||||
|     public void setOpenid(String openid) | ||||
|     { | ||||
|         this.openid = openid; | ||||
|     } | ||||
|  | ||||
|     public String getOpenid() | ||||
|     { | ||||
|         return openid; | ||||
|     } | ||||
|     public void setWeight(BigDecimal weight) | ||||
|     { | ||||
|         this.weight = weight; | ||||
|     } | ||||
|  | ||||
|     public BigDecimal getWeight() | ||||
|     { | ||||
|         return weight; | ||||
|     } | ||||
|     public void setAppid(String appid) | ||||
|     { | ||||
|         this.appid = appid; | ||||
|     } | ||||
|  | ||||
|     public String getAppid() | ||||
|     { | ||||
|         return appid; | ||||
|     } | ||||
|     public void setPhone(String phone) | ||||
|     { | ||||
|         this.phone = phone; | ||||
|     } | ||||
|  | ||||
|     public String getPhone() | ||||
|     { | ||||
|         return phone; | ||||
|     } | ||||
|     public void setSleepTime(Date sleepTime) | ||||
|     { | ||||
|         this.sleepTime = sleepTime; | ||||
|     } | ||||
|  | ||||
|     public Date getSleepTime() | ||||
|     { | ||||
|         return sleepTime; | ||||
|     } | ||||
|     public void setWakeupTime(Date wakeupTime) | ||||
|     { | ||||
|         this.wakeupTime = wakeupTime; | ||||
|     } | ||||
|  | ||||
|     public Date getWakeupTime() | ||||
|     { | ||||
|         return wakeupTime; | ||||
|     } | ||||
|     public void setSport(Long sport) | ||||
|     { | ||||
|         this.sport = sport; | ||||
|     } | ||||
|  | ||||
|     public Long getSport() | ||||
|     { | ||||
|         return sport; | ||||
|     } | ||||
|     public void setAvatarUrl(String avatarUrl) | ||||
|     { | ||||
|         this.avatarUrl = avatarUrl; | ||||
|     } | ||||
|  | ||||
|     public String getAvatarUrl() | ||||
|     { | ||||
|         return avatarUrl; | ||||
|     } | ||||
|     public void setDiet(Long diet) | ||||
|     { | ||||
|         this.diet = diet; | ||||
|     } | ||||
|  | ||||
|     public Long getDiet() | ||||
|     { | ||||
|         return diet; | ||||
|     } | ||||
|     public void setInsomnia(String insomnia) | ||||
|     { | ||||
|         this.insomnia = insomnia; | ||||
|     } | ||||
|  | ||||
|     public String getInsomnia() | ||||
|     { | ||||
|         return insomnia; | ||||
|     } | ||||
|     public void setDefecation(Long defecation) | ||||
|     { | ||||
|         this.defecation = defecation; | ||||
|     } | ||||
|  | ||||
|     public Long getDefecation() | ||||
|     { | ||||
|         return defecation; | ||||
|     } | ||||
|     public void setWater(Long water) | ||||
|     { | ||||
|         this.water = water; | ||||
|     } | ||||
|  | ||||
|     public Long getWater() | ||||
|     { | ||||
|         return water; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public String toString() { | ||||
|         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | ||||
|                 .append("openid", getOpenid()) | ||||
|                 .append("weight", getWeight()) | ||||
|                 .append("appid", getAppid()) | ||||
|                 .append("phone", getPhone()) | ||||
|                 .append("sleepTime", getSleepTime()) | ||||
|                 .append("wakeupTime", getWakeupTime()) | ||||
|                 .append("sport", getSport()) | ||||
|                 .append("avatarUrl", getAvatarUrl()) | ||||
|                 .append("diet", getDiet()) | ||||
|                 .append("insomnia", getInsomnia()) | ||||
|                 .append("defecation", getDefecation()) | ||||
|                 .append("water", getWater()) | ||||
|                 .append("createBy", getCreateBy()) | ||||
|                 .append("createTime", getCreateTime()) | ||||
|                 .append("updateBy", getUpdateBy()) | ||||
|                 .append("updateTime", getUpdateTime()) | ||||
|                 .append("remark", getRemark()) | ||||
|                 .toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.stdiet.custom.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
|  | ||||
| /** | ||||
|  * 微信用户Mapper接口 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public interface SysWxUserInfoMapper | ||||
| { | ||||
|     /** | ||||
|      * 查询微信用户 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 微信用户 | ||||
|      */ | ||||
|     public SysWxUserInfo selectSysWxUserInfoById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户列表 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 微信用户集合 | ||||
|      */ | ||||
|     public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertSysWxUserInfo(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateSysWxUserInfo(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserInfoById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户 | ||||
|      * | ||||
|      * @param openids 需要删除的数据ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserInfoByIds(String[] openids); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.stdiet.custom.mapper; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.custom.domain.SysWxUserLog; | ||||
|  | ||||
| /** | ||||
|  * 微信用户记录Mapper接口 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public interface SysWxUserLogMapper | ||||
| { | ||||
|     /** | ||||
|      * 查询微信用户记录 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 微信用户记录 | ||||
|      */ | ||||
|     public SysWxUserLog selectSysWxUserLogById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户记录列表 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 微信用户记录集合 | ||||
|      */ | ||||
|     public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertSysWxUserLog(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateSysWxUserLog(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户记录 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户记录 | ||||
|      * | ||||
|      * @param openids 需要删除的数据ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogByIds(String[] openids); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.stdiet.custom.service; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
|  | ||||
| /** | ||||
|  * 微信用户Service接口 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public interface ISysWxUserInfoService | ||||
| { | ||||
|     /** | ||||
|      * 查询微信用户 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 微信用户 | ||||
|      */ | ||||
|     public SysWxUserInfo selectSysWxUserInfoById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户列表 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 微信用户集合 | ||||
|      */ | ||||
|     public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertSysWxUserInfo(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateSysWxUserInfo(SysWxUserInfo sysWxUserInfo); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户 | ||||
|      * | ||||
|      * @param openids 需要删除的微信用户ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserInfoByIds(String[] openids); | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户信息 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserInfoById(String openid); | ||||
| } | ||||
| @@ -0,0 +1,61 @@ | ||||
| package com.stdiet.custom.service; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.custom.domain.SysWxUserLog; | ||||
|  | ||||
| /** | ||||
|  * 微信用户记录Service接口 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| public interface ISysWxUserLogService | ||||
| { | ||||
|     /** | ||||
|      * 查询微信用户记录 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 微信用户记录 | ||||
|      */ | ||||
|     public SysWxUserLog selectSysWxUserLogById(String openid); | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户记录列表 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 微信用户记录集合 | ||||
|      */ | ||||
|     public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int insertSysWxUserLog(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int updateSysWxUserLog(SysWxUserLog sysWxUserLog); | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户记录 | ||||
|      * | ||||
|      * @param openids 需要删除的微信用户记录ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogByIds(String[] openids); | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户记录信息 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     public int deleteSysWxUserLogById(String openid); | ||||
| } | ||||
| @@ -0,0 +1,96 @@ | ||||
| package com.stdiet.custom.service.impl; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.common.utils.DateUtils; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| import com.stdiet.custom.mapper.SysWxUserInfoMapper; | ||||
| import com.stdiet.custom.domain.SysWxUserInfo; | ||||
| import com.stdiet.custom.service.ISysWxUserInfoService; | ||||
|  | ||||
| /** | ||||
|  * 微信用户Service业务层处理 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| @Service | ||||
| public class SysWxUserInfoServiceImpl implements ISysWxUserInfoService | ||||
| { | ||||
|     @Autowired | ||||
|     private SysWxUserInfoMapper sysWxUserInfoMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 微信用户 | ||||
|      */ | ||||
|     @Override | ||||
|     public SysWxUserInfo selectSysWxUserInfoById(String openid) | ||||
|     { | ||||
|         return sysWxUserInfoMapper.selectSysWxUserInfoById(openid); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户列表 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 微信用户 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<SysWxUserInfo> selectSysWxUserInfoList(SysWxUserInfo sysWxUserInfo) | ||||
|     { | ||||
|         return sysWxUserInfoMapper.selectSysWxUserInfoList(sysWxUserInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertSysWxUserInfo(SysWxUserInfo sysWxUserInfo) | ||||
|     { | ||||
|         sysWxUserInfo.setCreateTime(DateUtils.getNowDate()); | ||||
|         return sysWxUserInfoMapper.insertSysWxUserInfo(sysWxUserInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户 | ||||
|      * | ||||
|      * @param sysWxUserInfo 微信用户 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateSysWxUserInfo(SysWxUserInfo sysWxUserInfo) | ||||
|     { | ||||
|         sysWxUserInfo.setUpdateTime(DateUtils.getNowDate()); | ||||
|         return sysWxUserInfoMapper.updateSysWxUserInfo(sysWxUserInfo); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户 | ||||
|      * | ||||
|      * @param openids 需要删除的微信用户ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteSysWxUserInfoByIds(String[] openids) | ||||
|     { | ||||
|         return sysWxUserInfoMapper.deleteSysWxUserInfoByIds(openids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户信息 | ||||
|      * | ||||
|      * @param openid 微信用户ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteSysWxUserInfoById(String openid) | ||||
|     { | ||||
|         return sysWxUserInfoMapper.deleteSysWxUserInfoById(openid); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,96 @@ | ||||
| package com.stdiet.custom.service.impl; | ||||
|  | ||||
| import java.util.List; | ||||
| import com.stdiet.common.utils.DateUtils; | ||||
| import org.springframework.beans.factory.annotation.Autowired; | ||||
| import org.springframework.stereotype.Service; | ||||
| import com.stdiet.custom.mapper.SysWxUserLogMapper; | ||||
| import com.stdiet.custom.domain.SysWxUserLog; | ||||
| import com.stdiet.custom.service.ISysWxUserLogService; | ||||
|  | ||||
| /** | ||||
|  * 微信用户记录Service业务层处理 | ||||
|  * | ||||
|  * @author wonder | ||||
|  * @date 2020-11-28 | ||||
|  */ | ||||
| @Service | ||||
| public class SysWxUserLogServiceImpl implements ISysWxUserLogService | ||||
| { | ||||
|     @Autowired | ||||
|     private SysWxUserLogMapper sysWxUserLogMapper; | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户记录 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 微信用户记录 | ||||
|      */ | ||||
|     @Override | ||||
|     public SysWxUserLog selectSysWxUserLogById(String openid) | ||||
|     { | ||||
|         return sysWxUserLogMapper.selectSysWxUserLogById(openid); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 查询微信用户记录列表 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 微信用户记录 | ||||
|      */ | ||||
|     @Override | ||||
|     public List<SysWxUserLog> selectSysWxUserLogList(SysWxUserLog sysWxUserLog) | ||||
|     { | ||||
|         return sysWxUserLogMapper.selectSysWxUserLogList(sysWxUserLog); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int insertSysWxUserLog(SysWxUserLog sysWxUserLog) | ||||
|     { | ||||
|         sysWxUserLog.setCreateTime(DateUtils.getNowDate()); | ||||
|         return sysWxUserLogMapper.insertSysWxUserLog(sysWxUserLog); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 修改微信用户记录 | ||||
|      * | ||||
|      * @param sysWxUserLog 微信用户记录 | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int updateSysWxUserLog(SysWxUserLog sysWxUserLog) | ||||
|     { | ||||
|         sysWxUserLog.setUpdateTime(DateUtils.getNowDate()); | ||||
|         return sysWxUserLogMapper.updateSysWxUserLog(sysWxUserLog); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除微信用户记录 | ||||
|      * | ||||
|      * @param openids 需要删除的微信用户记录ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteSysWxUserLogByIds(String[] openids) | ||||
|     { | ||||
|         return sysWxUserLogMapper.deleteSysWxUserLogByIds(openids); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除微信用户记录信息 | ||||
|      * | ||||
|      * @param openid 微信用户记录ID | ||||
|      * @return 结果 | ||||
|      */ | ||||
|     @Override | ||||
|     public int deleteSysWxUserLogById(String openid) | ||||
|     { | ||||
|         return sysWxUserLogMapper.deleteSysWxUserLogById(openid); | ||||
|     } | ||||
| } | ||||
| @@ -9,6 +9,10 @@ | ||||
|         <result property="customer" column="customer"/> | ||||
|         <result property="phone" column="phone"/> | ||||
|         <result property="amount" column="amount"/> | ||||
|         <result property="weight" column="weight"/> | ||||
|         <result property="startTime" column="start_time"/> | ||||
|         <result property="pauseTime" column="pause_time"/> | ||||
|         <result property="status" column="status"/> | ||||
|         <result property="payTypeId" column="pay_type_id"/> | ||||
|         <result property="payType" column="pay_type"/> | ||||
|         <result property="preSaleId" column="pre_sale_id"/> | ||||
| @@ -34,7 +38,10 @@ | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectSysOrderVo"> | ||||
|         select o.order_id, o.review_status, o.customer, o.phone, o.amount, ser.dict_label as serve_time, o.serve_time_id, o.pay_type_id, pay.dict_label as pay_type, o.pre_sale_id, o.create_by, o.create_time, o.after_sale_id, o.update_by, o.update_time, o.nutritionist_id, o.remark, o.nutri_assis_id, o.account_id, acc.dict_label as account, o.planner_id, o.planner_assis_id, o.operator_id, o.operator_assis_id, o.recommender, o.order_time from sys_order o | ||||
|         select o.order_id, o.review_status, o.customer, o.phone, o.amount, o.start_time, o.pause_time, o.status, o.weight, ser.dict_label as serve_time, | ||||
|         o.serve_time_id, o.pay_type_id, pay.dict_label as pay_type, o.pre_sale_id, o.create_by, o.create_time, o.after_sale_id, o.update_by, o.update_time, | ||||
|         o.nutritionist_id, o.remark, o.nutri_assis_id, o.account_id, acc.dict_label as account, o.planner_id, o.planner_assis_id, o.operator_id, o.operator_assis_id, | ||||
|         o.recommender, o.order_time from sys_order o | ||||
|         LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'cus_pay_type') AS pay ON pay.dict_value = o.pay_type_id | ||||
|         LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'cus_account') AS acc ON acc.dict_value = o.account_id | ||||
|         LEFT JOIN (SELECT dict_label, dict_value FROM sys_dict_data WHERE dict_type = 'cus_serve_time') AS ser ON ser.dict_value = o.serve_time_id | ||||
| @@ -46,6 +53,7 @@ | ||||
|             <if test="orderId != null  and orderId != ''">and order_id = #{orderId}</if> | ||||
|             <if test="customer != null  and customer != ''">and customer = #{customer}</if> | ||||
|             <if test="phone != null  and phone != ''">and phone = #{phone}</if> | ||||
|             <if test="status != null ">and status = #{status}</if> | ||||
|             <if test="payTypeId != null ">and pay_type_id = #{payTypeId}</if> | ||||
|             <if test="preSaleId != null ">and pre_sale_id = #{preSaleId}</if> | ||||
|             <if test="afterSaleId != null ">and after_sale_id = #{afterSaleId}</if> | ||||
| @@ -70,6 +78,7 @@ | ||||
|             <if test="orderId != null  and orderId != ''">and order_id = #{orderId}</if> | ||||
|             <if test="customer != null  and customer != ''">and customer = #{customer}</if> | ||||
|             <if test="phone != null  and phone != ''">and phone = #{phone}</if> | ||||
|             <if test="status != null ">and status = #{status}</if> | ||||
|             <if test="payTypeId != null ">and pay_type_id = #{payTypeId}</if> | ||||
|             <if test="preSaleId != null ">and pre_sale_id = #{preSaleId}</if> | ||||
|             <if test="afterSaleId != null ">and after_sale_id = #{afterSaleId}</if> | ||||
| @@ -101,6 +110,10 @@ | ||||
|             <if test="customer != null and customer != ''">customer,</if> | ||||
|             <if test="phone != null">phone,</if> | ||||
|             <if test="amount != null">amount,</if> | ||||
|             <if test="status != null">status,</if> | ||||
|             <if test="pauseTime != null">pause_time,</if> | ||||
|             <if test="startTime != null">start_time,</if> | ||||
|             <if test="weight != null">weight,</if> | ||||
|             <if test="payTypeId != null">pay_type_id,</if> | ||||
|             <if test="preSaleId != null">pre_sale_id,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
| @@ -126,6 +139,10 @@ | ||||
|             <if test="customer != null and customer != ''">#{customer},</if> | ||||
|             <if test="phone != null">#{phone},</if> | ||||
|             <if test="amount != null">#{amount},</if> | ||||
|             <if test="status != null">#{status},</if> | ||||
|             <if test="pauseTime != null">#{pauseTime},</if> | ||||
|             <if test="startTime != null">#{startTime},</if> | ||||
|             <if test="weight != null">#{weight},</if> | ||||
|             <if test="payTypeId != null">#{payTypeId},</if> | ||||
|             <if test="preSaleId != null">#{preSaleId},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
| @@ -154,6 +171,10 @@ | ||||
|             <if test="customer != null and customer != ''">customer = #{customer},</if> | ||||
|             <if test="phone != null">phone = #{phone},</if> | ||||
|             <if test="amount != null">amount = #{amount},</if> | ||||
|             <if test="weight != null">weight = #{weight},</if> | ||||
|             <if test="status != null">status = #{status},</if> | ||||
|             <if test="pauseTime != null">pause_time = #{pauseTime},</if> | ||||
|             <if test="startTime != null">start_time = #{startTime},</if> | ||||
|             <if test="payTypeId != null">pay_type_id = #{payTypeId},</if> | ||||
|             <if test="preSaleId != null">pre_sale_id = #{preSaleId},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|   | ||||
| @@ -0,0 +1,110 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" ?> | ||||
| <!DOCTYPE mapper | ||||
|         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|         "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.stdiet.custom.mapper.SysWxUserInfoMapper"> | ||||
|  | ||||
|     <resultMap type="SysWxUserInfo" id="SysWxUserInfoResult"> | ||||
|         <result property="openid"    column="openid"    /> | ||||
|         <result property="nickName"    column="nick_name"    /> | ||||
|         <result property="appid"    column="appid"    /> | ||||
|         <result property="phone"    column="phone"    /> | ||||
|         <result property="avatarUrl"    column="avatar_url"    /> | ||||
|         <result property="sex"    column="sex"    /> | ||||
|         <result property="city"    column="city"    /> | ||||
|         <result property="province"    column="province"    /> | ||||
|         <result property="country"    column="country"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="updateBy"    column="update_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
|         <result property="remark"    column="remark"    /> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectSysWxUserInfoVo"> | ||||
|         select openid, nick_name, appid, phone, avatar_url, sex, city, province, country, create_by, create_time, update_by, update_time, remark from sys_wx_user_info | ||||
|     </sql> | ||||
|  | ||||
|     <select id="selectSysWxUserInfoList" parameterType="SysWxUserInfo" resultMap="SysWxUserInfoResult"> | ||||
|         <include refid="selectSysWxUserInfoVo"/> | ||||
|         <where> | ||||
|             <if test="nickName != null  and nickName != ''"> and nick_name like concat('%', #{nickName}, '%')</if> | ||||
|             <if test="appid != null  and appid != ''"> and appid = #{appid}</if> | ||||
|             <if test="phone != null  and phone != ''"> and phone = #{phone}</if> | ||||
|             <if test="sex != null  and sex != ''"> and sex = #{sex}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectSysWxUserInfoById" parameterType="String" resultMap="SysWxUserInfoResult"> | ||||
|         <include refid="selectSysWxUserInfoVo"/> | ||||
|         where openid = #{openid} | ||||
|     </select> | ||||
|  | ||||
|     <insert id="insertSysWxUserInfo" parameterType="SysWxUserInfo"> | ||||
|         insert into sys_wx_user_info | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="openid != null">openid,</if> | ||||
|             <if test="nickName != null">nick_name,</if> | ||||
|             <if test="appid != null">appid,</if> | ||||
|             <if test="phone != null">phone,</if> | ||||
|             <if test="avatarUrl != null">avatar_url,</if> | ||||
|             <if test="sex != null">sex,</if> | ||||
|             <if test="city != null">city,</if> | ||||
|             <if test="province != null">province,</if> | ||||
|             <if test="country != null">country,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="updateBy != null">update_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
|             <if test="remark != null">remark,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="openid != null">#{openid},</if> | ||||
|             <if test="nickName != null">#{nickName},</if> | ||||
|             <if test="appid != null">#{appid},</if> | ||||
|             <if test="phone != null">#{phone},</if> | ||||
|             <if test="avatarUrl != null">#{avatarUrl},</if> | ||||
|             <if test="sex != null">#{sex},</if> | ||||
|             <if test="city != null">#{city},</if> | ||||
|             <if test="province != null">#{province},</if> | ||||
|             <if test="country != null">#{country},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="updateBy != null">#{updateBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
|             <if test="remark != null">#{remark},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateSysWxUserInfo" parameterType="SysWxUserInfo"> | ||||
|         update sys_wx_user_info | ||||
|         <trim prefix="SET" suffixOverrides=","> | ||||
|             <if test="nickName != null">nick_name = #{nickName},</if> | ||||
|             <if test="appid != null">appid = #{appid},</if> | ||||
|             <if test="phone != null">phone = #{phone},</if> | ||||
|             <if test="avatarUrl != null">avatar_url = #{avatarUrl},</if> | ||||
|             <if test="sex != null">sex = #{sex},</if> | ||||
|             <if test="city != null">city = #{city},</if> | ||||
|             <if test="province != null">province = #{province},</if> | ||||
|             <if test="country != null">country = #{country},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="updateBy != null">update_by = #{updateBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|         </trim> | ||||
|         where openid = #{openid} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteSysWxUserInfoById" parameterType="String"> | ||||
|         delete from sys_wx_user_info where openid = #{openid} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteSysWxUserInfoByIds" parameterType="String"> | ||||
|         delete from sys_wx_user_info where openid in | ||||
|         <foreach item="openid" collection="array" open="(" separator="," close=")"> | ||||
|             #{openid} | ||||
|         </foreach> | ||||
|     </delete> | ||||
|  | ||||
| </mapper> | ||||
| @@ -0,0 +1,120 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" ?> | ||||
| <!DOCTYPE mapper | ||||
|         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | ||||
|         "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||||
| <mapper namespace="com.stdiet.custom.mapper.SysWxUserLogMapper"> | ||||
|  | ||||
|     <resultMap type="SysWxUserLog" id="SysWxUserLogResult"> | ||||
|         <result property="openid"    column="openid"    /> | ||||
|         <result property="weight"    column="weight"    /> | ||||
|         <result property="appid"    column="appid"    /> | ||||
|         <result property="phone"    column="phone"    /> | ||||
|         <result property="sleepTime"    column="sleep_time"    /> | ||||
|         <result property="wakeupTime"    column="wakeup_time"    /> | ||||
|         <result property="sport"    column="sport"    /> | ||||
|         <result property="avatarUrl"    column="avatar_url"    /> | ||||
|         <result property="diet"    column="diet"    /> | ||||
|         <result property="insomnia"    column="insomnia"    /> | ||||
|         <result property="defecation"    column="defecation"    /> | ||||
|         <result property="water"    column="water"    /> | ||||
|         <result property="createBy"    column="create_by"    /> | ||||
|         <result property="createTime"    column="create_time"    /> | ||||
|         <result property="updateBy"    column="update_by"    /> | ||||
|         <result property="updateTime"    column="update_time"    /> | ||||
|         <result property="remark"    column="remark"    /> | ||||
|     </resultMap> | ||||
|  | ||||
|     <sql id="selectSysWxUserLogVo"> | ||||
|         select openid, weight, appid, phone, 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="selectSysWxUserLogList" parameterType="SysWxUserLog" resultMap="SysWxUserLogResult"> | ||||
|         <include refid="selectSysWxUserLogVo"/> | ||||
|         <where> | ||||
|             <if test="appid != null  and appid != ''"> and appid = #{appid}</if> | ||||
|             <if test="phone != null  and phone != ''"> and phone = #{phone}</if> | ||||
|         </where> | ||||
|     </select> | ||||
|  | ||||
|     <select id="selectSysWxUserLogById" parameterType="String" resultMap="SysWxUserLogResult"> | ||||
|         <include refid="selectSysWxUserLogVo"/> | ||||
|         where openid = #{openid} | ||||
|     </select> | ||||
|  | ||||
|     <insert id="insertSysWxUserLog" parameterType="SysWxUserLog"> | ||||
|         insert into sys_wx_user_log | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="openid != null">openid,</if> | ||||
|             <if test="weight != null">weight,</if> | ||||
|             <if test="appid != null">appid,</if> | ||||
|             <if test="phone != null">phone,</if> | ||||
|             <if test="sleepTime != null">sleep_time,</if> | ||||
|             <if test="wakeupTime != null">wakeup_time,</if> | ||||
|             <if test="sport != null">sport,</if> | ||||
|             <if test="avatarUrl != null">avatar_url,</if> | ||||
|             <if test="diet != null">diet,</if> | ||||
|             <if test="insomnia != null">insomnia,</if> | ||||
|             <if test="defecation != null">defecation,</if> | ||||
|             <if test="water != null">water,</if> | ||||
|             <if test="createBy != null">create_by,</if> | ||||
|             <if test="createTime != null">create_time,</if> | ||||
|             <if test="updateBy != null">update_by,</if> | ||||
|             <if test="updateTime != null">update_time,</if> | ||||
|             <if test="remark != null">remark,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="openid != null">#{openid},</if> | ||||
|             <if test="weight != null">#{weight},</if> | ||||
|             <if test="appid != null">#{appid},</if> | ||||
|             <if test="phone != null">#{phone},</if> | ||||
|             <if test="sleepTime != null">#{sleepTime},</if> | ||||
|             <if test="wakeupTime != null">#{wakeupTime},</if> | ||||
|             <if test="sport != null">#{sport},</if> | ||||
|             <if test="avatarUrl != null">#{avatarUrl},</if> | ||||
|             <if test="diet != null">#{diet},</if> | ||||
|             <if test="insomnia != null">#{insomnia},</if> | ||||
|             <if test="defecation != null">#{defecation},</if> | ||||
|             <if test="water != null">#{water},</if> | ||||
|             <if test="createBy != null">#{createBy},</if> | ||||
|             <if test="createTime != null">#{createTime},</if> | ||||
|             <if test="updateBy != null">#{updateBy},</if> | ||||
|             <if test="updateTime != null">#{updateTime},</if> | ||||
|             <if test="remark != null">#{remark},</if> | ||||
|         </trim> | ||||
|     </insert> | ||||
|  | ||||
|     <update id="updateSysWxUserLog" parameterType="SysWxUserLog"> | ||||
|         update sys_wx_user_log | ||||
|         <trim prefix="SET" suffixOverrides=","> | ||||
|             <if test="weight != null">weight = #{weight},</if> | ||||
|             <if test="appid != null">appid = #{appid},</if> | ||||
|             <if test="phone != null">phone = #{phone},</if> | ||||
|             <if test="sleepTime != null">sleep_time = #{sleepTime},</if> | ||||
|             <if test="wakeupTime != null">wakeup_time = #{wakeupTime},</if> | ||||
|             <if test="sport != null">sport = #{sport},</if> | ||||
|             <if test="avatarUrl != null">avatar_url = #{avatarUrl},</if> | ||||
|             <if test="diet != null">diet = #{diet},</if> | ||||
|             <if test="insomnia != null">insomnia = #{insomnia},</if> | ||||
|             <if test="defecation != null">defecation = #{defecation},</if> | ||||
|             <if test="water != null">water = #{water},</if> | ||||
|             <if test="createBy != null">create_by = #{createBy},</if> | ||||
|             <if test="createTime != null">create_time = #{createTime},</if> | ||||
|             <if test="updateBy != null">update_by = #{updateBy},</if> | ||||
|             <if test="updateTime != null">update_time = #{updateTime},</if> | ||||
|             <if test="remark != null">remark = #{remark},</if> | ||||
|         </trim> | ||||
|         where openid = #{openid} | ||||
|     </update> | ||||
|  | ||||
|     <delete id="deleteSysWxUserLogById" parameterType="String"> | ||||
|         delete from sys_wx_user_log where openid = #{openid} | ||||
|     </delete> | ||||
|  | ||||
|     <delete id="deleteSysWxUserLogByIds" parameterType="String"> | ||||
|         delete from sys_wx_user_log where openid in | ||||
|         <foreach item="openid" collection="array" open="(" separator="," close=")"> | ||||
|             #{openid} | ||||
|         </foreach> | ||||
|     </delete> | ||||
|  | ||||
| </mapper> | ||||
		Reference in New Issue
	
	Block a user