Explorar el Código

+ 巡检任务

chen.cheng hace 6 meses
padre
commit
6aef002894

+ 98 - 0
bd-park/park-backend/park-application/src/main/java/com/huashe/park/application/web/controller/park/ParkInspectTaskController.java

@@ -0,0 +1,98 @@
+package com.huashe.park.application.web.controller.park;
+
+import java.util.List;
+import javax.servlet.http.HttpServletResponse;
+
+import com.huashe.park.core.service.IParkInspectTaskService;
+import com.huashe.park.domain.entity.ParkInspectTask;
+import org.springframework.security.access.prepost.PreAuthorize;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import com.ruoyi.common.annotation.Log;
+import com.ruoyi.common.core.controller.BaseController;
+import com.ruoyi.common.core.domain.AjaxResult;
+import com.ruoyi.common.enums.BusinessType;
+import com.ruoyi.common.utils.poi.ExcelUtil;
+import com.ruoyi.common.core.page.TableDataInfo;
+
+/**
+ * 巡检任务Controller
+ *
+ * @author ruoyi
+ * @date 2025-01-07
+ */
+@RestController
+@RequestMapping("/park/inspectTask")
+public class ParkInspectTaskController extends BaseController {
+    @Autowired
+    private IParkInspectTaskService parkInspectTaskService;
+
+    /**
+     * 查询巡检任务列表
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:list')")
+    @GetMapping("/list")
+    public TableDataInfo list(ParkInspectTask parkInspectTask) {
+        startPage();
+        List<ParkInspectTask> list = parkInspectTaskService.selectParkInspectTaskList(parkInspectTask);
+        return getDataTable(list);
+    }
+
+    /**
+     * 导出巡检任务列表
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:export')")
+    @Log(title = "巡检任务", businessType = BusinessType.EXPORT)
+    @PostMapping("/export")
+    public void export(HttpServletResponse response, ParkInspectTask parkInspectTask) {
+        List<ParkInspectTask> list = parkInspectTaskService.selectParkInspectTaskList(parkInspectTask);
+        ExcelUtil<ParkInspectTask> util = new ExcelUtil<ParkInspectTask>(ParkInspectTask.class);
+        util.exportExcel(response, list, "巡检任务数据");
+    }
+
+    /**
+     * 获取巡检任务详细信息
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:query')")
+    @GetMapping(value = "/{id}")
+    public AjaxResult getInfo(@PathVariable("id") Long id) {
+        return success(parkInspectTaskService.selectParkInspectTaskById(id));
+    }
+
+    /**
+     * 新增巡检任务
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:add')")
+    @Log(title = "巡检任务", businessType = BusinessType.INSERT)
+    @PostMapping
+    public AjaxResult add(@RequestBody ParkInspectTask parkInspectTask) {
+        return toAjax(parkInspectTaskService.insertParkInspectTask(parkInspectTask));
+    }
+
+    /**
+     * 修改巡检任务
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:edit')")
+    @Log(title = "巡检任务", businessType = BusinessType.UPDATE)
+    @PutMapping
+    public AjaxResult edit(@RequestBody ParkInspectTask parkInspectTask) {
+        return toAjax(parkInspectTaskService.updateParkInspectTask(parkInspectTask));
+    }
+
+    /**
+     * 删除巡检任务
+     */
+    @PreAuthorize("@ss.hasPermi('park:inspectTask:remove')")
+    @Log(title = "巡检任务", businessType = BusinessType.DELETE)
+    @DeleteMapping("/{ids}")
+    public AjaxResult remove(@PathVariable Long[] ids) {
+        return toAjax(parkInspectTaskService.deleteParkInspectTaskByIds(ids));
+    }
+}

+ 1 - 0
bd-park/park-backend/park-application/src/main/resources/application.yml

@@ -95,6 +95,7 @@ mybatis:
   mapperLocations: classpath*:mapper/**/*Mapper.xml
   # 加载全局的配置文件
   configLocation: classpath:mybatis/mybatis-config.xml
