b s s m 3 years ago
parent
commit
1cba2ea3da

+ 103 - 0
ruoyi-system/src/main/java/com/ruoyi/system/controller/LzydNoticeController.java

@@ -0,0 +1,103 @@
+package com.ruoyi.system.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.LzydNotice;
+import com.ruoyi.system.service.ILzydNoticeService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 公告模块Controller
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+@RestController
+@RequestMapping("/system/lzyd_notice")
+public class LzydNoticeController extends BaseController
+{
+    @Autowired
+    private ILzydNoticeService lzydNoticeService;
+
+    /**
+     * 查询公告模块列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(LzydNotice lzydNotice)
+    {
+        startPage();
+        List<LzydNotice> list = lzydNoticeService.selectLzydNoticeList(lzydNotice);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出公告模块列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:export')")
+    @Log(title = "公告模块", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(LzydNotice lzydNotice)
+    {
+        List<LzydNotice> list = lzydNoticeService.selectLzydNoticeList(lzydNotice);
+        ExcelUtil<LzydNotice> util = new ExcelUtil<LzydNotice>(LzydNotice.class);
+        return util.exportExcel(list, "lzyd_notice");
+    }
+
+    /**
+     * 获取公告模块详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(lzydNoticeService.selectLzydNoticeById(id));
+    }
+
+    /**
+     * 新增公告模块
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:add')")
+    @Log(title = "公告模块", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody LzydNotice lzydNotice)
+    {
+        return toAjax(lzydNoticeService.insertLzydNotice(lzydNotice));
+    }
+
+    /**
+     * 修改公告模块
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:edit')")
+    @Log(title = "公告模块", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody LzydNotice lzydNotice)
+    {
+        return toAjax(lzydNoticeService.updateLzydNotice(lzydNotice));
+    }
+
+    /**
+     * 删除公告模块
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyd_notice:remove')")
+    @Log(title = "公告模块", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(lzydNoticeService.deleteLzydNoticeByIds(ids));
+    }
+}

+ 125 - 0
ruoyi-system/src/main/java/com/ruoyi/system/controller/LzydUserController.java

@@ -0,0 +1,125 @@
+package com.ruoyi.system.controller;
+
+import java.util.List;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.system.domain.LzydUser;
+import com.ruoyi.system.service.ILzydUserService;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+Controller
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+@RestController
+@RequestMapping("/system/lzyduser")
+public class LzydUserController extends BaseController
+{
+    @Autowired
+    private ILzydUserService lzydUserService;
+
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(LzydUser lzydUser)
+    {
+        startPage();
+        List<LzydUser> list = lzydUserService.selectLzydUserList(lzydUser);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+列表
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:export')")
+    @Log(title = "悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+", businessType = BusinessType.EXPORT)
+    @GetMapping("/export")
+    public AjaxResult export(LzydUser lzydUser)
+    {
+        List<LzydUser> list = lzydUserService.selectLzydUserList(lzydUser);
+        ExcelUtil<LzydUser> util = new ExcelUtil<LzydUser>(LzydUser.class);
+        return util.exportExcel(list, "lzyduser");
+    }
+
+    /**
+     * 获取悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id)
+    {
+        return AjaxResult.success(lzydUserService.selectLzydUserById(id));
+    }
+
+    /**
+     * 新增悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:add')")
+    @Log(title = "悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody LzydUser lzydUser)
+    {
+        return toAjax(lzydUserService.insertLzydUser(lzydUser));
+    }
+
+    /**
+     * 修改悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:edit')")
+    @Log(title = "悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody LzydUser lzydUser)
+    {
+        return toAjax(lzydUserService.updateLzydUser(lzydUser));
+    }
+
+    /**
+     * 删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    @PreAuthorize("@ss.hasPermi('system:lzyduser:remove')")
+    @Log(title = "悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+", businessType = BusinessType.DELETE)
+	@DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids)
+    {
+        return toAjax(lzydUserService.deleteLzydUserByIds(ids));
+    }
+}

+ 182 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/LzydNotice.java

@@ -0,0 +1,182 @@
+package com.ruoyi.system.domain;
+
+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.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 公告模块对象 lzyd_notice
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public class LzydNotice extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** $column.columnComment */
+    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
+    private String noticeId;
+
+    /** 商户 */
+    @Excel(name = "商户")
+    private String appId;
+
+    /** 标题 */
+    @Excel(name = "标题")
+    private String title;
+
+    /** 内容 */
+    @Excel(name = "内容")
+    private String content;
+
+    /** 数据创建时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "数据创建时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date createAt;
+
+    /** 数据更新时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "数据更新时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date updateAt;
+
+    /** 删除时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date deleteAt;
+
+    /** 跳转链接 */
+    @Excel(name = "跳转链接")
+    private String linkUrl;
+
+    /** 公告跳转类型(1.文章,2.链接) */
+    @Excel(name = "公告跳转类型", readConverterExp = "1=.文章,2.链接")
+    private Integer noticeSkipType;
+
+    /** 公告类型 */
+    @Excel(name = "公告类型")
+    private String noticeTypeId;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setNoticeId(String noticeId) 
+    {
+        this.noticeId = noticeId;
+    }
+
+    public String getNoticeId() 
+    {
+        return noticeId;
+    }
+    public void setAppId(String appId) 
+    {
+        this.appId = appId;
+    }
+
+    public String getAppId() 
+    {
+        return appId;
+    }
+    public void setTitle(String title) 
+    {
+        this.title = title;
+    }
+
+    public String getTitle() 
+    {
+        return title;
+    }
+    public void setContent(String content) 
+    {
+        this.content = content;
+    }
+
+    public String getContent() 
+    {
+        return content;
+    }
+    public void setCreateAt(Date createAt) 
+    {
+        this.createAt = createAt;
+    }
+
+    public Date getCreateAt() 
+    {
+        return createAt;
+    }
+    public void setUpdateAt(Date updateAt) 
+    {
+        this.updateAt = updateAt;
+    }
+
+    public Date getUpdateAt() 
+    {
+        return updateAt;
+    }
+    public void setDeleteAt(Date deleteAt) 
+    {
+        this.deleteAt = deleteAt;
+    }
+
+    public Date getDeleteAt() 
+    {
+        return deleteAt;
+    }
+    public void setLinkUrl(String linkUrl) 
+    {
+        this.linkUrl = linkUrl;
+    }
+
+    public String getLinkUrl() 
+    {
+        return linkUrl;
+    }
+    public void setNoticeSkipType(Integer noticeSkipType) 
+    {
+        this.noticeSkipType = noticeSkipType;
+    }
+
+    public Integer getNoticeSkipType() 
+    {
+        return noticeSkipType;
+    }
+    public void setNoticeTypeId(String noticeTypeId) 
+    {
+        this.noticeTypeId = noticeTypeId;
+    }
+
+    public String getNoticeTypeId() 
+    {
+        return noticeTypeId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("noticeId", getNoticeId())
+            .append("appId", getAppId())
+            .append("title", getTitle())
+            .append("content", getContent())
+            .append("createAt", getCreateAt())
+            .append("updateAt", getUpdateAt())
+            .append("deleteAt", getDeleteAt())
+            .append("linkUrl", getLinkUrl())
+            .append("noticeSkipType", getNoticeSkipType())
+            .append("noticeTypeId", getNoticeTypeId())
+            .toString();
+    }
+}

