#厂家模块init

This commit is contained in:
2026-05-09 08:36:48 +08:00
parent f6f4365a1a
commit 8a42f8498a
9 changed files with 60 additions and 4 deletions

View File

@@ -13,9 +13,10 @@ import lombok.EqualsAndHashCode;
import java.util.Map;
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
//@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@TableName("iot_device_action")
@TableName(value = "iot_device_action", autoResultMap = true)
@JsonInclude(JsonInclude.Include.ALWAYS) // 加这一行
public class DeviceAction extends BaseDO {
@TableId(type = IdType.AUTO)

View File

@@ -11,6 +11,10 @@ public enum ConnectType {
MQTT,
ONVIF,
RTSP,
HTTP;
}

View File

@@ -0,0 +1,17 @@
package com.maibu.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.maibu.core.business.ProductInterface;
import org.apache.ibatis.annotations.Mapper;
/**
* @author jsmbz
* @description 针对表【device_product_interface(产品接口表)】的数据库操作Mapper
* @createDate 2026-05-08 15:37:53
* @Entity abbc.domain.DeviceProductInterface
*/
@Mapper
public interface DeviceProductInterfaceMapper extends BaseMapper<ProductInterface> {
}

View File

@@ -0,0 +1,13 @@
package com.maibu.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maibu.core.business.ProductInterface;
/**
* @author jsmbz
* @description 针对表【device_product_interface(产品接口表)】的数据库操作Service
* @createDate 2026-05-08 15:37:53
*/
public interface DeviceProductInterfaceService extends IService<ProductInterface> {
}

View File

@@ -21,4 +21,6 @@ public interface DeviceProductService extends IService<Product> {
* 根据编码查询产品
*/
Product selectByCode(String code);
}

View File

@@ -0,0 +1,18 @@
package com.maibu.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.maibu.core.business.ProductInterface;
import com.maibu.mapper.DeviceProductInterfaceMapper;
import com.maibu.service.DeviceProductInterfaceService;
import org.springframework.stereotype.Service;
/**
* @author jsmbz
* @description 针对表【device_product_interface(产品接口表)】的数据库操作Service实现
* @createDate 2026-05-08 15:37:53
*/
@Service
public class DeviceProductInterfaceServiceImpl extends ServiceImpl<DeviceProductInterfaceMapper, ProductInterface>
implements DeviceProductInterfaceService {
}

View File

@@ -1 +1 @@
package com.maibu.service.impl;
package com.maibu.service.impl;

View File

@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?>