+  type-handlers-package: com.huashe.**.typehandle
 
 # PageHelper分页插件
 pagehelper:

+ 62 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/mapper/ParkInspectTaskMapper.java

@@ -0,0 +1,62 @@
+package com.huashe.park.core.mapper;
+
+import com.huashe.park.domain.entity.ParkInspectTask;
+
+import java.util.List;
+
+/**
+ * 巡检任务Mapper接口
+ * 
+ * @author ruoyi
+ * @date 2025-01-07
+ */
+public interface ParkInspectTaskMapper 
+{
+    /**
+     * 查询巡检任务
+     * 
+     * @param id 巡检任务主键
+     * @return 巡检任务
+     */
+    public ParkInspectTask selectParkInspectTaskById(Long id);
+
+    /**
+     * 查询巡检任务列表
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 巡检任务集合
+     */
+    public List<ParkInspectTask> selectParkInspectTaskList(ParkInspectTask parkInspectTask);
+
+    /**
+     * 新增巡检任务
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    public int insertParkInspectTask(ParkInspectTask parkInspectTask);
+
+    /**
+     * 修改巡检任务
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    public int updateParkInspectTask(ParkInspectTask parkInspectTask);
+
+    /**
+     * 删除巡检任务
+     * 
+     * @param id 巡检任务主键
+     * @return 结果
+     */
+    public int deleteParkInspectTaskById(Long id);
+
+    /**
+     * 批量删除巡检任务
+     * 
+     * @param ids 需要删除的数据主键集合
+     * @return 结果
+     */
+    public int deleteParkInspectTaskByIds(Long[] ids);
+}

+ 62 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/IParkInspectTaskService.java

@@ -0,0 +1,62 @@
+package com.huashe.park.core.service;
+
+import com.huashe.park.domain.entity.ParkInspectTask;
+
+import java.util.List;
+
+/**
+ * 巡检任务Service接口
+ * 
+ * @author ruoyi
+ * @date 2025-01-07
+ */
+public interface IParkInspectTaskService 
+{
+    /**
+     * 查询巡检任务
+     * 
+     * @param id 巡检任务主键
+     * @return 巡检任务
+     */
+    public ParkInspectTask selectParkInspectTaskById(Long id);
+
+    /**
+     * 查询巡检任务列表
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 巡检任务集合
+     */
+    public List<ParkInspectTask> selectParkInspectTaskList(ParkInspectTask parkInspectTask);
+
+    /**
+     * 新增巡检任务
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    public int insertParkInspectTask(ParkInspectTask parkInspectTask);
+
+    /**
+     * 修改巡检任务
+     * 
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    public int updateParkInspectTask(ParkInspectTask parkInspectTask);
+
+    /**
+     * 批量删除巡检任务
+     * 
+     * @param ids 需要删除的巡检任务主键集合
+     * @return 结果
+     */
+    public int deleteParkInspectTaskByIds(Long[] ids);
+
+    /**
+     * 删除巡检任务信息
+     * 
+     * @param id 巡检任务主键
+     * @return 结果
+     */
+    public int deleteParkInspectTaskById(Long id);
+}

+ 90 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/service/impl/ParkInspectTaskServiceImpl.java