+ 464 - 0
ruoyi-system/src/main/java/com/ruoyi/system/domain/LzydUser.java

@@ -0,0 +1,464 @@
+package com.ruoyi.system.domain;
+
+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.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+对象 lzyd_user
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public class LzydUser extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** $column.columnComment */
+    private Long id;
+
+    /** 用户id */
+    @Excel(name = "用户id")
+    private String userId;
+
+    /** 账户类型(0无状态,1普通用户,2vip用户,3商户,4内部) */
+    @Excel(name = "账户类型", readConverterExp = "0=无状态,1普通用户,2vip用户,3商户,4内部")
+    private Integer role;
+
+    /** 用户姓名 */
+    @Excel(name = "用户姓名")
+    private String username;
+
+    /** 用户地址 */
+    @Excel(name = "用户地址")
+    private String address;
+
+    /** 地区 */
+    @Excel(name = "地区")
+    private String area;
+
+    /** 密码 */
+    @Excel(name = "密码")
+    private String password;
+
+    /** 用户手机号 */
+    @Excel(name = "用户手机号")
+    private String mobilePhone;
+
+    /** 用户头像 */
+    @Excel(name = "用户头像")
+    private String userAvatar;
+
+    /** 用户二维码 */
+    @Excel(name = "用户二维码")
+    private String qrCode;
+
+    /** 用户排位赛级别 */
+    @Excel(name = "用户排位赛级别")
+    private String userGrade;
+
+    /** 昵称 */
+    @Excel(name = "昵称")
+    private String realName;
+
+    /** 上一次登录时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "上一次登录时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date loginTime;
+
+    /** 注册时间 */
+    @JsonFormat(pattern = "yyyy-MM-dd")
+    @Excel(name = "注册时间", width = 30, dateFormat = "yyyy-MM-dd")
+    private Date registerTime;
+
+    /** 点赞数 */
+    @Excel(name = "点赞数")
+    private Integer likeNum;
+
+    /** 粉丝数 */
+    @Excel(name = "粉丝数")
+    private Integer fansNum;
+
+    /** 关注数 */
+    @Excel(name = "关注数")
+    private Integer attenNum;
+
+    /** 总公里数 */
+    @Excel(name = "总公里数")
+    private Long totalDistance;
+
+    /** 马拉松场次 */
+    @Excel(name = "马拉松场次")
+    private Integer timesMarathon;
+
+    /** 排位赛场次 */
+    @Excel(name = "排位赛场次")
+    private Integer timesQualifier;
+
+    /** 是否删除(默认值0) */
+    @Excel(name = "是否删除(默认值0)")
+    private Integer isDelete;
+
+    /** 用户账号状态(0无状态,1正常状态,2待审核,3封禁) */
+    @Excel(name = "用户账号状态", readConverterExp = "0=无状态,1正常状态,2待审核,3封禁")
+    private Integer status;
+
+    /** 体重 */
+    @Excel(name = "体重")
+    private Integer weight;
+
+    /** 身高 */
+    @Excel(name = "身高")
+    private Integer height;
+
+    /** 积分 */
+    @Excel(name = "积分")
+    private Long userPoint;
+
+    /** 余额 */
+    @Excel(name = "余额")
+    private Long userMoney;
+
+    /** 登录方式(1=手机号登录,2=快捷登录,3=第三方登录) */
+    private Integer loginType;
+
+    /** 性别:0=保密,1=男,2=女 */
+    @Excel(name = "性别:0=保密,1=男,2=女")
+    private Integer gender;
+
+    /** 会员生日 */
+    @Excel(name = "会员生日")
+    private String birthday;
+
+    /** appid */
+    @Excel(name = "appid")
+    private String appId;
+
+    /** 排位赛积分 */
+    @Excel(name = "排位赛积分")
+    private Long qualifyingPoints;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setUserId(String userId) 
+    {
+        this.userId = userId;
+    }
+
+    public String getUserId() 
+    {
+        return userId;
+    }
+    public void setRole(Integer role) 
+    {
+        this.role = role;
+    }
+
+    public Integer getRole() 
+    {
+        return role;
+    }
+    public void setUsername(String username) 
+    {
+        this.username = username;
+    }
+
+    public String getUsername() 
+    {
+        return username;
+    }
+    public void setAddress(String address) 
+    {
+        this.address = address;
+    }
+
+    public String getAddress() 
+    {
+        return address;
+    }
+    public void setArea(String area) 
+    {
+        this.area = area;
+    }
+
+    public String getArea() 
+    {
+        return area;
+    }
+    public void setPassword(String password) 
+    {
+        this.password = password;
+    }
+
+    public String getPassword() 
+    {
+        return password;
+    }
+    public void setMobilePhone(String mobilePhone) 
+    {
+        this.mobilePhone = mobilePhone;
+    }
+
+    public String getMobilePhone() 
+    {
+        return mobilePhone;
+    }
+    public void setUserAvatar(String userAvatar) 
+    {
+        this.userAvatar = userAvatar;
+    }
+
+    public String getUserAvatar() 
+    {
+        return userAvatar;
+    }
+    public void setQrCode(String qrCode) 
+    {
+        this.qrCode = qrCode;
+    }
+
+    public String getQrCode() 
+    {
+        return qrCode;
+    }
+    public void setUserGrade(String userGrade) 
+    {
+        this.userGrade = userGrade;
+    }
+
+    public String getUserGrade() 
+    {
+        return userGrade;
+    }
+    public void setRealName(String realName) 
+    {
+        this.realName = realName;
+    }
+
+    public String getRealName() 
+    {
+        return realName;
+    }
+    public void setLoginTime(Date loginTime) 
+    {
+        this.loginTime = loginTime;
+    }
+
+    public Date getLoginTime() 
+    {
+        return loginTime;
+    }
+    public void setRegisterTime(Date registerTime) 
+    {
+        this.registerTime = registerTime;
+    }
+
+    public Date getRegisterTime() 
+    {
+        return registerTime;
+    }
+    public void setLikeNum(Integer likeNum) 
+    {
+        this.likeNum = likeNum;
+    }
+
+    public Integer getLikeNum() 
+    {
+        return likeNum;
+    }
+    public void setFansNum(Integer fansNum) 
+    {
+        this.fansNum = fansNum;
+    }
+
+    public Integer getFansNum() 
+    {
+        return fansNum;
+    }
+    public void setAttenNum(Integer attenNum) 
+    {
+        this.attenNum = attenNum;
+    }
+
+    public Integer getAttenNum() 
+    {
+        return attenNum;
+    }
+    public void setTotalDistance(Long totalDistance) 
+    {
+        this.totalDistance = totalDistance;
+    }
+
+    public Long getTotalDistance() 
+    {
+        return totalDistance;
+    }
+    public void setTimesMarathon(Integer timesMarathon) 
+    {
+        this.timesMarathon = timesMarathon;
+    }
+
+    public Integer getTimesMarathon() 
+    {
+        return timesMarathon;
+    }
+    public void setTimesQualifier(Integer timesQualifier) 
+    {
+        this.timesQualifier = timesQualifier;
+    }
+
+    public Integer getTimesQualifier() 
+    {
+        return timesQualifier;
+    }
+    public void setIsDelete(Integer isDelete) 
+    {
+        this.isDelete = isDelete;
+    }
+
+    public Integer getIsDelete() 
+    {
+        return isDelete;
+    }
+    public void setStatus(Integer status) 
+    {
+        this.status = status;
+    }
+
+    public Integer getStatus() 
+    {
+        return status;
+    }
+    public void setWeight(Integer weight) 
+    {
+        this.weight = weight;
+    }
+
+    public Integer getWeight() 
+    {
+        return weight;
+    }
+    public void setHeight(Integer height) 
+    {
+        this.height = height;
+    }
+
+    public Integer getHeight() 
+    {
+        return height;
+    }
+    public void setUserPoint(Long userPoint) 
+    {
+        this.userPoint = userPoint;
+    }
+
+    public Long getUserPoint() 
+    {
+        return userPoint;
+    }
+    public void setUserMoney(Long userMoney) 
+    {
+        this.userMoney = userMoney;
+    }
+
+    public Long getUserMoney() 
+    {
+        return userMoney;
+    }
+    public void setLoginType(Integer loginType) 
+    {
+        this.loginType = loginType;
+    }
+
+    public Integer getLoginType() 
+    {
+        return loginType;
+    }
+    public void setGender(Integer gender) 
+    {
+        this.gender = gender;
+    }
+
+    public Integer getGender() 
+    {
+        return gender;
+    }
+    public void setBirthday(String birthday) 
+    {
+        this.birthday = birthday;
+    }
+
+    public String getBirthday() 
+    {
+        return birthday;
+    }
+    public void setAppId(String appId) 
+    {
+        this.appId = appId;
+    }
+
+    public String getAppId() 
+    {
+        return appId;
+    }
+    public void setQualifyingPoints(Long qualifyingPoints) 
+    {
+        this.qualifyingPoints = qualifyingPoints;
+    }
+
+    public Long getQualifyingPoints() 
+    {
+        return qualifyingPoints;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("userId", getUserId())
+            .append("role", getRole())
+            .append("username", getUsername())
+            .append("address", getAddress())
+            .append("area", getArea())
+            .append("password", getPassword())
+            .append("mobilePhone", getMobilePhone())
+            .append("userAvatar", getUserAvatar())
+            .append("qrCode", getQrCode())
+            .append("userGrade", getUserGrade())
+            .append("realName", getRealName())
+            .append("loginTime", getLoginTime())
+            .append("registerTime", getRegisterTime())
+            .append("likeNum", getLikeNum())
+            .append("fansNum", getFansNum())
+            .append("attenNum", getAttenNum())
+            .append("totalDistance", getTotalDistance())
+            .append("timesMarathon", getTimesMarathon())
+            .append("timesQualifier", getTimesQualifier())
+            .append("createTime", getCreateTime())
+            .append("updateTime", getUpdateTime())
+            .append("isDelete", getIsDelete())
+            .append("status", getStatus())
+            .append("weight", getWeight())
+            .append("height", getHeight())
+            .append("userPoint", getUserPoint())
+            .append("userMoney", getUserMoney())
+            .append("loginType", getLoginType())
+            .append("gender", getGender())
+            .append("birthday", getBirthday())
+            .append("appId", getAppId())
+            .append("qualifyingPoints", getQualifyingPoints())
+            .toString();
+    }
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/LzydNoticeMapper.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.LzydNotice;
+
+/**
+ * 公告模块Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public interface LzydNoticeMapper 
+{
+    /**
+     * 查询公告模块
+     * 
+     * @param id 公告模块ID
+     * @return 公告模块
+     */
+    public LzydNotice selectLzydNoticeById(Long id);
+
+    /**
+     * 查询公告模块列表
+     * 
+     * @param lzydNotice 公告模块
+     * @return 公告模块集合
+     */
+    public List<LzydNotice> selectLzydNoticeList(LzydNotice lzydNotice);
+
+    /**
+     * 新增公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    public int insertLzydNotice(LzydNotice lzydNotice);
+
+    /**
+     * 修改公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    public int updateLzydNotice(LzydNotice lzydNotice);
+
+    /**
+     * 删除公告模块
+     * 
+     * @param id 公告模块ID
+     * @return 结果
+     */
+    public int deleteLzydNoticeById(Long id);
+
+    /**
+     * 批量删除公告模块
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteLzydNoticeByIds(Long[] ids);
+}

+ 89 - 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/LzydUserMapper.java

@@ -0,0 +1,89 @@
+package com.ruoyi.system.mapper;
+
+import java.util.List;
+import com.ruoyi.system.domain.LzydUser;
+
+/**
+ * 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public interface LzydUserMapper 
+{
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    public LzydUser selectLzydUserById(Long id);
+
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+列表
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+集合
+     */
+    public List<LzydUser> selectLzydUserList(LzydUser lzydUser);
+
+    /**
+     * 新增悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    public int insertLzydUser(LzydUser lzydUser);
+
+    /**
+     * 修改悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    public int updateLzydUser(LzydUser lzydUser);
+
+    /**
+     * 删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 结果
+     */
+    public int deleteLzydUserById(Long id);
+
+    /**
+     * 批量删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param ids 需要删除的数据ID
+     * @return 结果
+     */
+    public int deleteLzydUserByIds(Long[] ids);
+}

