- 在ErpPurchaseOrder实体类中新增单据类型、收发类别、部门、业务员等字段 - 在ErpPurchaseOrderBo业务对象中同步添加对应的查询条件字段 - 在ErpPurchaseOrderVo视图对象中添加Excel导出注解配置 - 在MyBatis映射文件中配置新增字段的数据库映射关系 - 在服务实现类中为新增字段添加查询条件构建逻辑 - 统一处理新增字段的JSON序列化和反序列化格式
156 lines
2.5 KiB
Java
156 lines
2.5 KiB
Java
package com.klp.erp.domain;
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
import com.klp.common.core.domain.BaseEntity;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
/**
|
|
* 采购订单主对象 erp_purchase_order
|
|
*
|
|
* @author klp
|
|
* @date 2025-11-13
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
@TableName("erp_purchase_order")
|
|
public class ErpPurchaseOrder extends BaseEntity {
|
|
|
|
private static final long serialVersionUID=1L;
|
|
|
|
/**
|
|
* 订单ID
|
|
*/
|
|
@TableId(value = "order_id")
|
|
private Long orderId;
|
|
/**
|
|
* 订单编号
|
|
*/
|
|
private String orderCode;
|
|
/**
|
|
* 供应商ID
|
|
*/
|
|
private Long supplierId;
|
|
/**
|
|
* 下单日期
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
private Date orderDate;
|
|
/**
|
|
* 预计到货日期
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
private Date expectedArrival;
|
|
/**
|
|
* 订单类型
|
|
*/
|
|
private String orderType;
|
|
/**
|
|
* 订单总金额
|
|
*/
|
|
private BigDecimal totalAmount;
|
|
/**
|
|
* 订单状态
|
|
*/
|
|
private Integer orderStatus;
|
|
/**
|
|
* 下达人
|
|
*/
|
|
private String confirmBy;
|
|
/**
|
|
* 下达时间
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
private Date confirmTime;
|
|
/**
|
|
* 删除标志
|
|
*/
|
|
@TableLogic
|
|
private Long delFlag;
|
|
/**
|
|
* 备注
|
|
*/
|
|
private String remark;
|
|
|
|
/**
|
|
* 单据类型
|
|
*/
|
|
private String billType;
|
|
|
|
/**
|
|
* 收发类别
|
|
*/
|
|
private String receiveType;
|
|
|
|
/**
|
|
* 部门
|
|
*/
|
|
private String deptName;
|
|
|
|
/**
|
|
* 业务员
|
|
*/
|
|
private String salesman;
|
|
|
|
/**
|
|
* 供货单位ID
|
|
*/
|
|
private Long supplyUnitId;
|
|
|
|
/**
|
|
* 制单人
|
|
*/
|
|
private String maker;
|
|
|
|
/**
|
|
* 审核人
|
|
*/
|
|
private String auditor;
|
|
|
|
/**
|
|
* 记账人
|
|
*/
|
|
private String bookkeeper;
|
|
|
|
/**
|
|
* 审核日期
|
|
*/
|
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
|
private Date auditDate;
|
|
|
|
/**
|
|
* 存货编码
|
|
*/
|
|
private String stockCode;
|
|
|
|
/**
|
|
* 存货名称
|
|
*/
|
|
private String stockName;
|
|
|
|
/**
|
|
* 规格型号
|
|
*/
|
|
private String specModel;
|
|
|
|
/**
|
|
* 主计量单位
|
|
*/
|
|
private String mainUnit;
|
|
|
|
/**
|
|
* 入库数量
|
|
*/
|
|
private String stockQuantity;
|
|
|
|
/**
|
|
* 仓库ID
|
|
*/
|
|
private Long warehouseId;
|
|
|
|
}
|