@@ -0,0 +1,90 @@
+package com.huashe.park.core.service.impl;
+
+import java.util.List;
+
+import com.huashe.park.core.mapper.ParkInspectTaskMapper;
+import com.huashe.park.core.service.IParkInspectTaskService;
+import com.huashe.park.domain.entity.ParkInspectTask;
+import com.ruoyi.common.utils.DateUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * 巡检任务Service业务层处理
+ *
+ * @author ruoyi
+ * @date 2025-01-07
+ */
+@Service
+public class ParkInspectTaskServiceImpl implements IParkInspectTaskService {
+    @Autowired
+    private ParkInspectTaskMapper parkInspectTaskMapper;
+
+    /**
+     * 查询巡检任务
+     *
+     * @param id 巡检任务主键
+     * @return 巡检任务
+     */
+    @Override
+    public ParkInspectTask selectParkInspectTaskById(Long id) {
+        return parkInspectTaskMapper.selectParkInspectTaskById(id);
+    }
+
+    /**
+     * 查询巡检任务列表
+     *
+     * @param parkInspectTask 巡检任务
+     * @return 巡检任务
+     */
+    @Override
+    public List<ParkInspectTask> selectParkInspectTaskList(ParkInspectTask parkInspectTask) {
+        return parkInspectTaskMapper.selectParkInspectTaskList(parkInspectTask);
+    }
+
+    /**
+     * 新增巡检任务
+     *
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    @Override
+    public int insertParkInspectTask(ParkInspectTask parkInspectTask) {
+        parkInspectTask.setCreateTime(DateUtils.getNowDate());
+        return parkInspectTaskMapper.insertParkInspectTask(parkInspectTask);
+    }
+
+    /**
+     * 修改巡检任务
+     *
+     * @param parkInspectTask 巡检任务
+     * @return 结果
+     */
+    @Override
+    public int updateParkInspectTask(ParkInspectTask parkInspectTask) {
+        parkInspectTask.setUpdateTime(DateUtils.getNowDate());
+        return parkInspectTaskMapper.updateParkInspectTask(parkInspectTask);
+    }
+
+    /**
+     * 批量删除巡检任务
+     *
+     * @param ids 需要删除的巡检任务主键
+     * @return 结果
+     */
+    @Override
+    public int deleteParkInspectTaskByIds(Long[] ids) {
+        return parkInspectTaskMapper.deleteParkInspectTaskByIds(ids);
+    }
+
+    /**
+     * 删除巡检任务信息
+     *
+     * @param id 巡检任务主键
+     * @return 结果
+     */
+    @Override
+    public int deleteParkInspectTaskById(Long id) {
+        return parkInspectTaskMapper.deleteParkInspectTaskById(id);
+    }
+}

+ 87 - 0
bd-park/park-backend/park-core/src/main/java/com/huashe/park/core/typehandle/MySqlJsonHandler.java

@@ -0,0 +1,87 @@
+package com.huashe.park.core.typehandle;
+
+
+import com.alibaba.fastjson2.JSON;
+import com.alibaba.fastjson2.JSONWriter;
+import org.apache.ibatis.type.BaseTypeHandler;
+import org.apache.ibatis.type.JdbcType;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import java.sql.CallableStatement;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+
+/**
+ * @author fuwu314
+ * @describe:mysqlJson类型处理类
+ * @date 2024/9/18
+ */
+public class MySqlJsonHandler<T extends Object> extends BaseTypeHandler<T> {
+    private final static Logger log = LoggerFactory.getLogger(MySqlJsonHandler.class);
+    private Class<T> clazz;
+
+    public MySqlJsonHandler(Class<T> clazz) {
+        if (clazz == null) throw new IllegalArgumentException("Type argument cannot be null");
+        this.clazz = clazz;
+    }
+
+    @Override
+    public void setNonNullParameter(PreparedStatement ps, int i, T parameter, JdbcType jdbcType) throws SQLException {
+        ps.setString(i, this.toJson(parameter));
+    }
+
+    @Override
+    public T getNullableResult(ResultSet rs, String columnName) throws SQLException {
+        return this.toObject(rs.getString(columnName), clazz);
+    }
+
+    @Override
+    public T getNullableResult(ResultSet rs, int columnIndex) throws SQLException {
+        return this.toObject(rs.getString(columnIndex), clazz);
+    }
+
+    @Override
+    public T getNullableResult(CallableStatement cs, int columnIndex) throws SQLException {
+        return this.toObject(cs.getString(columnIndex), clazz);
+    }
+
+    /**
+     * 将字符串内容转换为指定类型的对象
+     *
+     * @param content 字符串内容
+     * @param clazz   目标类型
+     * @return 目标类型的对象
+     */
+    private T toObject(String content, Class<T> clazz) {
+        if (content != null && !content.isEmpty()) {
+            try {
+                return JSON.parseObject(content, clazz);
+            } catch (Exception e) {
+                log.error("解析JSON字符串出错", e);
+                return null;
+            }
+        } else {
+            return null;
+        }
+    }
+
+    /**
+     * 将对象转换为JSON字符串
+     *
+     * @param object 要转换的对象
+     * @return JSON字符串
+     * @throws RuntimeException 如果转换过程中发生异常
+     */
+    private String toJson(T object) {
+        try {
+            return JSON.toJSONString(object, JSONWriter.Feature.WriteMapNullValue);
+        } catch (Exception e) {
+            log.error("解析JSON字符串出错", e);
+            return "[]";
+        }
+    }
+
+
+}

