lzy 2 months ago
parent
commit
d6451104b1
20 changed files with 697 additions and 8 deletions
  1. 36 0
      Marketplace/src/main/java/com/dt/child/controller/LzyYverTypeController.java
  2. 141 0
      Marketplace/src/main/java/com/dt/child/domain/HxwVaccines.java
  3. 76 0
      Marketplace/src/main/java/com/dt/child/domain/LzyChengzhang.java
  4. 84 0
      Marketplace/src/main/java/com/dt/child/domain/LzyNeirong.java
  5. 68 0
      Marketplace/src/main/java/com/dt/child/domain/LzyYverType.java
  6. 18 0
      Marketplace/src/main/java/com/dt/child/mapper/LzyChengzhangMapper.java
  7. 18 0
      Marketplace/src/main/java/com/dt/child/mapper/LzyNeirongMapper.java
  8. 18 0
      Marketplace/src/main/java/com/dt/child/mapper/LzyYverTypeMapper.java
  9. 13 0
      Marketplace/src/main/java/com/dt/child/service/LzyChengzhangService.java
  10. 13 0
      Marketplace/src/main/java/com/dt/child/service/LzyNeirongService.java
  11. 23 0
      Marketplace/src/main/java/com/dt/child/service/LzyYverTypeService.java
  12. 22 0
      Marketplace/src/main/java/com/dt/child/service/impl/LzyChengzhangServiceImpl.java
  13. 22 0
      Marketplace/src/main/java/com/dt/child/service/impl/LzyNeirongServiceImpl.java
  14. 67 0
      Marketplace/src/main/java/com/dt/child/service/impl/LzyYverTypeServiceImpl.java
  15. 20 0
      Marketplace/src/main/java/com/dt/child/vo/LzyChengzhangVo.java
  16. 2 1
      Marketplace/src/main/java/com/dt/user/service/impl/UserServiceImpl.java
  17. 7 7
      Marketplace/src/main/resources/application.yml
  18. 16 0
      Marketplace/src/main/resources/mapper/LzyChengzhangMapper.xml
  19. 18 0
      Marketplace/src/main/resources/mapper/LzyNeirongMapper.xml
  20. 15 0
      Marketplace/src/main/resources/mapper/LzyYverTypeMapper.xml

+ 36 - 0
Marketplace/src/main/java/com/dt/child/controller/LzyYverTypeController.java

@@ -0,0 +1,36 @@
+package com.dt.child.controller;
+
+import com.dt.child.service.LzyYverTypeService;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("/YverType")
+public class LzyYverTypeController {
+
+
+    @Resource
+    private LzyYverTypeService lzyYverTypeService;
+
+
+//    查询类型
+    @RequestMapping("/findByType")
+    public Object findByType() {
+        return lzyYverTypeService.findByType();
+    }
+
+
+
+//    查询内容
+    @RequestMapping("/findByContent")
+    public Object findByContent(@RequestParam("id") Integer id) {
+        return lzyYverTypeService.findByContent(id);
+    }
+
+
+
+
+}

+ 141 - 0
Marketplace/src/main/java/com/dt/child/domain/HxwVaccines.java

