TPurchase.java 7.42 KB
Newer Older
lizhichao's avatar
lizhichao committed
1 2 3
package com.zehong.system.domain;

import java.math.BigDecimal;
耿迪迪's avatar
耿迪迪 committed
4
import java.util.ArrayList;
lizhichao's avatar
lizhichao committed
5
import java.util.Date;
耿迪迪's avatar
耿迪迪 committed
6 7
import java.util.List;

lizhichao's avatar
lizhichao committed
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
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_purchase
 * 
 * @author zehong
 * @date 2023-06-16
 */
public class TPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购主键 */
    private Long purchaseId;

    /** 采购申请部门 */
    @Excel(name = "采购申请部门")
    private Long purchaseDeptId;

耿迪迪's avatar
耿迪迪 committed
31 32
    public Long getHandledByUserId() {
        return handledByUserId;
lizhichao's avatar
lizhichao committed
33 34
    }

耿迪迪's avatar
耿迪迪 committed
35 36
    public void setHandledByUserId(Long handledByUserId) {
        this.handledByUserId = handledByUserId;
lizhichao's avatar
lizhichao committed
37
    }
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPurchaseDeptName() {
        return purchaseDeptName;
    }

    public void setPurchaseDeptName(String purchaseDeptName) {
        this.purchaseDeptName = purchaseDeptName;
    }

    private String purchaseDeptName;
lizhichao's avatar
lizhichao committed
57

耿迪迪's avatar
耿迪迪 committed
58
    private Long handledByUserId;
lizhichao's avatar
lizhichao committed
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
    /** 采购名称 */
    @Excel(name = "采购名称")
    private String purchaseName;

    /** 规格 */
    @Excel(name = "规格")
    private String specifications;

    /** 型号 */
    @Excel(name = "型号")
    private String modelType;

    /** 用途说明 */
    @Excel(name = "用途说明")
    private String applicationDescription;

    /** 使用人 */
    @Excel(name = "使用人")
    private Long userId;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;

    /** 数量 */
    @Excel(name = "数量")
    private Long count;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal total;

    /** 采购申请部门长 */
    @Excel(name = "采购申请部门长")
    private Long purchaseDeptManagerId;

    /** 审批人 */
    @Excel(name = "审批人")
    private Long approvedUserId;

    /** 是否删除:0否,1是 */
    @Excel(name = "是否删除:0否,1是")
    private String isDel;

    /** 采购状态:0.待部门长审核 1.核算部审批 2.完成 3.驳回 */
    @Excel(name = "采购状态:0.待部门长审核 1.核算部审批 2.完成 3.驳回")
    private String purchaseStatus;

    /** 审核时间 */
108 109
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
lizhichao's avatar
lizhichao committed
110 111
    private Date approvedTime;

耿迪迪's avatar
耿迪迪 committed
112 113 114 115 116 117 118 119 120
    /**
     * 操作权限
     */
    private List<String> operators = new ArrayList<>();

    private String approvedUserName;

    private String purchaseDeptManagerName;

耿迪迪's avatar
耿迪迪 committed
121 122
    private String purchaseType;

lizhichao's avatar
lizhichao committed
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258
    public void setPurchaseId(Long purchaseId) 
    {
        this.purchaseId = purchaseId;
    }

    public Long getPurchaseId() 
    {
        return purchaseId;
    }
    public void setPurchaseDeptId(Long purchaseDeptId) 
    {
        this.purchaseDeptId = purchaseDeptId;
    }

    public Long getPurchaseDeptId() 
    {
        return purchaseDeptId;
    }
    public void setPurchaseName(String purchaseName) 
    {
        this.purchaseName = purchaseName;
    }

    public String getPurchaseName() 
    {
        return purchaseName;
    }
    public void setSpecifications(String specifications) 
    {
        this.specifications = specifications;
    }

    public String getSpecifications() 
    {
        return specifications;
    }
    public void setModelType(String modelType) 
    {
        this.modelType = modelType;
    }

    public String getModelType() 
    {
        return modelType;
    }
    public void setApplicationDescription(String applicationDescription) 
    {
        this.applicationDescription = applicationDescription;
    }

    public String getApplicationDescription() 
    {
        return applicationDescription;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setCount(Long count) 
    {
        this.count = count;
    }

    public Long getCount() 
    {
        return count;
    }
    public void setTotal(BigDecimal total) 
    {
        this.total = total;
    }

    public BigDecimal getTotal() 
    {
        return total;
    }
    public void setPurchaseDeptManagerId(Long purchaseDeptManagerId) 
    {
        this.purchaseDeptManagerId = purchaseDeptManagerId;
    }

    public Long getPurchaseDeptManagerId() 
    {
        return purchaseDeptManagerId;
    }
    public void setApprovedUserId(Long approvedUserId) 
    {
        this.approvedUserId = approvedUserId;
    }

    public Long getApprovedUserId() 
    {
        return approvedUserId;
    }
    public void setIsDel(String isDel) 
    {
        this.isDel = isDel;
    }

    public String getIsDel() 
    {
        return isDel;
    }
    public void setPurchaseStatus(String purchaseStatus) 
    {
        this.purchaseStatus = purchaseStatus;
    }

    public String getPurchaseStatus() 
    {
        return purchaseStatus;
    }
    public void setApprovedTime(Date approvedTime) 
    {
        this.approvedTime = approvedTime;
    }

    public Date getApprovedTime() 
    {
        return approvedTime;
    }

耿迪迪's avatar
耿迪迪 committed
259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282
    public List<String> getOperators() {
        return operators;
    }

    public void setOperators(List<String> operators) {
        this.operators = operators;
    }

    public String getApprovedUserName() {
        return approvedUserName;
    }

    public void setApprovedUserName(String approvedUserName) {
        this.approvedUserName = approvedUserName;
    }

    public String getPurchaseDeptManagerName() {
        return purchaseDeptManagerName;
    }

    public void setPurchaseDeptManagerName(String purchaseDeptManagerName) {
        this.purchaseDeptManagerName = purchaseDeptManagerName;
    }

耿迪迪's avatar
耿迪迪 committed
283 284 285 286 287 288 289 290
    public String getPurchaseType() {
        return purchaseType;
    }

    public void setPurchaseType(String purchaseType) {
        this.purchaseType = purchaseType;
    }

lizhichao's avatar
lizhichao committed
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("purchaseDeptId", getPurchaseDeptId())
            .append("purchaseName", getPurchaseName())
            .append("specifications", getSpecifications())
            .append("modelType", getModelType())
            .append("applicationDescription", getApplicationDescription())
            .append("userId", getUserId())
            .append("price", getPrice())
            .append("count", getCount())
            .append("total", getTotal())
            .append("purchaseDeptManagerId", getPurchaseDeptManagerId())
            .append("approvedUserId", getApprovedUserId())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("isDel", getIsDel())
            .append("updateTime", getUpdateTime())
            .append("purchaseStatus", getPurchaseStatus())
            .append("approvedTime", getApprovedTime())
            .toString();
    }
}