+ 6 - 3
bd-park/park-backend/park-core/src/main/resources/mapper/park/ParkInspectProjMapper.xml

@@ -6,7 +6,8 @@
 
     <resultMap type="ParkInspectProj" id="ParkInspectProjResult">
         <result property="id" column="id"/>
-        <result property="projContent" column="proj_content"/>
+        <result property="projContent" column="proj_content"
+                typeHandler="com.huashe.park.core.typehandle.MySqlJsonHandler"/>
         <result property="lng" column="lng"/>
         <result property="lat" column="lat"/>
         <result property="radius" column="radius"/>
@@ -61,7 +62,9 @@
             <if test="tenantId != null">tenant_id,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="projContent != null">#{projContent},</if>
+            <if test="projContent != null">
+                #{projContent,typeHandler=com.huashe.park.core.typehandle.MySqlJsonHandler},
+            </if>
             <if test="lng != null">#{lng},</if>
             <if test="lat != null">#{lat},</if>
             <if test="radius != null">#{radius},</if>
@@ -77,7 +80,7 @@
     <update id="updateParkInspectProj" parameterType="ParkInspectProj">
         update park_inspect_proj
         <trim prefix="SET" suffixOverrides=",">
-            <if test="projContent != null">proj_content = #{projContent},</if>
+            <if test="projContent != null">proj_content = #{projContent,typeHandler=com.huashe.park.core.typehandle.MySqlJsonHandler},</if>
             <if test="lng != null">lng = #{lng},</if>
             <if test="lat != null">lat = #{lat},</if>
             <if test="radius != null">radius = #{radius},</if>

+ 84 - 0
bd-park/park-backend/park-core/src/main/resources/mapper/park/ParkInspectTaskMapper.xml

