lzy 2 months ago
parent
commit
1504822144
18 changed files with 384 additions and 23 deletions
  1. 24 0
      Marketplace/src/main/java/com/dt/child/controller/LzyFoodContentController.java
  2. 7 0
      Marketplace/src/main/java/com/dt/child/controller/LzyShiwuController.java
  3. 84 0
      Marketplace/src/main/java/com/dt/child/domain/LzyFoodContent.java
  4. 96 0
      Marketplace/src/main/java/com/dt/child/domain/LzyShiwuXiangqing.java
  5. 10 0
      Marketplace/src/main/java/com/dt/child/dto/LzyShiwuXiangqingDto.java
  6. 3 3
      Marketplace/src/main/java/com/dt/child/mapper/LzyFoodContentMapper.java
  7. 18 0
      Marketplace/src/main/java/com/dt/child/mapper/LzyShiwuXiangqingMapper.java
  8. 3 6
      Marketplace/src/main/java/com/dt/child/service/LzyFoodContentService.java
  9. 3 1
      Marketplace/src/main/java/com/dt/child/service/LzyShiwuService.java
  10. 1 1
      Marketplace/src/main/java/com/dt/child/service/LzyShiwuTypeService.java
  11. 13 0
      Marketplace/src/main/java/com/dt/child/service/LzyShiwuXiangqingService.java
  12. 5 10
      Marketplace/src/main/java/com/dt/child/service/impl/LzyFoodContentServiceImpl.java
  13. 27 0
      Marketplace/src/main/java/com/dt/child/service/impl/LzyShiwuServiceImpl.java
  14. 22 0
      Marketplace/src/main/java/com/dt/child/service/impl/LzyShiwuXiangqingServiceImpl.java
  15. 26 0
      Marketplace/src/main/java/com/dt/child/vo/LzyShiwuXiangqingVo.java
  16. 19 0
      Marketplace/src/main/java/com/dt/child/vo/UserVo.java
  17. 4 2
      Marketplace/src/main/resources/mapper/LzyFoodContentMapper.xml
  18. 19 0
      Marketplace/src/main/resources/mapper/LzyShiwuXiangqingMapper.xml

+ 24 - 0
Marketplace/src/main/java/com/dt/child/controller/LzyFoodContentController.java

@@ -0,0 +1,24 @@
+package com.dt.child.controller;
+
+import com.dt.child.service.LzyFoodContentService;
+import com.dt.vo.Result;
+import lombok.Data;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+
+@RestController
+@RequestMapping("FoodContent")
+public class LzyFoodContentController {
+
+    @Resource
+    private LzyFoodContentService lzyFoodContentService;
+
+//  查询食物详情
+    @RequestMapping("selFoodContent")
+    public Result selFoodContent(Long id)
+    {
+        return lzyFoodContentService.selFoodContent(id);
+    }
+}

+ 7 - 0
Marketplace/src/main/java/com/dt/child/controller/LzyShiwuController.java

@@ -1,5 +1,6 @@
 package com.dt.child.controller;
 package com.dt.child.controller;
 
 
+import com.dt.child.dto.LzyShiwuXiangqingDto;
 import com.dt.child.dto.SelShiWuDto;
 import com.dt.child.dto.SelShiWuDto;
 import com.dt.child.service.LzyShiwuService;
 import com.dt.child.service.LzyShiwuService;
 import com.dt.vo.Result;
 import com.dt.vo.Result;
@@ -26,6 +27,12 @@ public class LzyShiwuController {
         return lzyShiwuService.selshiwu(selShiWuDto);
         return lzyShiwuService.selshiwu(selShiWuDto);
     }
     }
 
 
+//    食物详情
+    @PostMapping("selShiwuxiangqing")
+    public Result selShiwuxiangqing(@RequestBody LzyShiwuXiangqingDto selShiWuDto)
+    {
+        return lzyShiwuService.selshiwuxiangqing(selShiWuDto);
+    }
 
 
 
 
 
 

