diff --git a/src/main/java/com/biutag/supervision/mapper/ModelGenerationMapper.java b/src/main/java/com/biutag/supervision/mapper/ModelGenerationMapper.java new file mode 100644 index 0000000..e3d50ed --- /dev/null +++ b/src/main/java/com/biutag/supervision/mapper/ModelGenerationMapper.java @@ -0,0 +1,8 @@ +package com.biutag.supervision.mapper; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.biutag.supervision.pojo.entity.ModelGeneration; + +public interface ModelGenerationMapper extends BaseMapper { + +} \ No newline at end of file diff --git a/src/main/java/com/biutag/supervision/pojo/entity/Model.java b/src/main/java/com/biutag/supervision/pojo/entity/Model.java index 00b4d69..1c8ec2d 100644 --- a/src/main/java/com/biutag/supervision/pojo/entity/Model.java +++ b/src/main/java/com/biutag/supervision/pojo/entity/Model.java @@ -129,7 +129,7 @@ public class Model { // 同步周期 day-每天 week-每周 private String clueCycle; - // 同步周期 周几 + // 同步周期 周 MON TUE WED THU FRI SAT SUN private String clueCycleDayOfWeek; // 同步时间 diff --git a/src/main/java/com/biutag/supervision/pojo/entity/ModelGeneration.java b/src/main/java/com/biutag/supervision/pojo/entity/ModelGeneration.java new file mode 100644 index 0000000..103c565 --- /dev/null +++ b/src/main/java/com/biutag/supervision/pojo/entity/ModelGeneration.java @@ -0,0 +1,55 @@ +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 lombok.Getter; +import lombok.Setter; + +import java.time.LocalDateTime; + +@Setter +@Getter +public class ModelGeneration { + + // + @TableId(value = "id") + private Integer id; + + // + @TableField("model_id") + private Integer modelId; + + // 涉及单位 + @TableField("involve_depart_name") + private String involveDepartName; + + // 涉及单位ID + @TableField("involve_depart_id") + private String involveDepartId; + + // 涉及人员 + @TableField("involve_police_name") + private String involvePoliceName; + + // 涉及人员警号 + @TableField("involve_police_emp_no") + private String involvePoliceEmpNo; + + // 发生时间 + @TableField("happen_time") + private String happenTime; + + // 预警内容生成器 + @TableField("thing_desc_generation") + private String thingDescGeneration; + + // 创建时间 + @TableField("create_time") + private LocalDateTime createTime; + + // 更新时间 + @TableField("update_time") + private LocalDateTime updateTime; + +} \ No newline at end of file diff --git a/src/main/java/com/biutag/supervision/service/ModelGenerationService.java b/src/main/java/com/biutag/supervision/service/ModelGenerationService.java new file mode 100644 index 0000000..57448cc --- /dev/null +++ b/src/main/java/com/biutag/supervision/service/ModelGenerationService.java @@ -0,0 +1,11 @@ +package com.biutag.supervision.service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.biutag.supervision.pojo.entity.ModelGeneration; +import com.biutag.supervision.mapper.ModelGenerationMapper; +import org.springframework.stereotype.Service; + +@Service +public class ModelGenerationService extends ServiceImpl { + +}