+ 61 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ILzydNoticeService.java

@@ -0,0 +1,61 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.LzydNotice;
+
+/**
+ * 公告模块Service接口
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public interface ILzydNoticeService 
+{
+    /**
+     * 查询公告模块
+     * 
+     * @param id 公告模块ID
+     * @return 公告模块
+     */
+    public LzydNotice selectLzydNoticeById(Long id);
+
+    /**
+     * 查询公告模块列表
+     * 
+     * @param lzydNotice 公告模块
+     * @return 公告模块集合
+     */
+    public List<LzydNotice> selectLzydNoticeList(LzydNotice lzydNotice);
+
+    /**
+     * 新增公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    public int insertLzydNotice(LzydNotice lzydNotice);
+
+    /**
+     * 修改公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    public int updateLzydNotice(LzydNotice lzydNotice);
+
+    /**
+     * 批量删除公告模块
+     * 
+     * @param ids 需要删除的公告模块ID
+     * @return 结果
+     */
+    public int deleteLzydNoticeByIds(Long[] ids);
+
+    /**
+     * 删除公告模块信息
+     * 
+     * @param id 公告模块ID
+     * @return 结果
+     */
+    public int deleteLzydNoticeById(Long id);
+}

+ 91 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/ILzydUserService.java

@@ -0,0 +1,91 @@
+package com.ruoyi.system.service;
+
+import java.util.List;
+import com.ruoyi.system.domain.LzydUser;
+
+/**
+ * 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+Service接口
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+public interface ILzydUserService 
+{
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    public LzydUser selectLzydUserById(Long id);
+
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+列表
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+集合
+     */
+    public List<LzydUser> selectLzydUserList(LzydUser lzydUser);
+
+    /**
+     * 新增悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    public int insertLzydUser(LzydUser lzydUser);
+
+    /**
+     * 修改悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    public int updateLzydUser(LzydUser lzydUser);
+
+    /**
+     * 批量删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param ids 需要删除的悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 结果
+     */
+    public int deleteLzydUserByIds(Long[] ids);
+
+    /**
+     * 删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+信息
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 结果
+     */
+    public int deleteLzydUserById(Long id);
+}

