TWorkOrder.java 5.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package com.zehong.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zehong.common.annotation.Excel;
import com.zehong.common.core.domain.BaseEntity;

/**
 * 工单基础信息对象 t_work_order
 * 
 * @author zehong
 * @date 2021-07-19
 */
public class TWorkOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工单id */
    private String orderId;

    /** 工单类型(1巡检信息,2隐患信息,3报警信息) */
24
    @Excel(name = "工单类型", readConverterExp = "1巡检信息,2隐患信息,3报警信息")
25 26 27 28
    private String orderType;

    /** 源id */
    @Excel(name = "源id")
29
    private Integer resourceId;
30 31 32 33 34

    /** 工单名称 */
    @Excel(name = "工单名称")
    private String orderName;

王晓倩's avatar
王晓倩 committed
35
    /** 工单状态(0未接收,1已接收,2已反馈,3已归档) */
36
    @Excel(name = "工单状态", readConverterExp = "0未接收,1已接收,2进行中,3已反馈,4已归档")
37 38
    private String orderStatus;

王晓倩's avatar
王晓倩 committed
39 40 41
    /** 归档信息 */
    private String archiving;

42 43 44 45 46 47 48 49 50 51 52 53 54 55
    /** 指定执行人员(巡检员id) */
    @Excel(name = "指定执行人员", readConverterExp = "巡检员id")
    private Long appointInspector;

    /** 下发时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "下发时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date allotTime;

    /** 实际接收人员(巡检员id) */
    @Excel(name = "实际接收人员", readConverterExp = "巡检员id")
    private Long actualInspector;

    /** 实际接收时间 */
王晓倩's avatar
王晓倩 committed
56
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
57 58 59 60 61 62 63
    @Excel(name = "实际接收时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date actualTime;

    /** 备注 */
    @Excel(name = "备注")
    private String remarks;

jianqian's avatar
jianqian committed
64 65 66 67 68
    /** 地址 */
    private String address;

    private String longitude;
    private String latitude;
jianqian's avatar
jianqian committed
69
    private String pictureUrl;
jianqian's avatar
jianqian committed
70

jianqian's avatar
jianqian committed
71 72 73 74 75
    public String getPictureUrl() {
        return pictureUrl;
    }

    public void setOrderId(String orderId)
76 77 78 79 80 81 82 83
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
王晓倩's avatar
王晓倩 committed
84

85 86 87 88 89 90 91 92 93 94
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }

95
    public Integer getResourceId() {
96 97 98
        return resourceId;
    }

99
    public void setResourceId(Integer resourceId) {
100 101 102 103 104 105 106 107 108 109 110 111
        this.resourceId = resourceId;
    }

    public void setOrderName(String orderName)
    {
        this.orderName = orderName;
    }

    public String getOrderName() 
    {
        return orderName;
    }
王晓倩's avatar
王晓倩 committed
112

113 114 115 116 117 118 119 120 121
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
王晓倩's avatar
王晓倩 committed
122 123 124 125 126 127 128 129 130

    public String getArchiving() {
        return archiving;
    }

    public void setArchiving(String archiving) {
        this.archiving = archiving;
    }

131
    public void setAppointInspector(Long appointInspector)
132 133 134 135
    {
        this.appointInspector = appointInspector;
    }

136
    public Long getAppointInspector()
137 138 139
    {
        return appointInspector;
    }
王晓倩's avatar
王晓倩 committed
140

141 142 143 144 145
    public void setAllotTime(Date allotTime) 
    {
        this.allotTime = allotTime;
    }

王晓倩's avatar
王晓倩 committed
146
    public Date getAllotTime()
147 148 149
    {
        return allotTime;
    }
王晓倩's avatar
王晓倩 committed
150

151
    public void setActualInspector(Long actualInspector)
152 153 154 155
    {
        this.actualInspector = actualInspector;
    }

156
    public Long getActualInspector()
157 158 159
    {
        return actualInspector;
    }
王晓倩's avatar
王晓倩 committed
160

161 162 163 164 165 166 167 168 169
    public void setActualTime(Date actualTime) 
    {
        this.actualTime = actualTime;
    }

    public Date getActualTime() 
    {
        return actualTime;
    }
王晓倩's avatar
王晓倩 committed
170

jianqian's avatar
jianqian committed
171 172 173 174 175
    public void setRemarks(String remarks)
{
    this.remarks = remarks;
}
    public void setAddress(String address)
176
    {
jianqian's avatar
jianqian committed
177 178 179 180 181
        this.address = address;
    }
    public String getAddress()
    {
        return address;
182 183 184 185 186
    }
    public String getRemarks() 
    {
        return remarks;
    }
jianqian's avatar
jianqian committed
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }
    public String getLatitude()
    {
        return this.latitude;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }
    public String getLongitude()
    {
        return this.longitude;
    }
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderType", getOrderType())
            .append("orderName", getOrderName())
            .append("orderStatus", getOrderStatus())
            .append("createTime", getCreateTime())
            .append("appointInspector", getAppointInspector())
            .append("allotTime", getAllotTime())
            .append("actualInspector", getActualInspector())
            .append("actualTime", getActualTime())
            .append("remarks", getRemarks())
            .toString();
    }
}