@@ -0,0 +1,84 @@
+<?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.huashe.park.core.mapper.ParkInspectTaskMapper">
+    
+    <resultMap type="ParkInspectTask" id="ParkInspectTaskResult">
+        <result property="id"    column="id"    />
+        <result property="taskName"    column="task_name"    />
+        <result property="remark"    column="remark"    />
+        <result property="schedule"    column="schedule"    />
+        <result property="updateTime"    column="update_time"    />
+        <result property="createTime"    column="create_time"    />
+        <result property="createBy"    column="create_by"    />
+        <result property="updateBy"    column="update_by"    />
+        <result property="tenantId"    column="tenant_id"    />
+    </resultMap>
+
+    <sql id="selectParkInspectTaskVo">
+        select id, task_name, remark, schedule, update_time, create_time, create_by, update_by, tenant_id from park_inspect_task
+    </sql>
+
+    <select id="selectParkInspectTaskList" parameterType="ParkInspectTask" resultMap="ParkInspectTaskResult">
+        <include refid="selectParkInspectTaskVo"/>
+        <where>  
+            <if test="taskName != null  and taskName != ''"> and task_name like concat('%', #{taskName}, '%')</if>
+        </where>
+    </select>
+    
+    <select id="selectParkInspectTaskById" parameterType="Long" resultMap="ParkInspectTaskResult">
+        <include refid="selectParkInspectTaskVo"/>
+        where id = #{id}
+    </select>
+
+    <insert id="insertParkInspectTask" parameterType="ParkInspectTask" useGeneratedKeys="true" keyProperty="id">
+        insert into park_inspect_task
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="taskName != null">task_name,</if>
+            <if test="remark != null">remark,</if>
+            <if test="schedule != null">schedule,</if>
+            <if test="updateTime != null">update_time,</if>
+            <if test="createTime != null">create_time,</if>
+            <if test="createBy != null">create_by,</if>
+            <if test="updateBy != null">update_by,</if>
+            <if test="tenantId != null">tenant_id,</if>
+         </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="taskName != null">#{taskName},</if>
+            <if test="remark != null">#{remark},</if>
+            <if test="schedule != null">#{schedule},</if>
+            <if test="updateTime != null">#{updateTime},</if>
+            <if test="createTime != null">#{createTime},</if>
+            <if test="createBy != null">#{createBy},</if>
+            <if test="updateBy != null">#{updateBy},</if>
+            <if test="tenantId != null">#{tenantId},</if>
+         </trim>
+    </insert>
+
+    <update id="updateParkInspectTask" parameterType="ParkInspectTask">
+        update park_inspect_task
+        <trim prefix="SET" suffixOverrides=",">
+            <if test="taskName != null">task_name = #{taskName},</if>
+            <if test="remark != null">remark = #{remark},</if>
+            <if test="schedule != null">schedule = #{schedule},</if>
+            <if test="updateTime != null">update_time = #{updateTime},</if>
+            <if test="createTime != null">create_time = #{createTime},</if>
+            <if test="createBy != null">create_by = #{createBy},</if>
+            <if test="updateBy != null">update_by = #{updateBy},</if>
+            <if test="tenantId != null">tenant_id = #{tenantId},</if>
+        </trim>
+        where id = #{id}
+    </update>
+
+    <delete id="deleteParkInspectTaskById" parameterType="Long">
+        delete from park_inspect_task where id = #{id}
+    </delete>
+
+    <delete id="deleteParkInspectTaskByIds" parameterType="String">
+        delete from park_inspect_task where id in 
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+    </delete>
+</mapper>

+ 55 - 47
bd-park/park-backend/park-domain/src/main/java/com/huashe/park/domain/entity/ParkInspectProj.java

@@ -1,64 +1,67 @@
 package com.huashe.park.domain.entity;
 
-import org.apache.commons.lang3.builder.ToStringBuilder;
-import org.apache.commons.lang3.builder.ToStringStyle;
+import com.alibaba.fastjson2.JSONArray;
 import com.ruoyi.common.annotation.Excel;
 import com.ruoyi.common.core.domain.BaseEntity;
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
 
 /**
  * 巡检项对象 park_inspect_proj
- * 
+ *
  * @author ruoyi
  * @date 2025-01-06
  */
-public class ParkInspectProj extends BaseEntity
-{
+public class ParkInspectProj extends BaseEntity {
     private static final long serialVersionUID = 1L;
 
-    /** $column.columnComment */
+    /**
+     * $column.columnComment
+     */
     private Long id;
 
-    /** 巡检内容 */
+    /**
+     * 巡检内容
+     */
     @Excel(name = "巡检内容")
-    private String projContent;
+    private JSONArray projContent;
 
-    /** 经度 */
+    /**
+     * 经度
+     */
     @Excel(name = "经度")
     private Double lng;
 
-    /** 维度 */
+    /**
+     * 维度
+     */
     @Excel(name = "维度")
     private Double lat;
 
-    /** 巡检有效半径 */
+    /**
+     * 巡检有效半径
+     */
     @Excel(name = "巡检有效半径")
     private Integer radius;
 
-    /** 巡检项目类型 */
+    /**
+     * 巡检项目类型
+     */
     @Excel(name = "巡检项目类型")
     private String projType;
 
-    /** 租户id */
+    /**
+     * 租户id
+     */
     private String tenantId;
 
-    public void setId(Long id) 
-    {
+    public void setId(Long id) {
         this.id = id;
     }
 
-    public Long getId() 
-    {
+    public Long getId() {
         return id;
     }
-    public void setProjContent(String projContent) 
-    {
-        this.projContent = projContent;
-    }
-
-    public String getProjContent() 
-    {
-        return projContent;
-    }
 
     public Double getLng() {
         return lng;
@@ -84,39 +87,44 @@ public class ParkInspectProj extends BaseEntity
         this.radius = radius;
     }
 
-    public void setProjType(String projType)
-    {
+    public void setProjType(String projType) {
         this.projType = projType;
     }
 
-    public String getProjType() 
-    {
+    public String getProjType() {
         return projType;
     }
-    public void setTenantId(String tenantId) 
-    {
+
+    public JSONArray getProjContent() {
+        return projContent;
+    }
+
+    public void setProjContent(JSONArray projContent) {
+        this.projContent = projContent;
+    }
+
+    public void setTenantId(String tenantId) {
         this.tenantId = tenantId;
     }
 
-    public String getTenantId() 
-    {
+    public String getTenantId() {
         return tenantId;
     }
 
     @Override
     public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("projContent", getProjContent())
-            .append("lng", getLng())
-            .append("lat", getLat())
-            .append("radius", getRadius())
-            .append("projType", getProjType())
-            .append("updateTime", getUpdateTime())
-            .append("createTime", getCreateTime())
-            .append("createBy", getCreateBy())
-            .append("updateBy", getUpdateBy())
-            .append("tenantId", getTenantId())
-            .toString();
+        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
+                .append("id", getId())
+                .append("projContent", getProjContent())
+                .append("lng", getLng())
+                .append("lat", getLat())
+                .append("radius", getRadius())
+                .append("projType", getProjType())
+                .append("updateTime", getUpdateTime())
+                .append("createTime", getCreateTime())
+                .append("createBy", getCreateBy())
+                .append("updateBy", getUpdateBy())
+                .append("tenantId", getTenantId())
+                .toString();
     }
 }

+ 83 - 0
bd-park/park-backend/park-domain/src/main/java/com/huashe/park/domain/entity/ParkInspectTask.java

@@ -0,0 +1,83 @@
+package com.huashe.park.domain.entity;
+
+import org.apache.commons.lang3.builder.ToStringBuilder;
+import org.apache.commons.lang3.builder.ToStringStyle;
+import com.ruoyi.common.annotation.Excel;
+import com.ruoyi.common.core.domain.BaseEntity;
+
+/**
+ * 巡检任务对象 park_inspect_task
+ * 
+ * @author ruoyi
+ * @date 2025-01-07
+ */
+public class ParkInspectTask extends BaseEntity
+{
+    private static final long serialVersionUID = 1L;
+
+    /** 编号 */
+    private Long id;
+
+    /** 任务名称 */
+    @Excel(name = "任务名称")
+    private String taskName;
+
+    /** 巡检计划 */
+    @Excel(name = "巡检计划")
+    private String schedule;
+
+    /** 租户id */
+    private String tenantId;
+
+    public void setId(Long id) 
+    {
+        this.id = id;
+    }
+
+    public Long getId() 
+    {
+        return id;
+    }
+    public void setTaskName(String taskName) 
+    {
+        this.taskName = taskName;
+    }
+
+    public String getTaskName() 
+    {
+        return taskName;
+    }
+    public void setSchedule(String schedule) 
+    {
+        this.schedule = schedule;
+    }
+
+    public String getSchedule() 
+    {
+        return schedule;
+    }
+    public void setTenantId(String tenantId) 
+    {
+        this.tenantId = tenantId;
+    }
+
+    public String getTenantId() 
+    {
+        return tenantId;
+    }
+
+    @Override
+    public String toString() {
+        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
+            .append("id", getId())
+            .append("taskName", getTaskName())
+            .append("remark", getRemark())
+            .append("schedule", getSchedule())
+            .append("updateTime", getUpdateTime())
+            .append("createTime", getCreateTime())
+            .append("createBy", getCreateBy())
+            .append("updateBy", getUpdateBy())
+            .append("tenantId", getTenantId())
+            .toString();
+    }
+}