设备管理设备位置字典表

dev2.0
anthonywj 2 years ago
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 {
}

@ -2,7 +2,11 @@ package com.glxp.api.controller.inv;
import com.glxp.api.controller.BaseController; import com.glxp.api.controller.BaseController;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RestController;
/**
*
*/
@Slf4j @Slf4j
@RestController @RestController
public class DeviceAssetUserController extends BaseController { public class DeviceAssetUserController extends BaseController {

@ -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…
Cancel
Save