设备相关人员操作类

dev2.0
anthonywj 2 years ago
parent 14254daeb7
commit d31eee08c3

@ -0,0 +1,9 @@
package com.glxp.api.controller.inv;
import com.glxp.api.controller.BaseController;
import lombok.extern.slf4j.Slf4j;
@Slf4j
@RestController
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.DeviceAssetUserEntity;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface DeviceAssetUserMapper extends BaseMapper<DeviceAssetUserEntity> {
}

@ -0,0 +1,72 @@
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_user")
public class DeviceAssetUserEntity implements Serializable {
@TableId(value = "id", type = IdType.INPUT)
private Long id;
/**
*
*/
@TableField(value = "devCodeFk")
private String devCodeFk;
/**
*
*/
@TableField(value = "userName")
private String userName;
/**
* 1
*/
@TableField(value = "contact1")
private String contact1;
/**
* 2
*/
@TableField(value = "contact2")
private String contact2;
/**
*
*/
@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.entity.inv.DeviceAssetUserEntity;
import com.glxp.api.dao.inv.DeviceAssetUserMapper;
@Service
public class DeviceAssetUserService extends ServiceImpl<DeviceAssetUserMapper, DeviceAssetUserEntity> {
}

@ -0,0 +1,23 @@
<?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.DeviceAssetUserMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.inv.DeviceAssetUserEntity">
<!--@mbg.generated-->
<!--@Table device_asset_user-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="devCodeFk" jdbcType="VARCHAR" property="devCodeFk" />
<result column="userName" jdbcType="VARCHAR" property="userName" />
<result column="contact1" jdbcType="VARCHAR" property="contact1" />
<result column="contact2" jdbcType="VARCHAR" property="contact2" />
<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, devCodeFk, userName, contact1, contact2, remark, `createUser`, createTime, updateUser,
updateTime
</sql>
</mapper>

@ -184,3 +184,42 @@ INSERT ignore INTO `sys_param_config`(`id`, `parentId`, `paramName`, `paramKey`,
INSERT ignore INTO `sys_pdf_template_relevance_label` (`id`, `templateId`, `customerId`, `adminId`, `moduleId`, `localAction`, `remark1`, `remark2`, `remark3`, `printType`, `modelKey`, `updateTime`) VALUES (5, 3, 110, 0, 9, '设备打印', NULL, NULL, NULL, NULL, 'lable', '2023-06-25 15:18:37');
CREATE TABLE IF NOT EXISTS `device_asset_cert` (
`id` bigint NOT NULL,
`devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码外键',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书名称',
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '证书编码',
`filePath` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '文件路径',
`vailDate` datetime(0) NULL DEFAULT NULL COMMENT '生效期',
`expireDate` datetime(0) NULL DEFAULT NULL COMMENT '失效期',
`status` tinyint NULL DEFAULT NULL COMMENT '证书状态',
`type` tinyint NULL DEFAULT NULL COMMENT '证书类型1资质证书2技术材料',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateUser` datetime(0) NULL DEFAULT NULL COMMENT '更新人',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of device_asset_cert
-- ----------------------------
SET FOREIGN_KEY_CHECKS = 1;
CREATE TABLE IF NOT EXISTS `device_asset_user` (
`id` bigint NOT NULL COMMENT '雪花ID',
`devCodeFk` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '设备资产编码',
`userName` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '相关人员名称',
`contact1` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式1',
`contact2` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '联系方式2',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注说明',
`createUser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
`createTime` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`updateUser` varchar(0) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '更新人',
`updateTime` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic;

Loading…
Cancel
Save