This commit is contained in:
wangjinlei
2024-05-24 15:12:08 +08:00
parent 1d09fbb0b3
commit 6e3cc44319
12 changed files with 280 additions and 58 deletions

View File

@@ -1,7 +1,7 @@
package com.peanut.modules.book.dao;
package com.peanut.modules.common.dao;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.peanut.modules.book.entity.ShopStore;
import com.peanut.modules.common.entity.ShopStore;
import org.apache.ibatis.annotations.Mapper;
@Mapper

View File

@@ -0,0 +1,9 @@
package com.peanut.modules.common.dao;
import com.github.yulichang.base.MPJBaseMapper;
import com.peanut.modules.common.entity.ShopStoreToProductEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface ShopStoreToProductDao extends MPJBaseMapper<ShopStoreToProductEntity> {
}

View File

@@ -1,4 +1,4 @@
package com.peanut.modules.book.entity;
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
@@ -28,6 +28,8 @@ public class ShopStore implements Serializable {
*/
private Date createTime;
private Integer sort;
@TableLogic
private Integer delFlag;

View File

@@ -0,0 +1,34 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("shop_store_to_product")
public class ShopStoreToProductEntity {
@TableId
private Integer id;
private Integer storeId;
private Integer productId;
private Integer sort;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private ShopStore shopStore;
@TableField(exist = false)
private ShopProduct shopProduct;
}