@@ -0,0 +1,141 @@
+package com.dt.child.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * hxw_疫苗信息表:存储所有疫苗的基本信息
+ * @TableName hxw_vaccines
+ */
+@TableName(value ="hxw_vaccines")
+@Data
+public class HxwVaccines implements Serializable {
+    /**
+     * 疫苗ID
+     */
+    @TableId(type = IdType.AUTO)
+    private Integer id;
+
+    /**
+     * 所属分类ID
+     */
+    private Integer categoryId;
+
+    /**
+     * 疫苗名称,如"四价流感疫苗"
+     */
+    private String name;
+
+    /**
+     * 疫苗简称
+     */
+    private String shortName;
+
+    /**
+     * 是否免疫规划疫苗
+     */
+    private Integer isFree;
+
+    /**
+     * 是否热门疫苗
+     */
+    private Integer isHot;
+
+    /**
+     * 疫苗图标URL
+     */
+    private String iconUrl;
+
+    /**
+     * 简短介绍
+     */
+    private String briefIntro;
+
+    /**
+     * 显示顺序
+     */
+    private Integer displayOrder;
+
+    /**
+     * 创建时间
+     */
+    private Date createdAt;
+
+    /**
+     * 更新时间
+     */
+    private Date updatedAt;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        HxwVaccines other = (HxwVaccines) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getShortName() == null ? other.getShortName() == null : this.getShortName().equals(other.getShortName()))
+            && (this.getIsFree() == null ? other.getIsFree() == null : this.getIsFree().equals(other.getIsFree()))
+            && (this.getIsHot() == null ? other.getIsHot() == null : this.getIsHot().equals(other.getIsHot()))
+            && (this.getIconUrl() == null ? other.getIconUrl() == null : this.getIconUrl().equals(other.getIconUrl()))
+            && (this.getBriefIntro() == null ? other.getBriefIntro() == null : this.getBriefIntro().equals(other.getBriefIntro()))
+            && (this.getDisplayOrder() == null ? other.getDisplayOrder() == null : this.getDisplayOrder().equals(other.getDisplayOrder()))
+            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
+            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getShortName() == null) ? 0 : getShortName().hashCode());
+        result = prime * result + ((getIsFree() == null) ? 0 : getIsFree().hashCode());
+        result = prime * result + ((getIsHot() == null) ? 0 : getIsHot().hashCode());
+        result = prime * result + ((getIconUrl() == null) ? 0 : getIconUrl().hashCode());
+        result = prime * result + ((getBriefIntro() == null) ? 0 : getBriefIntro().hashCode());
+        result = prime * result + ((getDisplayOrder() == null) ? 0 : getDisplayOrder().hashCode());
+        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
+        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", categoryId=").append(categoryId);
+        sb.append(", name=").append(name);
+        sb.append(", shortName=").append(shortName);
+        sb.append(", isFree=").append(isFree);
+        sb.append(", isHot=").append(isHot);
+        sb.append(", iconUrl=").append(iconUrl);
+        sb.append(", briefIntro=").append(briefIntro);
+        sb.append(", displayOrder=").append(displayOrder);
+        sb.append(", createdAt=").append(createdAt);
+        sb.append(", updatedAt=").append(updatedAt);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 76 - 0
Marketplace/src/main/java/com/dt/child/domain/LzyChengzhang.java

@@ -0,0 +1,76 @@
+package com.dt.child.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 
+ * @TableName lzy_chengzhang
+ */
+@TableName(value ="lzy_chengzhang")
+@Data
+public class LzyChengzhang implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId
+    private Long id;
+
+    /**
+     * 名字
+     */
+    private String name;
+
+    /**
+     * id
+     */
+    private Long yverTypeId;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        LzyChengzhang other = (LzyChengzhang) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getYverTypeId() == null ? other.getYverTypeId() == null : this.getYverTypeId().equals(other.getYverTypeId()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getYverTypeId() == null) ? 0 : getYverTypeId().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", name=").append(name);
+        sb.append(", yverTypeId=").append(yverTypeId);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 84 - 0
Marketplace/src/main/java/com/dt/child/domain/LzyNeirong.java

@@ -0,0 +1,84 @@
+package com.dt.child.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 
+ * @TableName lzy_neirong
+ */
+@TableName(value ="lzy_neirong")
+@Data
+public class LzyNeirong implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId
+    private Long id;
+
+    /**
+     * 名字
+     */
+    private String name;
+
+    /**
+     * 是否火
+     */
+    private Integer isHos;
+
+    /**
+     * 成长id
+     */
+    private Long chengzhangId;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        LzyNeirong other = (LzyNeirong) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getIsHos() == null ? other.getIsHos() == null : this.getIsHos().equals(other.getIsHos()))
+            && (this.getChengzhangId() == null ? other.getChengzhangId() == null : this.getChengzhangId().equals(other.getChengzhangId()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getIsHos() == null) ? 0 : getIsHos().hashCode());
+        result = prime * result + ((getChengzhangId() == null) ? 0 : getChengzhangId().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", name=").append(name);
+        sb.append(", isHos=").append(isHos);
+        sb.append(", chengzhangId=").append(chengzhangId);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 68 - 0
Marketplace/src/main/java/com/dt/child/domain/LzyYverType.java

