设备管理设备位置字典表
							parent
							
								
									795cd78540
								
							
						
					
					
						commit
						ba5731260b
					
				| @ -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 { | ||||||
|  | } | ||||||
| @ -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<DeviceAssetLoacationEntity> { | ||||||
|  | } | ||||||
| @ -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; | ||||||
|  | } | ||||||
| @ -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<DeviceAssetLoacationMapper, DeviceAssetLoacationEntity> { | ||||||
|  | 
 | ||||||
|  | } | ||||||
| @ -0,0 +1,24 @@ | |||||||
|  | <?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.glxp.api.dao.inv.DeviceAssetLoacationMapper"> | ||||||
|  |   <resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.DeviceAssetLoacationEntity"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     <!--@Table device_asset_loacation--> | ||||||
|  |     <id column="id" jdbcType="BIGINT" property="id" /> | ||||||
|  |     <result column="code" jdbcType="VARCHAR" property="code" /> | ||||||
|  |     <result column="name" jdbcType="VARCHAR" property="name" /> | ||||||
|  |     <result column="parentCode" jdbcType="VARCHAR" property="parentCode" /> | ||||||
|  |     <result column="longitude" jdbcType="VARCHAR" property="longitude" /> | ||||||
|  |     <result column="latitude" jdbcType="VARCHAR" property="latitude" /> | ||||||
|  |     <result column="remark" jdbcType="VARCHAR" property="remark" /> | ||||||
|  |     <result column="createUser" jdbcType="VARCHAR" property="createUser" /> | ||||||
|  |     <result column="createTime" jdbcType="TIMESTAMP" property="createTime" /> | ||||||
|  |     <result column="updateUser" jdbcType="VARCHAR" property="updateUser" /> | ||||||
|  |     <result column="updateTime" jdbcType="TIMESTAMP" property="updateTime" /> | ||||||
|  |   </resultMap> | ||||||
|  |   <sql id="Base_Column_List"> | ||||||
|  |     <!--@mbg.generated--> | ||||||
|  |     id, code, `name`, parentCode, longitude, latitude, remark, `createUser`, createTime, | ||||||
|  |     updateUser, updateTime | ||||||
|  |   </sql> | ||||||
|  | </mapper> | ||||||
					Loading…
					
					
				
		Reference in New Issue