From ba5731260b19ec259d423c8bba345b6f7dc4fab2 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Thu, 24 Aug 2023 15:49:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E4=BD=8D=E7=BD=AE=E5=AD=97=E5=85=B8=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inv/DeviceAssetLoacationController.java | 12 +++ .../inv/DeviceAssetUserController.java | 4 + .../dao/inv/DeviceAssetLoacationMapper.java | 9 +++ .../inv/DeviceAssetLoacationEntity.java | 81 +++++++++++++++++++ .../inv/DeviceAssetLoacationService.java | 10 +++ .../mapper/inv/DeviceAssetLoacationMapper.xml | 24 ++++++ 6 files changed, 140 insertions(+) create mode 100644 src/main/java/com/glxp/api/controller/inv/DeviceAssetLoacationController.java create mode 100644 src/main/java/com/glxp/api/dao/inv/DeviceAssetLoacationMapper.java create mode 100644 src/main/java/com/glxp/api/entity/inv/DeviceAssetLoacationEntity.java create mode 100644 src/main/java/com/glxp/api/service/inv/DeviceAssetLoacationService.java create mode 100644 src/main/resources/mybatis/mapper/inv/DeviceAssetLoacationMapper.xml diff --git a/src/main/java/com/glxp/api/controller/inv/DeviceAssetLoacationController.java b/src/main/java/com/glxp/api/controller/inv/DeviceAssetLoacationController.java new file mode 100644 index 00000000..ec867fa3 --- /dev/null +++ b/src/main/java/com/glxp/api/controller/inv/DeviceAssetLoacationController.java @@ -0,0 +1,12 @@ +package com.glxp.api.controller.inv; + +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RestController; + +/** + * 设备位置字典 + */ +@Slf4j +@RestController +public class DeviceAssetLoacationController { +} diff --git a/src/main/java/com/glxp/api/controller/inv/DeviceAssetUserController.java b/src/main/java/com/glxp/api/controller/inv/DeviceAssetUserController.java index e277fb7e..7b8f1fca 100644 --- a/src/main/java/com/glxp/api/controller/inv/DeviceAssetUserController.java +++ b/src/main/java/com/glxp/api/controller/inv/DeviceAssetUserController.java @@ -2,7 +2,11 @@ package com.glxp.api.controller.inv; import com.glxp.api.controller.BaseController; import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RestController; +/** + * 设备相关人员 + */ @Slf4j @RestController public class DeviceAssetUserController extends BaseController { diff --git a/src/main/java/com/glxp/api/dao/inv/DeviceAssetLoacationMapper.java b/src/main/java/com/glxp/api/dao/inv/DeviceAssetLoacationMapper.java new file mode 100644 index 00000000..f80790fc --- /dev/null +++ b/src/main/java/com/glxp/api/dao/inv/DeviceAssetLoacationMapper.java @@ -0,0 +1,9 @@ +package com.glxp.api.dao.inv; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.inv.DeviceAssetLoacationEntity; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface DeviceAssetLoacationMapper extends BaseMapper { +} diff --git a/src/main/java/com/glxp/api/entity/inv/DeviceAssetLoacationEntity.java b/src/main/java/com/glxp/api/entity/inv/DeviceAssetLoacationEntity.java new file mode 100644 index 00000000..fa43e185 --- /dev/null +++ b/src/main/java/com/glxp/api/entity/inv/DeviceAssetLoacationEntity.java @@ -0,0 +1,81 @@ +package com.glxp.api.entity.inv; + +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 java.util.Date; +import lombok.Data; + +/** + * 设备资产位置字典表 + */ +@Data +@TableName(value = "device_asset_loacation") +public class DeviceAssetLoacationEntity implements Serializable { + @TableId(value = "id", type = IdType.INPUT) + private Long id; + + /** + * 位置编码 + */ + @TableField(value = "code") + private String code; + + /** + * 位置名称 + */ + @TableField(value = "`name`") + private String name; + + /** + * 父级位置编码 + */ + @TableField(value = "parentCode") + private String parentCode; + + /** + * 经度 + */ + @TableField(value = "longitude") + private String longitude; + + /** + * 维度 + */ + @TableField(value = "latitude") + private String latitude; + + /** + * 备注 + */ + @TableField(value = "remark") + private String remark; + + /** + * 创建人 + */ + @TableField(value = "`createUser`") + private String createUser; + + /** + * 创建时间 + */ + @TableField(value = "createTime") + private Date createTime; + + /** + * 更新人 + */ + @TableField(value = "updateUser") + private String updateUser; + + /** + * 更新时间 + */ + @TableField(value = "updateTime") + private Date updateTime; + + private static final long serialVersionUID = 1L; +} diff --git a/src/main/java/com/glxp/api/service/inv/DeviceAssetLoacationService.java b/src/main/java/com/glxp/api/service/inv/DeviceAssetLoacationService.java new file mode 100644 index 00000000..e0b2d673 --- /dev/null +++ b/src/main/java/com/glxp/api/service/inv/DeviceAssetLoacationService.java @@ -0,0 +1,10 @@ +package com.glxp.api.service.inv; + +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.glxp.api.dao.inv.DeviceAssetLoacationMapper; +import com.glxp.api.entity.inv.DeviceAssetLoacationEntity; +@Service +public class DeviceAssetLoacationService extends ServiceImpl { + +} diff --git a/src/main/resources/mybatis/mapper/inv/DeviceAssetLoacationMapper.xml b/src/main/resources/mybatis/mapper/inv/DeviceAssetLoacationMapper.xml new file mode 100644 index 00000000..0c5531ea --- /dev/null +++ b/src/main/resources/mybatis/mapper/inv/DeviceAssetLoacationMapper.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + id, code, `name`, parentCode, longitude, latitude, remark, `createUser`, createTime, + updateUser, updateTime + +