@@ -0,0 +1,68 @@
+package com.dt.child.domain;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 
+ * @TableName Lzy_yver_type
+ */
+@TableName(value ="Lzy_yver_type")
+@Data
+public class LzyYverType implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId
+    private Long id;
+
+    /**
+     * 名字
+     */
+    private String name;
+
+    @TableField(exist = false)
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public boolean equals(Object that) {
+        if (this == that) {
+            return true;
+        }
+        if (that == null) {
+            return false;
+        }
+        if (getClass() != that.getClass()) {
+            return false;
+        }
+        LzyYverType other = (LzyYverType) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        return result;
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", id=").append(id);
+        sb.append(", name=").append(name);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 18 - 0
Marketplace/src/main/java/com/dt/child/mapper/LzyChengzhangMapper.java

@@ -0,0 +1,18 @@
+package com.dt.child.mapper;
+
+import com.dt.child.domain.LzyChengzhang;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+* @author lzy
+* @description 针对表【lzy_chengzhang】的数据库操作Mapper
+* @createDate 2025-07-09 16:24:57
+* @Entity com.dt.child.domain.LzyChengzhang
+*/
+public interface LzyChengzhangMapper extends BaseMapper<LzyChengzhang> {
+
+}
+
+
+
+

+ 18 - 0
Marketplace/src/main/java/com/dt/child/mapper/LzyNeirongMapper.java

@@ -0,0 +1,18 @@
+package com.dt.child.mapper;
+
+import com.dt.child.domain.LzyNeirong;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+* @author lzy
+* @description 针对表【lzy_neirong】的数据库操作Mapper
+* @createDate 2025-07-09 17:05:30
+* @Entity com.dt.child.domain.LzyNeirong
+*/
+public interface LzyNeirongMapper extends BaseMapper<LzyNeirong> {
+
+}
+
+
+
+

+ 18 - 0
Marketplace/src/main/java/com/dt/child/mapper/LzyYverTypeMapper.java

@@ -0,0 +1,18 @@
+package com.dt.child.mapper;
+
+import com.dt.child.domain.LzyYverType;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+* @author lzy
+* @description 针对表【Lzy_yver_type】的数据库操作Mapper
+* @createDate 2025-07-09 16:24:58
+* @Entity com.dt.child.domain.LzyYverType
+*/
+public interface LzyYverTypeMapper extends BaseMapper<LzyYverType> {
+
+}
+
+
+
+

+ 13 - 0
Marketplace/src/main/java/com/dt/child/service/LzyChengzhangService.java

@@ -0,0 +1,13 @@
+package com.dt.child.service;
+
+import com.dt.child.domain.LzyChengzhang;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+* @author lzy
+* @description 针对表【lzy_chengzhang】的数据库操作Service
+* @createDate 2025-07-09 16:24:57
+*/
+public interface LzyChengzhangService extends IService<LzyChengzhang> {
+
+}

+ 13 - 0
Marketplace/src/main/java/com/dt/child/service/LzyNeirongService.java

@@ -0,0 +1,13 @@
+package com.dt.child.service;
+
+import com.dt.child.domain.LzyNeirong;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+* @author lzy
+* @description 针对表【lzy_neirong】的数据库操作Service
+* @createDate 2025-07-09 17:05:30
+*/
+public interface LzyNeirongService extends IService<LzyNeirong> {
+
+}

+ 23 - 0
Marketplace/src/main/java/com/dt/child/service/LzyYverTypeService.java