+ 84 - 0
Marketplace/src/main/java/com/dt/child/domain/LzyFoodContent.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_food_content
+ */
+@TableName(value ="lzy_food_content")
+@Data
+public class LzyFoodContent implements Serializable {
+    /**
+     * 主键
+     */
+    @TableId
+    private Long id;
+
+    /**
+     * 内容
+     */
+    private String foodContent;
+
+    /**
+     * 食物id
+     */
+    private Long foodId;
+
+    /**
+     * 名字
+     */
+    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;
+        }
+        LzyFoodContent other = (LzyFoodContent) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getFoodContent() == null ? other.getFoodContent() == null : this.getFoodContent().equals(other.getFoodContent()))
+            && (this.getFoodId() == null ? other.getFoodId() == null : this.getFoodId().equals(other.getFoodId()))
+            && (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 + ((getFoodContent() == null) ? 0 : getFoodContent().hashCode());
+        result = prime * result + ((getFoodId() == null) ? 0 : getFoodId().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(", foodContent=").append(foodContent);
+        sb.append(", foodId=").append(foodId);
+        sb.append(", name=").append(name);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 96 - 0
Marketplace/src/main/java/com/dt/child/domain/LzyShiwuXiangqing.java

@@ -0,0 +1,96 @@
+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_shiwu_xiangqing
+ */
+@TableName(value ="lzy_shiwu_xiangqing")
+@Data
+public class LzyShiwuXiangqing implements Serializable {
+    /**
+     * id
+     */
+    @TableId
+    private Long id;
+
+    /**
+     * 食物id
+     */
+    private Long foodId;
+
+    /**
+     * 名字
+     */
+    private String name;
+
+    /**
+     * 图片
+     */
+    private String img;
+
+    /**
+     * 类型
+     */
+    private String title;
+    private String xiangxi;
+
+    @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;
+        }
+        LzyShiwuXiangqing other = (LzyShiwuXiangqing) that;
+        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
+            && (this.getFoodId() == null ? other.getFoodId() == null : this.getFoodId().equals(other.getFoodId()))
+            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
+            && (this.getImg() == null ? other.getImg() == null : this.getImg().equals(other.getImg()))
+            && (this.getXiangxi() == null ? other.getXiangxi() == null : this.getXiangxi().equals(other.getXiangxi()))
+            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()));
+    }
+
+    @Override
+    public int hashCode() {
+        final int prime = 31;
+        int result = 1;
+        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
+        result = prime * result + ((getFoodId() == null) ? 0 : getFoodId().hashCode());
+        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
+        result = prime * result + ((getImg() == null) ? 0 : getImg().hashCode());
+        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
+        result = prime * result + ((getXiangxi() == null) ? 0 : getXiangxi().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(", foodId=").append(foodId);
+        sb.append(", name=").append(name);
+        sb.append(", img=").append(img);
+        sb.append(", title=").append(title);
+        sb.append(", xiangxi=").append(xiangxi);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 10 - 0
Marketplace/src/main/java/com/dt/child/dto/LzyShiwuXiangqingDto.java

@@ -0,0 +1,10 @@
+package com.dt.child.dto;
+
+import lombok.Data;
+
+@Data
+public class LzyShiwuXiangqingDto {
+
+    public Long id;
+
+}

+ 3 - 3
Marketplace/src/main/java/com/dt/child/mapper/LzyFoodContentMapper.java

@@ -1,13 +1,13 @@
 package com.dt.child.mapper;
 package com.dt.child.mapper;
 
 
-import com.dt.child.dao.LzyFoodContent;
+import com.dt.child.domain.LzyFoodContent;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 
 
 /**
 /**
 * @author lzy
 * @author lzy
 * @description 针对表【lzy_food_content】的数据库操作Mapper
 * @description 针对表【lzy_food_content】的数据库操作Mapper
-* @createDate 2025-07-04 15:59:30
-* @Entity com.dt.child.dao.LzyFoodContent
+* @createDate 2025-07-08 20:19:15
+* @Entity com.dt.child.domain.LzyFoodContent
 */
 */
 public interface LzyFoodContentMapper extends BaseMapper<LzyFoodContent> {
 public interface LzyFoodContentMapper extends BaseMapper<LzyFoodContent> {
 
 

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

@@ -0,0 +1,18 @@
+package com.dt.child.mapper;
+
+import com.dt.child.domain.LzyShiwuXiangqing;
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+
+/**
+* @author lzy
+* @description 针对表【lzy_shiwu_xiangqing】的数据库操作Mapper
+* @createDate 2025-07-08 19:40:52
+* @Entity com.dt.child.domain.LzyShiwuXiangqing
+*/
+public interface LzyShiwuXiangqingMapper extends BaseMapper<LzyShiwuXiangqing> {
+
+}
+
+
+
+

+ 3 - 6
Marketplace/src/main/java/com/dt/child/service/LzyFoodContentService.java

@@ -1,20 +1,17 @@
 package com.dt.child.service;
 package com.dt.child.service;
 
 
-import com.dt.child.dao.LzyFoodContent;
+import com.dt.child.domain.LzyFoodContent;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.baomidou.mybatisplus.extension.service.IService;
-import com.dt.child.dto.SelFoodContentDto;
 import com.dt.vo.Result;
 import com.dt.vo.Result;
 
 
 /**
 /**
 * @author lzy
 * @author lzy
 * @description 针对表【lzy_food_content】的数据库操作Service
 * @description 针对表【lzy_food_content】的数据库操作Service
-* @createDate 2025-07-04 15:59:30
+* @createDate 2025-07-08 20:19:15
 */
 */
 public interface LzyFoodContentService extends IService<LzyFoodContent> {
 public interface LzyFoodContentService extends IService<LzyFoodContent> {
 
 
-
 //    查询食物详情
 //    查询食物详情
-    Result selFoodContent(SelFoodContentDto selFoodContentDto);
-
+    Result selFoodContent(Long id);
 
 
 }
 }

+ 3 - 1
Marketplace/src/main/java/com/dt/child/service/LzyShiwuService.java

@@ -2,6 +2,7 @@ package com.dt.child.service;
 
 
 import com.dt.child.domain.LzyShiwu;
 import com.dt.child.domain.LzyShiwu;
 import com.baomidou.mybatisplus.extension.service.IService;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.dt.child.dto.LzyShiwuXiangqingDto;
 import com.dt.child.dto.SelShiWuDto;
 import com.dt.child.dto.SelShiWuDto;
 import com.dt.vo.Result;
 import com.dt.vo.Result;
 
 
@@ -14,5 +15,6 @@ public interface LzyShiwuService extends IService<LzyShiwu> {
 
 
 //  查询食物
 //  查询食物
      Result selshiwu(SelShiWuDto selShiWuDto);
      Result selshiwu(SelShiWuDto selShiWuDto);
-
+//  查询食物详情
+    Result selshiwuxiangqing(LzyShiwuXiangqingDto selShiWuDto);
 }
 }

+ 1 - 1
Marketplace/src/main/java/com/dt/child/service/LzyShiwuTypeService.java

@@ -21,5 +21,5 @@ public interface LzyShiwuTypeService extends IService<LzyShiwuType> {
     Result selShiwuType2();
     Result selShiwuType2();
 
 
 //查询类型中的食物
 //查询类型中的食物
-    Result selShiwu(SelShiwuDto1 selShiwuDto1);
+     Result selShiwu(SelShiwuDto1 selShiwuDto1);
 }
 }

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

@@ -0,0 +1,13 @@
+package com.dt.child.service;
+
+import com.dt.child.domain.LzyShiwuXiangqing;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+* @author lzy
+* @description 针对表【lzy_shiwu_xiangqing】的数据库操作Service
+* @createDate 2025-07-08 19:40:52
+*/
+public interface LzyShiwuXiangqingService extends IService<LzyShiwuXiangqing> {
+
+}

+ 5 - 10
Marketplace/src/main/java/com/dt/child/service/impl/LzyFoodContentServiceImpl.java

@@ -2,8 +2,7 @@ package com.dt.child.service.impl;
 
 
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
-import com.dt.child.dao.LzyFoodContent;
-import com.dt.child.dto.SelFoodContentDto;
+import com.dt.child.domain.LzyFoodContent;
 import com.dt.child.service.LzyFoodContentService;
 import com.dt.child.service.LzyFoodContentService;
 import com.dt.child.mapper.LzyFoodContentMapper;
 import com.dt.child.mapper.LzyFoodContentMapper;
 import com.dt.vo.Result;
 import com.dt.vo.Result;
@@ -12,20 +11,16 @@ import org.springframework.stereotype.Service;
 /**
 /**
 * @author lzy
 * @author lzy
 * @description 针对表【lzy_food_content】的数据库操作Service实现
 * @description 针对表【lzy_food_content】的数据库操作Service实现
-* @createDate 2025-07-04 15:59:30
+* @createDate 2025-07-08 20:19:15
 */
 */
 @Service
 @Service
 public class LzyFoodContentServiceImpl extends ServiceImpl<LzyFoodContentMapper, LzyFoodContent>
 public class LzyFoodContentServiceImpl extends ServiceImpl<LzyFoodContentMapper, LzyFoodContent>
     implements LzyFoodContentService{
     implements LzyFoodContentService{
 
 
-//
     @Override
     @Override
-    public Result selFoodContent(SelFoodContentDto selFoodContentDto) {
-        LzyFoodContent lzyFoodContent = this.baseMapper.selectOne(new LambdaQueryWrapper<LzyFoodContent>().eq(LzyFoodContent::getFoodId, selFoodContentDto.getId()));
-
-
-
-        return null;
+    public Result selFoodContent(Long id) {
+        LzyFoodContent lzyFoodContent = this.baseMapper.selectOne(new LambdaQueryWrapper<LzyFoodContent>().eq(LzyFoodContent::getFoodId, id));
+        return Result.ok(lzyFoodContent,"查询成功");
     }
     }
 }
 }
 
 

+ 27 - 0
Marketplace/src/main/java/com/dt/child/service/impl/LzyShiwuServiceImpl.java

@@ -3,12 +3,19 @@ package com.dt.child.service.impl;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.dt.child.domain.LzyShiwu;
 import com.dt.child.domain.LzyShiwu;
+import com.dt.child.domain.LzyShiwuXiangqing;
+import com.dt.child.dto.LzyShiwuXiangqingDto;
 import com.dt.child.dto.SelShiWuDto;
 import com.dt.child.dto.SelShiWuDto;
+import com.dt.child.mapper.LzyShiwuXiangqingMapper;
 import com.dt.child.service.LzyShiwuService;
 import com.dt.child.service.LzyShiwuService;
 import com.dt.child.mapper.LzyShiwuMapper;
 import com.dt.child.mapper.LzyShiwuMapper;
+import com.dt.child.vo.LzyShiwuXiangqingVo;
+import com.dt.child.vo.UserVo;
+import com.dt.user.pojo.User;
 import com.dt.vo.Result;
 import com.dt.vo.Result;
 import org.springframework.stereotype.Service;
 import org.springframework.stereotype.Service;
 
 
+import javax.annotation.Resource;
 import java.util.List;
 import java.util.List;
 
 
 /**
 /**
@@ -20,6 +27,9 @@ import java.util.List;
 public class LzyShiwuServiceImpl extends ServiceImpl<LzyShiwuMapper, LzyShiwu>
 public class LzyShiwuServiceImpl extends ServiceImpl<LzyShiwuMapper, LzyShiwu>
     implements LzyShiwuService{
     implements LzyShiwuService{
 
 
+    @Resource
+    private LzyShiwuXiangqingMapper lzyShiwuXiangqingMapper;
+
     //    查询食物
     //    查询食物
     @Override
     @Override
     public Result selshiwu(SelShiWuDto selShiWuDto) {
     public Result selshiwu(SelShiWuDto selShiWuDto) {
@@ -51,6 +61,23 @@ public class LzyShiwuServiceImpl extends ServiceImpl<LzyShiwuMapper, LzyShiwu>
         }
         }
         return Result.Err(null,"查询失败");
         return Result.Err(null,"查询失败");
     }
     }
+
+//    食物详情
+    @Override
+    public Result selshiwuxiangqing(LzyShiwuXiangqingDto selShiWuDto) {
+        LzyShiwuXiangqing lzyShiwuXiangqing = lzyShiwuXiangqingMapper.selectOne(new LambdaQueryWrapper<LzyShiwuXiangqing>().eq(LzyShiwuXiangqing::getFoodId, selShiWuDto.getId()));
+        LzyShiwuXiangqingVo lzyShiwuXiangqingVo=new LzyShiwuXiangqingVo();
+        lzyShiwuXiangqingVo.setName(lzyShiwuXiangqing.getName());
+        lzyShiwuXiangqingVo.setImg(lzyShiwuXiangqing.getImg());
+        lzyShiwuXiangqingVo.setTitle(lzyShiwuXiangqing.getTitle());
+        lzyShiwuXiangqingVo.setXiangxi(lzyShiwuXiangqing.getXiangxi());
+        UserVo userVo=new UserVo();
+        lzyShiwuXiangqingVo.setUserVo(userVo);
+        return Result.ok(lzyShiwuXiangqingVo,"查询成功");
+    }
+
+
+
 }
 }
 
 
 
 

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

@@ -0,0 +1,22 @@
+package com.dt.child.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.dt.child.domain.LzyShiwuXiangqing;
+import com.dt.child.service.LzyShiwuXiangqingService;
+import com.dt.child.mapper.LzyShiwuXiangqingMapper;
+import org.springframework.stereotype.Service;
+
+/**
+* @author lzy
+* @description 针对表【lzy_shiwu_xiangqing】的数据库操作Service实现
+* @createDate 2025-07-08 19:40:52
+*/
+@Service
+public class LzyShiwuXiangqingServiceImpl extends ServiceImpl<LzyShiwuXiangqingMapper, LzyShiwuXiangqing>
+    implements LzyShiwuXiangqingService{
+
+}
+
+
+
+

+ 26 - 0
Marketplace/src/main/java/com/dt/child/vo/LzyShiwuXiangqingVo.java

@@ -0,0 +1,26 @@
+package com.dt.child.vo;
+
+import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Data;
+
+@Data
+public class LzyShiwuXiangqingVo {
+
+    /**
+     * 名字
+     */
+    private String name;
+
+    /**
+     * 图片
+     */
+    private String img;
+
+    /**
+     * 类型
+     */
+    private String title;
+    private String xiangxi;
+
+    private UserVo userVo;
+}

+ 19 - 0
Marketplace/src/main/java/com/dt/child/vo/UserVo.java

@@ -0,0 +1,19 @@
+package com.dt.child.vo;
+
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+public class UserVo {
+
+    private   String name="三组";
+
+    private   String url="https://lzy8.oss-cn-beijing.aliyuncs.com/175258050036592a525-5.png";
+
+    private   String title="2407A班三组全体成员,带领每个人家长,让宝宝更安全,成长的经过...";
+
+
+}

+ 4 - 2
Marketplace/src/main/resources/mapper/LzyFoodContentMapper.xml

@@ -4,13 +4,15 @@
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.dt.child.mapper.LzyFoodContentMapper">
 <mapper namespace="com.dt.child.mapper.LzyFoodContentMapper">
 
 
-    <resultMap id="BaseResultMap" type="com.dt.child.dao.LzyFoodContent">
+    <resultMap id="BaseResultMap" type="com.dt.child.domain.LzyFoodContent">
             <id property="id" column="id" jdbcType="BIGINT"/>
             <id property="id" column="id" jdbcType="BIGINT"/>
             <result property="foodContent" column="food_content" jdbcType="VARCHAR"/>
             <result property="foodContent" column="food_content" jdbcType="VARCHAR"/>
             <result property="foodId" column="food_id" jdbcType="BIGINT"/>
             <result property="foodId" column="food_id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
     </resultMap>
     </resultMap>
 
 
     <sql id="Base_Column_List">
     <sql id="Base_Column_List">
-        id,food_content,food_id
+        id,food_content,food_id,
+        name
     </sql>
     </sql>
 </mapper>
 </mapper>

+ 19 - 0
Marketplace/src/main/resources/mapper/LzyShiwuXiangqingMapper.xml

@@ -0,0 +1,19 @@
+<?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.LzyShiwuXiangqingMapper">
+
+    <resultMap id="BaseResultMap" type="com.dt.child.domain.LzyShiwuXiangqing">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="foodId" column="food_id" jdbcType="BIGINT"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="img" column="img" jdbcType="VARCHAR"/>
+            <result property="title" column="title" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,food_id,name,
+        img,title
+    </sql>
+</mapper>