+ 93 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/LzydNoticeServiceImpl.java

@@ -0,0 +1,93 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.LzydNoticeMapper;
+import com.ruoyi.system.domain.LzydNotice;
+import com.ruoyi.system.service.ILzydNoticeService;
+
+/**
+ * 公告模块Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+@Service
+public class LzydNoticeServiceImpl implements ILzydNoticeService 
+{
+    @Autowired
+    private LzydNoticeMapper lzydNoticeMapper;
+
+    /**
+     * 查询公告模块
+     * 
+     * @param id 公告模块ID
+     * @return 公告模块
+     */
+    @Override
+    public LzydNotice selectLzydNoticeById(Long id)
+    {
+        return lzydNoticeMapper.selectLzydNoticeById(id);
+    }
+
+    /**
+     * 查询公告模块列表
+     * 
+     * @param lzydNotice 公告模块
+     * @return 公告模块
+     */
+    @Override
+    public List<LzydNotice> selectLzydNoticeList(LzydNotice lzydNotice)
+    {
+        return lzydNoticeMapper.selectLzydNoticeList(lzydNotice);
+    }
+
+    /**
+     * 新增公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    @Override
+    public int insertLzydNotice(LzydNotice lzydNotice)
+    {
+        return lzydNoticeMapper.insertLzydNotice(lzydNotice);
+    }
+
+    /**
+     * 修改公告模块
+     * 
+     * @param lzydNotice 公告模块
+     * @return 结果
+     */
+    @Override
+    public int updateLzydNotice(LzydNotice lzydNotice)
+    {
+        return lzydNoticeMapper.updateLzydNotice(lzydNotice);
+    }
+
+    /**
+     * 批量删除公告模块
+     * 
+     * @param ids 需要删除的公告模块ID
+     * @return 结果
+     */
+    @Override
+    public int deleteLzydNoticeByIds(Long[] ids)
+    {
+        return lzydNoticeMapper.deleteLzydNoticeByIds(ids);
+    }
+
+    /**
+     * 删除公告模块信息
+     * 
+     * @param id 公告模块ID
+     * @return 结果
+     */
+    @Override
+    public int deleteLzydNoticeById(Long id)
+    {
+        return lzydNoticeMapper.deleteLzydNoticeById(id);
+    }
+}