@@ -0,0 +1,23 @@
+package com.dt.child.service;
+
+import com.dt.child.domain.LzyYverType;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.dt.vo.Result;
+
+/**
+* @author lzy
+* @description 针对表【Lzy_yver_type】的数据库操作Service
+* @createDate 2025-07-09 16:24:58
+*/
+public interface LzyYverTypeService extends IService<LzyYverType> {
+
+
+//    查询类型
+    public Result findByType();
+
+
+//    查询内容
+    public Result findByContent(Integer id);
+
+
+}

+ 22 - 0
Marketplace/src/main/java/com/dt/child/service/impl/LzyChengzhangServiceImpl.java

@@ -0,0 +1,22 @@
+package com.dt.child.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.dt.child.domain.LzyChengzhang;
+import com.dt.child.service.LzyChengzhangService;
+import com.dt.child.mapper.LzyChengzhangMapper;
+import org.springframework.stereotype.Service;
+
+/**
+* @author lzy
+* @description 针对表【lzy_chengzhang】的数据库操作Service实现
+* @createDate 2025-07-09 16:24:57
+*/
+@Service
+public class LzyChengzhangServiceImpl extends ServiceImpl<LzyChengzhangMapper, LzyChengzhang>
+    implements LzyChengzhangService{
+
+}
+
+
+
+

+ 22 - 0
Marketplace/src/main/java/com/dt/child/service/impl/LzyNeirongServiceImpl.java

@@ -0,0 +1,22 @@
+package com.dt.child.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.dt.child.domain.LzyNeirong;
+import com.dt.child.service.LzyNeirongService;
+import com.dt.child.mapper.LzyNeirongMapper;
+import org.springframework.stereotype.Service;
+
+/**
+* @author lzy
+* @description 针对表【lzy_neirong】的数据库操作Service实现
+* @createDate 2025-07-09 17:05:30
+*/
+@Service
+public class LzyNeirongServiceImpl extends ServiceImpl<LzyNeirongMapper, LzyNeirong>
+    implements LzyNeirongService{
+
+}
+
+
+
+

+ 67 - 0
Marketplace/src/main/java/com/dt/child/service/impl/LzyYverTypeServiceImpl.java

@@ -0,0 +1,67 @@
+package com.dt.child.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.dt.child.domain.LzyChengzhang;
+import com.dt.child.domain.LzyNeirong;
+import com.dt.child.domain.LzyYverType;
+import com.dt.child.mapper.LzyChengzhangMapper;
+import com.dt.child.mapper.LzyNeirongMapper;
+import com.dt.child.service.LzyYverTypeService;
+import com.dt.child.mapper.LzyYverTypeMapper;
+import com.dt.child.vo.LzyChengzhangVo;
+import com.dt.vo.Result;
+import org.apache.commons.compress.compressors.lzma.LZMAUtils;
+import org.springframework.stereotype.Service;
+
+import javax.annotation.Resource;
+import java.awt.geom.RectangularShape;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+/**
+* @author lzy
+* @description 针对表【Lzy_yver_type】的数据库操作Service实现
+* @createDate 2025-07-09 16:24:57
+*/
+@Service
+public class LzyYverTypeServiceImpl extends ServiceImpl<LzyYverTypeMapper, LzyYverType>
+    implements LzyYverTypeService{
+
+
+    @Resource
+    private LzyChengzhangMapper lzyChengzhangMapper;
+    @Resource
+    private LzyNeirongMapper lzyNeirongMapper;
+
+//   查询类型
+    @Override
+    public Result findByType() {
+        List<LzyYverType> lzyYverTypes = this.baseMapper.selectList(new LambdaQueryWrapper<>(null));
+        return Result.ok(lzyYverTypes, "查询成功");
+    }
+
+//    查询热内容
+    @Override
+    public Result findByContent(Integer id) {
+        List<LzyChengzhang> lzyChengzhangs = lzyChengzhangMapper.selectList(new LambdaQueryWrapper<LzyChengzhang>().eq(LzyChengzhang::getYverTypeId, id));
+        List<Long> collect = lzyChengzhangs.stream().map(ppt -> ppt.getId()).collect(Collectors.toList());
+        List<LzyNeirong> lzyNeirongs = lzyNeirongMapper.selectList(new LambdaQueryWrapper<LzyNeirong>().in(LzyNeirong::getChengzhangId, collect));
+        Map<Long, List<LzyNeirong>> map=lzyNeirongs.stream().collect(Collectors.groupingBy(LzyNeirong::getChengzhangId));
+        List<LzyChengzhangVo> list=new ArrayList<>();
+        for (LzyChengzhang lzyChengzhang:lzyChengzhangs){
+            LzyChengzhangVo lzyChengzhangVo = new LzyChengzhangVo();
+            lzyChengzhangVo.setName(lzyChengzhang.getName());
+            List<LzyNeirong> lzyNeirongs1 = map.get(lzyChengzhang.getYverTypeId());
+            lzyChengzhangVo.setList(lzyNeirongs1);
+            list.add(lzyChengzhangVo);
+        }
+        return Result.ok(list,"查询成功");
+    }
+}
+
+
+
+

