Browse Source

ModelGeneration.java

main
wxc 11 months ago
parent
commit
a8f2da7381
  1. 8
      src/main/java/com/biutag/supervision/mapper/ModelGenerationMapper.java
  2. 2
      src/main/java/com/biutag/supervision/pojo/entity/Model.java
  3. 55
      src/main/java/com/biutag/supervision/pojo/entity/ModelGeneration.java
  4. 11
      src/main/java/com/biutag/supervision/service/ModelGenerationService.java

8
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<ModelGeneration> {
}

2
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;
// 同步时间

55
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;
}

11
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<ModelGenerationMapper, ModelGeneration> {
}
Loading…
Cancel
Save