+ 126 - 0
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/LzydUserServiceImpl.java

@@ -0,0 +1,126 @@
+package com.ruoyi.system.service.impl;
+
+import java.util.List;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+import com.ruoyi.system.mapper.LzydUserMapper;
+import com.ruoyi.system.domain.LzydUser;
+import com.ruoyi.system.service.ILzydUserService;
+
+/**
+ * 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+Service业务层处理
+ * 
+ * @author ruoyi
+ * @date 2021-04-07
+ */
+@Service
+public class LzydUserServiceImpl implements ILzydUserService 
+{
+    @Autowired
+    private LzydUserMapper lzydUserMapper;
+
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    @Override
+    public LzydUser selectLzydUserById(Long id)
+    {
+        return lzydUserMapper.selectLzydUserById(id);
+    }
+
+    /**
+     * 查询悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+列表
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     */
+    @Override
+    public List<LzydUser> selectLzydUserList(LzydUser lzydUser)
+    {
+        return lzydUserMapper.selectLzydUserList(lzydUser);
+    }
+
+    /**
+     * 新增悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    @Override
+    public int insertLzydUser(LzydUser lzydUser)
+    {
+        lzydUser.setCreateTime(DateUtils.getNowDate());
+        return lzydUserMapper.insertLzydUser(lzydUser);
+    }
+
+    /**
+     * 修改悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param lzydUser 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * @return 结果
+     */
+    @Override
+    public int updateLzydUser(LzydUser lzydUser)
+    {
+        lzydUser.setUpdateTime(DateUtils.getNowDate());
+        return lzydUserMapper.updateLzydUser(lzydUser);
+    }
+
+    /**
+     * 批量删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+
+     * 
+     * @param ids 需要删除的悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 结果
+     */
+    @Override
+    public int deleteLzydUserByIds(Long[] ids)
+    {
+        return lzydUserMapper.deleteLzydUserByIds(ids);
+    }
+
+    /**
+     * 删除悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+信息
+     * 
+     * @param id 悦动APP-用户信息记录
+荔枝悦动用户,主要包含用户的信息字段,如:账号密码头像手机号等信息
+ID
+     * @return 结果
+     */
+    @Override
+    public int deleteLzydUserById(Long id)
+    {
+        return lzydUserMapper.deleteLzydUserById(id);
+    }
+}

+ 101 - 0
ruoyi-system/src/main/resources/mapper/system/LzydNoticeMapper.xml

