This commit is contained in:
wangjinlei
2023-09-21 10:05:26 +08:00
parent 1b3d3358a8
commit 30d8045759
6 changed files with 44 additions and 5 deletions

11
pom.xml
View File

@@ -125,11 +125,6 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.4.3</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
@@ -376,6 +371,12 @@
<artifactId>common-lang</artifactId>
<version>3.5</version>
</dependency>
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.4.4.1</version>
</dependency>
</dependencies>
<build>

View File

@@ -1,6 +1,8 @@
package com.peanut.modules.book.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.book.entity.ShopProductLabelEntity;
import com.peanut.modules.book.entity.ShopProductToLabelEntity;
import org.apache.ibatis.annotations.Mapper;

View File

@@ -1,6 +1,7 @@
package com.peanut.modules.book.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.yulichang.base.MPJBaseService;
import com.peanut.modules.book.entity.ShopProductToLabelEntity;
public interface ShopProductToLabelService extends IService<ShopProductToLabelEntity> {

View File

@@ -1,6 +1,7 @@
package com.peanut.modules.book.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.yulichang.base.MPJBaseServiceImpl;
import com.peanut.modules.book.dao.ShopProductToLabelDao;
import com.peanut.modules.book.entity.ShopProductToLabelEntity;
import com.peanut.modules.book.service.ShopProductToLabelService;

View File

@@ -0,0 +1,17 @@
<?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.peanut.modules.book.dao.ShopProductLabelDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.peanut.modules.book.entity.ShopProductLabelEntity" id="ProductLabelMap">
<result property="splId" column="spl_id"/>
<result property="labelName" column="label_name"/>
<result property="ctime" column="ctime"/>
<result property="delFlag" column="del_flag"/>
</resultMap>
</mapper>

View File

@@ -0,0 +1,17 @@
<?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.peanut.modules.book.dao.ShopProductToLabelDao">
<!-- 可根据自己的需求,是否要使用 -->
<resultMap type="com.peanut.modules.book.entity.ShopProductToLabelEntity" id="ProductToLabelMap">
<result property="ptlId" column="ptl_id"/>
<result property="productId" column="product_id"/>
<result property="splId" column="spl_id"/>
<result property="delFlag" column="del_flag"/>
</resultMap>
</mapper>