/* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * Neither the name of the dreamlu.net developer nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ package org.sxkj.gd.workorder.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import lombok.EqualsAndHashCode; import org.springblade.core.mp.base.BaseEntity; import org.sxkj.common.handler.ListToStringTypeHandler; import org.sxkj.common.handler.StringToIntegerTypeHandler; import java.util.Date; import java.util.List; /** * 巡查任务表 实体类 * * @author lw * @since 2026-01-14 */ @Data @TableName("ja_gd_patrol_task") @ApiModel(value = "GdPatrolTask对象", description = "巡查任务表") @EqualsAndHashCode(callSuper = true) public class GdPatrolTaskEntity extends BaseEntity { /** * 关联工单任务表ID */ @ApiModelProperty(value = "关联工单任务表ID") private Long workOrderId; /** * 巡查任务编号 */ @ApiModelProperty(value = "巡查任务编号") private String taskNo; /** * 巡查任务名称 */ @ApiModelProperty(value = "巡查任务名称") private String patrolTaskName; /** * 巡查任务类型(巡查类/安检类等) */ @ApiModelProperty(value = "巡查任务类型 1.巡查类 2.巡检类 3.安保类 4.文旅类 5.采集数据类 ") private String patrolTaskType; /** * 执行时间 */ @ApiModelProperty(value = "执行时间") private Date executeTime; /** * 外部来源航线Id */ @ApiModelProperty(value = "外部来源航线Id") private String airlineId; /** * 巡查任务航线URL */ @ApiModelProperty(value = "巡查任务航线URL") private String patrolRouteUrl; /** * 推荐飞手名称 */ @ApiModelProperty(value = "推荐飞手名称") private String recommendFlyerName; /** * 设备飞手ID */ @ApiModelProperty(value = "设备飞手ID") private String deviceFlyerId; // 算法 algorithmIds @ApiModelProperty("算法ids") @TableField(typeHandler = ListToStringTypeHandler.class) private List algorithmIds; /** * 关联设备ID */ @ApiModelProperty(value = "关联设备ID") private Long deviceId; /** * 任务描述 */ @ApiModelProperty(value = "任务描述") private String taskDesc; /** * 状态:0待签收、1拒绝签收、2已撤回、3待审核、4审核驳回、5审核通过、6待验收、7拒绝验收、8验收通过 */ @ApiModelProperty(value = "状态:0待签收、1拒绝签收、2已撤回、3待审核、4审核驳回、5审核通过、6待验收、7拒绝验收、8验收通过") @TableField(typeHandler = StringToIntegerTypeHandler.class) private String taskStatus; /** * 区域编码 */ @ApiModelProperty(value = "区域编码") private String areaCode; /** * 拒绝原因(审核拒绝时必填) */ @ApiModelProperty(value = "拒绝原因(审核拒绝时必填)") private String rejectReason; }