@@ -4,6 +4,7 @@ import org.springframework.web.bind.annotation.RequestMapping; | |||
import org.springframework.web.bind.annotation.RestController; | |||
/** | |||
* 事故表 前端控制器 | |||
* @Author ChengWang | |||
* @Date 2023/3/2 | |||
*/ |
@@ -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 { | |||
} |
@@ -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; | |||
} |
@@ -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> { | |||
} |
@@ -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 { | |||
} |
@@ -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{ | |||
} |
@@ -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> |