Explorar el Código

新增应急事件已读表实体类数据层表现层和业务层类

tags/v1.2.0^2
chengwang hace 1 año
padre
commit
af9ffc66d9
Se han modificado 7 ficheros con 118 adiciones y 0 borrados
  1. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AccidentController.java
  2. +14
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AccidentReadController.java
  3. +56
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/AccidentRead.java
  4. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/AccidentReadMapper.java
  5. +19
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accidentread/AccidentReadServiceImpl.java
  6. +11
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accidentread/IAccidentReadService.java
  7. +6
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/AccidentReadMapper.xml

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AccidentController.java Ver fichero

@@ -4,6 +4,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* 事故表 前端控制器
* @Author ChengWang
* @Date 2023/3/2
*/

+ 14
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/AccidentReadController.java Ver fichero

@@ -0,0 +1,14 @@
package com.tuoheng.admin.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* 应急时间已读表 前端控制器
* @Author ChengWang
* @Date 2023/3/2
*/
@RestController
@RequestMapping("/accidentread")
public class AccidentReadController {
}

+ 56
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/entity/AccidentRead.java Ver fichero

@@ -0,0 +1,56 @@
package com.tuoheng.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
* @Author ChengWang
* @Date 2023/3/2
*/
@Data
@Accessors(chain = true)
@TableName("th_accident_read")
public class AccidentRead {

private static final long serialVersionUID = 1L;

/**
* 主键ID
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;

/**
* 应急时间ID
*/
private String accidentId;

/**
* 用户ID
*/
private String userId;

/**
* 状态 1主动忽略 2被动忽略 3已读
*/
private Integer status;

/**
*创建人
*/
private String createUser;

/**
* 创建时间
*/
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
}

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/mapper/AccidentReadMapper.java Ver fichero

@@ -0,0 +1,11 @@
package com.tuoheng.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tuoheng.admin.entity.AccidentRead;

/**
* @Author ChengWang
* @Date 2023/3/2
*/
public interface AccidentReadMapper extends BaseMapper<AccidentRead> {
}

+ 19
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accidentread/AccidentReadServiceImpl.java Ver fichero

@@ -0,0 +1,19 @@
package com.tuoheng.admin.service.accidentread;

import com.tuoheng.admin.entity.AccidentRead;
import com.tuoheng.admin.mapper.AccidentReadMapper;
import com.tuoheng.admin.service.accident.IAccidentService;
import com.tuoheng.common.core.common.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
* @Author ChengWang
* @Date 2023/3/2
*/
@Service
@Slf4j
public class AccidentReadServiceImpl implements IAccidentReadService {


}

+ 11
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accidentread/IAccidentReadService.java Ver fichero

@@ -0,0 +1,11 @@
package com.tuoheng.admin.service.accidentread;

import com.tuoheng.admin.entity.AccidentRead;
import com.tuoheng.common.core.common.IBaseService;

/**
* @Author ChengWang
* @Date 2023/3/2
*/
public interface IAccidentReadService{
}

+ 6
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/AccidentReadMapper.xml Ver fichero

@@ -0,0 +1,6 @@
<?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.tuoheng.admin.mapper.AccidentReadMapper">


</mapper>

Cargando…
Cancelar
Guardar