feat(erp): 添加采购订单实体字段扩展
- 在ErpPurchaseOrder实体类中新增单据类型、收发类别、部门、业务员等字段 - 在ErpPurchaseOrderBo业务对象中同步添加对应的查询条件字段 - 在ErpPurchaseOrderVo视图对象中添加Excel导出注解配置 - 在MyBatis映射文件中配置新增字段的数据库映射关系 - 在服务实现类中为新增字段添加查询条件构建逻辑 - 统一处理新增字段的JSON序列化和反序列化格式
This commit is contained in:
@@ -76,4 +76,80 @@ public class ErpPurchaseOrder extends BaseEntity {
|
||||
*/
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
@@ -83,5 +83,80 @@ public class ErpPurchaseOrderBo extends BaseEntity {
|
||||
*/
|
||||
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;
|
||||
|
||||
}
|
||||
|
||||
@@ -90,5 +90,95 @@ public class ErpPurchaseOrderVo implements Serializable {
|
||||
@ExcelProperty(value = "备注")
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 单据类型
|
||||
*/
|
||||
@ExcelProperty(value = "单据类型")
|
||||
private String billType;
|
||||
|
||||
/**
|
||||
* 收发类别
|
||||
*/
|
||||
@ExcelProperty(value = "收发类别")
|
||||
private String receiveType;
|
||||
|
||||
/**
|
||||
* 部门
|
||||
*/
|
||||
@ExcelProperty(value = "部门")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 业务员
|
||||
*/
|
||||
@ExcelProperty(value = "业务员")
|
||||
private String salesman;
|
||||
|
||||
/**
|
||||
* 供货单位ID
|
||||
*/
|
||||
@ExcelProperty(value = "供货单位ID")
|
||||
private Long supplyUnitId;
|
||||
|
||||
/**
|
||||
* 制单人
|
||||
*/
|
||||
@ExcelProperty(value = "制单人")
|
||||
private String maker;
|
||||
|
||||
/**
|
||||
* 审核人
|
||||
*/
|
||||
@ExcelProperty(value = "审核人")
|
||||
private String auditor;
|
||||
|
||||
/**
|
||||
* 记账人
|
||||
*/
|
||||
@ExcelProperty(value = "记账人")
|
||||
private String bookkeeper;
|
||||
|
||||
/**
|
||||
* 审核日期
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@ExcelProperty(value = "审核日期")
|
||||
private Date auditDate;
|
||||
|
||||
/**
|
||||
* 存货编码
|
||||
*/
|
||||
@ExcelProperty(value = "存货编码")
|
||||
private String stockCode;
|
||||
|
||||
/**
|
||||
* 存货名称
|
||||
*/
|
||||
@ExcelProperty(value = "存货名称")
|
||||
private String stockName;
|
||||
|
||||
/**
|
||||
* 规格型号
|
||||
*/
|
||||
@ExcelProperty(value = "规格型号")
|
||||
private String specModel;
|
||||
|
||||
/**
|
||||
* 主计量单位
|
||||
*/
|
||||
@ExcelProperty(value = "主计量单位")
|
||||
private String mainUnit;
|
||||
|
||||
/**
|
||||
* 入库数量
|
||||
*/
|
||||
@ExcelProperty(value = "入库数量")
|
||||
private String stockQuantity;
|
||||
|
||||
/**
|
||||
* 仓库ID
|
||||
*/
|
||||
@ExcelProperty(value = "仓库ID")
|
||||
private Long warehouseId;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user