@@ -0,0 +1,101 @@
+<?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.ruoyi.system.mapper.LzydNoticeMapper">
+    
+    <resultMap type="LzydNotice" id="LzydNoticeResult">
+        <result property="id"    column="id"    />
+        <result property="noticeId"    column="notice_id"    />
+        <result property="appId"    column="app_id"    />
+        <result property="title"    column="title"    />
+        <result property="content"    column="content"    />
+        <result property="createAt"    column="create_at"    />
+        <result property="updateAt"    column="update_at"    />
+        <result property="deleteAt"    column="delete_at"    />
+        <result property="linkUrl"    column="link_url"    />
+        <result property="noticeSkipType"    column="notice_skip_type"    />
+        <result property="noticeTypeId"    column="notice_type_id"    />
+    </resultMap>
+
+    <sql id="selectLzydNoticeVo">
+        select id, notice_id, app_id, title, content, create_at, update_at, delete_at, link_url, notice_skip_type, notice_type_id from lzyd_notice
+    </sql>
+
+    <select id="selectLzydNoticeList" parameterType="LzydNotice" resultMap="LzydNoticeResult">
+        <include refid="selectLzydNoticeVo"/>
+        <where>  
+            <if test="noticeId != null  and noticeId != ''"> and notice_id = #{noticeId}</if>
+            <if test="appId != null  and appId != ''"> and app_id = #{appId}</if>
+            <if test="title != null  and title != ''"> and title = #{title}</if>
+            <if test="content != null  and content != ''"> and content = #{content}</if>
+            <if test="createAt != null "> and create_at = #{createAt}</if>
+            <if test="updateAt != null "> and update_at = #{updateAt}</if>
+            <if test="deleteAt != null "> and delete_at = #{deleteAt}</if>
+            <if test="linkUrl != null  and linkUrl != ''"> and link_url = #{linkUrl}</if>
+            <if test="noticeSkipType != null "> and notice_skip_type = #{noticeSkipType}</if>
+            <if test="noticeTypeId != null  and noticeTypeId != ''"> and notice_type_id = #{noticeTypeId}</if>
+        </where>
+    </select>
+    
+    <select id="selectLzydNoticeById" parameterType="Long" resultMap="LzydNoticeResult">
+        <include refid="selectLzydNoticeVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertLzydNotice" parameterType="LzydNotice" useGeneratedKeys="true" keyProperty="id">
+        insert into lzyd_notice
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="noticeId != null and noticeId != ''">notice_id,</if>
+            <if test="appId != null and appId != ''">app_id,</if>
+            <if test="title != null and title != ''">title,</if>
+            <if test="content != null and content != ''">content,</if>
+            <if test="createAt != null">create_at,</if>
+            <if test="updateAt != null">update_at,</if>
+            <if test="deleteAt != null">delete_at,</if>
+            <if test="linkUrl != null and linkUrl != ''">link_url,</if>
+            <if test="noticeSkipType != null">notice_skip_type,</if>
+            <if test="noticeTypeId != null and noticeTypeId != ''">notice_type_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="noticeId != null and noticeId != ''">#{noticeId},</if>
+            <if test="appId != null and appId != ''">#{appId},</if>
+            <if test="title != null and title != ''">#{title},</if>
+            <if test="content != null and content != ''">#{content},</if>
+            <if test="createAt != null">#{createAt},</if>
+            <if test="updateAt != null">#{updateAt},</if>
+            <if test="deleteAt != null">#{deleteAt},</if>
+            <if test="linkUrl != null and linkUrl != ''">#{linkUrl},</if>
+            <if test="noticeSkipType != null">#{noticeSkipType},</if>
+            <if test="noticeTypeId != null and noticeTypeId != ''">#{noticeTypeId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateLzydNotice" parameterType="LzydNotice">
+        update lzyd_notice
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="noticeId != null and noticeId != ''">notice_id = #{noticeId},</if>
+            <if test="appId != null and appId != ''">app_id = #{appId},</if>
+            <if test="title != null and title != ''">title = #{title},</if>
+            <if test="content != null and content != ''">content = #{content},</if>
+            <if test="createAt != null">create_at = #{createAt},</if>
+            <if test="updateAt != null">update_at = #{updateAt},</if>
+            <if test="deleteAt != null">delete_at = #{deleteAt},</if>
+            <if test="linkUrl != null and linkUrl != ''">link_url = #{linkUrl},</if>
+            <if test="noticeSkipType != null">notice_skip_type = #{noticeSkipType},</if>
+            <if test="noticeTypeId != null and noticeTypeId != ''">notice_type_id = #{noticeTypeId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteLzydNoticeById" parameterType="Long">
+        delete from lzyd_notice where id = #{id}
+    </delete>
+
+    <delete id="deleteLzydNoticeByIds" parameterType="String">
+        delete from lzyd_notice where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 208 - 0
ruoyi-system/src/main/resources/mapper/system/LzydUserMapper.xml

