#新增产品表的架构代码()
This commit is contained in:
@@ -0,0 +1,18 @@
|
|||||||
|
package com.maibu.mapper;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.maibu.core.business.Product;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author jsmbz
|
||||||
|
* @description 针对表【device_product(产品表)】的数据库操作Mapper
|
||||||
|
* @createDate 2026-05-08 13:45:57
|
||||||
|
* @Entity abbc.domain.DeviceProduct
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface DeviceProductMapper extends BaseMapper<Product> {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
package com.maibu.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.maibu.core.business.Product;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
/**
|
||||||
|
* @author jsmbz
|
||||||
|
* @description 针对表【device_product(产品表)】的数据库操作Service
|
||||||
|
* @createDate 2026-05-08 13:45:57
|
||||||
|
*/
|
||||||
|
public interface DeviceProductService extends IService<Product> {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询产品列表
|
||||||
|
*/
|
||||||
|
Page<Product> selectProductPage(Page<Product> page, Product product);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据编码查询产品
|
||||||
|
*/
|
||||||
|
Product selectByCode(String code);
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
package com.maibu.service.impl;
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
Reference in New Issue
Block a user