8 changed files with 167 additions and 5 deletions
@ -0,0 +1,14 @@
|
||||
package com.biutag.supervision.mapper; |
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS; |
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervision.pojo.entity.AlarmFile; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-21 15:30:04 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@DS("master") |
||||
public interface AlarmFileMapper extends BaseMapper<AlarmFile> { |
||||
} |
||||
@ -0,0 +1,90 @@
|
||||
package com.biutag.supervision.pojo.entity; |
||||
|
||||
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 lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-21 15:27:42 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("`alarm_file`") |
||||
public class AlarmFile { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
String fileName; |
||||
|
||||
String path; |
||||
|
||||
String alarmId; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("`crt_time`") |
||||
LocalDateTime crtTime; |
||||
/** |
||||
* 创建用户 |
||||
*/ |
||||
@TableField("`crt_user`") |
||||
String crtUser; |
||||
/** |
||||
* 创建单位 |
||||
*/ |
||||
@TableField("`crt_depart_id`") |
||||
String crtDepartId; |
||||
/** |
||||
* 创建人名称 |
||||
*/ |
||||
@TableField("`crt_name`") |
||||
String crtName; |
||||
/** |
||||
* 创建ip |
||||
*/ |
||||
@TableField("`crt_host`") |
||||
String crtHost; |
||||
|
||||
/** |
||||
* 创建用户 |
||||
*/ |
||||
@TableField("`upd_user`") |
||||
String updUser; |
||||
/** |
||||
* 创建单位 |
||||
*/ |
||||
@TableField("`upd_depart_id`") |
||||
String updDepartId; |
||||
/** |
||||
* 创建人名称 |
||||
*/ |
||||
@TableField("`upd_name`") |
||||
String updName; |
||||
/** |
||||
* 创建ip |
||||
*/ |
||||
@TableField("`upd_host`") |
||||
String updHost; |
||||
|
||||
/** |
||||
* 修改时间 |
||||
*/ |
||||
@TableField("`upd_time`") |
||||
LocalDateTime updTime; |
||||
|
||||
Integer del; |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervision.service; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervision.mapper.AlarmFileMapper; |
||||
import com.biutag.supervision.pojo.entity.AlarmFile; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-21 15:31:57 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class AlarmFileService extends ServiceImpl<AlarmFileMapper, AlarmFile> { |
||||
} |
||||
@ -0,0 +1,7 @@
|
||||
<?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.biutag.supervision.mapper.AlarmFileMapper"> |
||||
|
||||
</mapper> |
||||
Loading…
Reference in new issue