@@ -0,0 +1,208 @@
+<?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.ruoyi.system.mapper.LzydUserMapper">
+    
+    <resultMap type="LzydUser" id="LzydUserResult">
+        <result property="id"    column="id"    />
+        <result property="userId"    column="user_id"    />
+        <result property="role"    column="role"    />
+        <result property="username"    column="username"    />
+        <result property="address"    column="address"    />
+        <result property="area"    column="area"    />
+        <result property="password"    column="password"    />
+        <result property="mobilePhone"    column="mobile_phone"    />
+        <result property="userAvatar"    column="user_avatar"    />
+        <result property="qrCode"    column="qr_code"    />
+        <result property="userGrade"    column="user_grade"    />
+        <result property="realName"    column="real_name"    />
+        <result property="loginTime"    column="login_time"    />
+        <result property="registerTime"    column="register_time"    />
+        <result property="likeNum"    column="like_num"    />
+        <result property="fansNum"    column="fans_num"    />
+        <result property="attenNum"    column="atten_num"    />
+        <result property="totalDistance"    column="total_distance"    />
+        <result property="timesMarathon"    column="times_marathon"    />
+        <result property="timesQualifier"    column="times_qualifier"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="isDelete"    column="is_delete"    />
+        <result property="status"    column="status"    />
+        <result property="weight"    column="weight"    />
+        <result property="height"    column="height"    />
+        <result property="userPoint"    column="user_point"    />
+        <result property="userMoney"    column="user_money"    />
+        <result property="loginType"    column="login_type"    />
+        <result property="gender"    column="gender"    />
+        <result property="birthday"    column="birthday"    />
+        <result property="appId"    column="app_id"    />
+        <result property="qualifyingPoints"    column="qualifying_points"    />
+    </resultMap>
+
+    <sql id="selectLzydUserVo">
+        select id, user_id, role, username, address, area, password, mobile_phone, user_avatar, qr_code, user_grade, real_name, login_time, register_time, like_num, fans_num, atten_num, total_distance, times_marathon, times_qualifier, create_time, update_time, is_delete, status, weight, height, user_point, user_money, login_type, gender, birthday, app_id, qualifying_points from lzyd_user
+    </sql>
+
+    <select id="selectLzydUserList" parameterType="LzydUser" resultMap="LzydUserResult">
+        <include refid="selectLzydUserVo"/>
+        <where>  
+            <if test="userId != null  and userId != ''"> and user_id = #{userId}</if>
+            <if test="role != null "> and role = #{role}</if>
+            <if test="username != null  and username != ''"> and username like concat('%', #{username}, '%')</if>
+            <if test="address != null  and address != ''"> and address = #{address}</if>
+            <if test="area != null  and area != ''"> and area = #{area}</if>
+            <if test="password != null  and password != ''"> and password = #{password}</if>
+            <if test="mobilePhone != null  and mobilePhone != ''"> and mobile_phone = #{mobilePhone}</if>
+            <if test="userAvatar != null  and userAvatar != ''"> and user_avatar = #{userAvatar}</if>
+            <if test="qrCode != null  and qrCode != ''"> and qr_code = #{qrCode}</if>
+            <if test="userGrade != null  and userGrade != ''"> and user_grade = #{userGrade}</if>
+            <if test="realName != null  and realName != ''"> and real_name like concat('%', #{realName}, '%')</if>
+            <if test="loginTime != null "> and login_time = #{loginTime}</if>
+            <if test="registerTime != null "> and register_time = #{registerTime}</if>
+            <if test="likeNum != null "> and like_num = #{likeNum}</if>
+            <if test="fansNum != null "> and fans_num = #{fansNum}</if>
+            <if test="attenNum != null "> and atten_num = #{attenNum}</if>
+            <if test="totalDistance != null "> and total_distance = #{totalDistance}</if>
+            <if test="timesMarathon != null "> and times_marathon = #{timesMarathon}</if>
+            <if test="timesQualifier != null "> and times_qualifier = #{timesQualifier}</if>
+            <if test="isDelete != null "> and is_delete = #{isDelete}</if>
+            <if test="status != null "> and status = #{status}</if>
+            <if test="weight != null "> and weight = #{weight}</if>
+            <if test="height != null "> and height = #{height}</if>
+            <if test="userPoint != null "> and user_point = #{userPoint}</if>
+            <if test="userMoney != null "> and user_money = #{userMoney}</if>
+            <if test="gender != null "> and gender = #{gender}</if>
+            <if test="birthday != null  and birthday != ''"> and birthday = #{birthday}</if>
+            <if test="appId != null  and appId != ''"> and app_id = #{appId}</if>
+            <if test="qualifyingPoints != null "> and qualifying_points = #{qualifyingPoints}</if>
+        </where>
+    </select>
+    
+    <select id="selectLzydUserById" parameterType="Long" resultMap="LzydUserResult">
+        <include refid="selectLzydUserVo"/>
+        where id = #{id}
+    </select>
+        
+    <insert id="insertLzydUser" parameterType="LzydUser" useGeneratedKeys="true" keyProperty="id">
+        insert into lzyd_user
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="userId != null and userId != ''">user_id,</if>
+            <if test="role != null">role,</if>
+            <if test="username != null and username != ''">username,</if>
+            <if test="address != null and address != ''">address,</if>
+            <if test="area != null and area != ''">area,</if>
+            <if test="password != null and password != ''">password,</if>
+            <if test="mobilePhone != null and mobilePhone != ''">mobile_phone,</if>
+            <if test="userAvatar != null and userAvatar != ''">user_avatar,</if>
+            <if test="qrCode != null and qrCode != ''">qr_code,</if>
+            <if test="userGrade != null and userGrade != ''">user_grade,</if>
+            <if test="realName != null and realName != ''">real_name,</if>
+            <if test="loginTime != null">login_time,</if>
+            <if test="registerTime != null">register_time,</if>
+            <if test="likeNum != null">like_num,</if>
+            <if test="fansNum != null">fans_num,</if>
+            <if test="attenNum != null">atten_num,</if>
+            <if test="totalDistance != null">total_distance,</if>
+            <if test="timesMarathon != null">times_marathon,</if>
+            <if test="timesQualifier != null">times_qualifier,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="isDelete != null">is_delete,</if>
+            <if test="status != null">status,</if>
+            <if test="weight != null">weight,</if>
+            <if test="height != null">height,</if>
+            <if test="userPoint != null">user_point,</if>
+            <if test="userMoney != null">user_money,</if>
+            <if test="loginType != null">login_type,</if>
+            <if test="gender != null">gender,</if>
+            <if test="birthday != null and birthday != ''">birthday,</if>
+            <if test="appId != null and appId != ''">app_id,</if>
+            <if test="qualifyingPoints != null">qualifying_points,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="userId != null and userId != ''">#{userId},</if>
+            <if test="role != null">#{role},</if>
+            <if test="username != null and username != ''">#{username},</if>
+            <if test="address != null and address != ''">#{address},</if>
+            <if test="area != null and area != ''">#{area},</if>
+            <if test="password != null and password != ''">#{password},</if>
+            <if test="mobilePhone != null and mobilePhone != ''">#{mobilePhone},</if>
+            <if test="userAvatar != null and userAvatar != ''">#{userAvatar},</if>
+            <if test="qrCode != null and qrCode != ''">#{qrCode},</if>
+            <if test="userGrade != null and userGrade != ''">#{userGrade},</if>
+            <if test="realName != null and realName != ''">#{realName},</if>
+            <if test="loginTime != null">#{loginTime},</if>
+            <if test="registerTime != null">#{registerTime},</if>
+            <if test="likeNum != null">#{likeNum},</if>
+            <if test="fansNum != null">#{fansNum},</if>
+            <if test="attenNum != null">#{attenNum},</if>
+            <if test="totalDistance != null">#{totalDistance},</if>
+            <if test="timesMarathon != null">#{timesMarathon},</if>
+            <if test="timesQualifier != null">#{timesQualifier},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="isDelete != null">#{isDelete},</if>
+            <if test="status != null">#{status},</if>
+            <if test="weight != null">#{weight},</if>
+            <if test="height != null">#{height},</if>
+            <if test="userPoint != null">#{userPoint},</if>
+            <if test="userMoney != null">#{userMoney},</if>
+            <if test="loginType != null">#{loginType},</if>
+            <if test="gender != null">#{gender},</if>
+            <if test="birthday != null and birthday != ''">#{birthday},</if>
+            <if test="appId != null and appId != ''">#{appId},</if>
+            <if test="qualifyingPoints != null">#{qualifyingPoints},</if>
+         </trim>
+    </insert>
+
+    <update id="updateLzydUser" parameterType="LzydUser">
+        update lzyd_user
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="userId != null and userId != ''">user_id = #{userId},</if>
+            <if test="role != null">role = #{role},</if>
+            <if test="username != null and username != ''">username = #{username},</if>
+            <if test="address != null and address != ''">address = #{address},</if>
+            <if test="area != null and area != ''">area = #{area},</if>
+            <if test="password != null and password != ''">password = #{password},</if>
+            <if test="mobilePhone != null and mobilePhone != ''">mobile_phone = #{mobilePhone},</if>
+            <if test="userAvatar != null and userAvatar != ''">user_avatar = #{userAvatar},</if>
+            <if test="qrCode != null and qrCode != ''">qr_code = #{qrCode},</if>
+            <if test="userGrade != null and userGrade != ''">user_grade = #{userGrade},</if>
+            <if test="realName != null and realName != ''">real_name = #{realName},</if>
+            <if test="loginTime != null">login_time = #{loginTime},</if>
+            <if test="registerTime != null">register_time = #{registerTime},</if>
+            <if test="likeNum != null">like_num = #{likeNum},</if>
+            <if test="fansNum != null">fans_num = #{fansNum},</if>
+            <if test="attenNum != null">atten_num = #{attenNum},</if>
+            <if test="totalDistance != null">total_distance = #{totalDistance},</if>
+            <if test="timesMarathon != null">times_marathon = #{timesMarathon},</if>
+            <if test="timesQualifier != null">times_qualifier = #{timesQualifier},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="isDelete != null">is_delete = #{isDelete},</if>
+            <if test="status != null">status = #{status},</if>
+            <if test="weight != null">weight = #{weight},</if>
+            <if test="height != null">height = #{height},</if>
+            <if test="userPoint != null">user_point = #{userPoint},</if>
+            <if test="userMoney != null">user_money = #{userMoney},</if>
+            <if test="loginType != null">login_type = #{loginType},</if>
+            <if test="gender != null">gender = #{gender},</if>
+            <if test="birthday != null and birthday != ''">birthday = #{birthday},</if>
+            <if test="appId != null and appId != ''">app_id = #{appId},</if>
+            <if test="qualifyingPoints != null">qualifying_points = #{qualifyingPoints},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteLzydUserById" parameterType="Long">
+        delete from lzyd_user where id = #{id}
+    </delete>
+
+    <delete id="deleteLzydUserByIds" parameterType="String">
+        delete from lzyd_user where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>