+ 20 - 0
Marketplace/src/main/java/com/dt/child/vo/LzyChengzhangVo.java

@@ -0,0 +1,20 @@
+package com.dt.child.vo;
+
+import com.dt.child.domain.LzyChengzhang;
+import com.dt.child.domain.LzyNeirong;
+import lombok.Data;
+
+import java.util.List;
+
+@Data
+public class LzyChengzhangVo {
+
+
+
+
+    private String name;
+
+    private List<LzyNeirong> list;
+
+
+}

+ 2 - 1
Marketplace/src/main/java/com/dt/user/service/impl/UserServiceImpl.java

@@ -71,7 +71,8 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User>
 
         // 5. 生成token
         String token = TokenUtils.createJwtToken(user.getId().toString());
-
+        System.out.println(user.getId());
+        System.out.println(token);
         // 6. 存入Redis
         stringRedisTemplate.opsForValue().set(user.getId().toString(), token);
         // 7. 构建返回对象

+ 7 - 7
Marketplace/src/main/resources/application.yml

@@ -19,13 +19,13 @@ spring:
     host: 101.200.59.170
     port: 6379
     database: 0
-    template:
-      default-type: java.lang.String
-      enable-transaction-support: true
-      # 序列化器配置(新增)
-      serializer:
-        key: string
-        value: json
+#    template:
+#      default-type: java.lang.String
+#      enable-transaction-support: true
+#      # 序列化器配置(新增)
+#      serializer:
+#        key: string
+#        value: json
 
 
 

+ 16 - 0
Marketplace/src/main/resources/mapper/LzyChengzhangMapper.xml

@@ -0,0 +1,16 @@
+<?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.dt.child.mapper.LzyChengzhangMapper">
+
+    <resultMap id="BaseResultMap" type="com.dt.child.domain.LzyChengzhang">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="yverTypeId" column="yver_type_id" jdbcType="BIGINT"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,yver_type_id
+    </sql>
+</mapper>

+ 18 - 0
Marketplace/src/main/resources/mapper/LzyNeirongMapper.xml

@@ -0,0 +1,18 @@
+<?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.dt.child.mapper.LzyNeirongMapper">
+
+    <resultMap id="BaseResultMap" type="com.dt.child.domain.LzyNeirong">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="isHos" column="is_hos" jdbcType="INTEGER"/>
+            <result property="chengzhangId" column="chengzhang_id" jdbcType="BIGINT"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name,is_hos,
+        chengzhang_id
+    </sql>
+</mapper>

+ 15 - 0
Marketplace/src/main/resources/mapper/LzyYverTypeMapper.xml

@@ -0,0 +1,15 @@
+<?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.dt.child.mapper.LzyYverTypeMapper">
+
+    <resultMap id="BaseResultMap" type="com.dt.child.domain.LzyYverType">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,name
+    </sql>
+</mapper>