23 changed files with 737 additions and 538 deletions
@ -1,9 +0,0 @@ |
|||
package org.nl.wms.pm_manage.form_data.service.dao; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class FormDataIdCode { |
|||
private String id; |
|||
private String code; |
|||
} |
@ -1,371 +0,0 @@ |
|||
package org.nl.wms.pm_manage.form_data.service.dao; |
|||
|
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.baomidou.mybatisplus.annotation.TableField; |
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
import org.nl.common.domain.handler.FastjsonSortTypeHandler; |
|||
import org.nl.wms.sch_manage.enums.StatusEnum; |
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* <p> |
|||
* 表单信息表 |
|||
* </p> |
|||
* |
|||
* @author generator |
|||
* @since 2024-03-25 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = false) |
|||
@TableName(value = "pm_form_data", autoResultMap = true) |
|||
public class PmFormData implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 业务单据单据id |
|||
*/ |
|||
private String id; |
|||
/** |
|||
* 单据编码 |
|||
*/ |
|||
private String code; |
|||
/** |
|||
* 对应流程实例id |
|||
*/ |
|||
private String proc_inst_id; |
|||
|
|||
/** |
|||
* 业务单据编号 |
|||
*/ |
|||
private String source_form_id; |
|||
|
|||
/** |
|||
* 业务单据编号 |
|||
*/ |
|||
private String source_form_type; |
|||
|
|||
/** |
|||
* 业务单据日期 |
|||
*/ |
|||
private String source_form_date; |
|||
|
|||
/** |
|||
* 单据类型 |
|||
*/ |
|||
private String form_type; |
|||
|
|||
/** |
|||
* 业务单据状态 |
|||
*/ |
|||
private String status = StatusEnum.FORM_STATUS.code("生成"); |
|||
|
|||
|
|||
/** |
|||
* 物料id |
|||
*/ |
|||
private String material_id; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-入库数量FRealQty/采购入库单-采购数量FRealQty |
|||
*/ |
|||
private BigDecimal qty; |
|||
/** |
|||
* 数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
/** |
|||
* 已分配数量 |
|||
*/ |
|||
private BigDecimal assign_qty; |
|||
|
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal actual_qty; |
|||
|
|||
/** |
|||
* 单位 |
|||
*/ |
|||
private String unit_id; |
|||
|
|||
/** |
|||
* 批次号 |
|||
*/ |
|||
private String pcsn; |
|||
/** |
|||
* 载具 |
|||
*/ |
|||
private String vehicle_code; |
|||
/** |
|||
* 载具组盘id |
|||
*/ |
|||
private String vehicle_id; |
|||
|
|||
/** |
|||
* 自定义表单字段 |
|||
*/ |
|||
@TableField(typeHandler = FastjsonSortTypeHandler.class) |
|||
private JSONObject form_data = new JSONObject();; |
|||
|
|||
/** |
|||
* 关联上级表单id |
|||
*/ |
|||
private String parent_id; |
|||
|
|||
|
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_time; |
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_name; |
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String update_time; |
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String update_name; |
|||
|
|||
/** |
|||
* 备注说明 |
|||
*/ |
|||
private String remark; |
|||
|
|||
/** |
|||
* 条码 |
|||
*/ |
|||
private String bar_code; |
|||
|
|||
|
|||
/** |
|||
* 对应表头:生产入库单-生产组织prdOrgId/采购入库单-采购组织FPurchaseOrgId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String prdOrgId; |
|||
|
|||
|
|||
/** |
|||
* 对应表头:生产入库单-入库组织FStockOrgId/采购入库单-收料组织FStockOrgId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String stockOrgId; |
|||
|
|||
/** |
|||
* 拣选出库的载具 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String outVehicleCode; |
|||
|
|||
|
|||
/** |
|||
* 货主类型1 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String ownerTypeIdHead; |
|||
|
|||
/** |
|||
* 对应表头:生产入库单-货主FOwnerId0 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String ownerIdHead_Id; |
|||
|
|||
/** |
|||
* 物料名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String material_name; |
|||
|
|||
|
|||
/** |
|||
* 单重 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String net_weight; |
|||
|
|||
|
|||
/** |
|||
* 物料规格 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String material_spec; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-关联物料编码FMaterialId/采购入库单-关联物料编码FMaterialId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String material_code; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单,采购入库单-单位FUnitCode |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String unit_code; |
|||
|
|||
|
|||
/** |
|||
* 生产订单行号 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String moEntrySeq; |
|||
|
|||
/** |
|||
* 单据编号 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String billNo; |
|||
|
|||
|
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String unit_name; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-货主类型FOwnerTypeId,默认(BD_OwnerOrg) |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String ownerTypeId; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-货主FOwnerId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String ownerId_Id; |
|||
|
|||
/** |
|||
* 供应商 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String supplierId; |
|||
|
|||
/** |
|||
* 计价单位 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String remainInStockUnitId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-关联订单号FMoBillNo/采购入库单-关联订单号FPoOrderNo |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String moNumber; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-关联订单号Id-FMoId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String moId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-关联订单号明细Id-FMoEntryId/采购入库单-关联订单号明细FPoOrderEntryId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String moEntryId; |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-关联源头订单号明细Id-FSrcEntryId/采购入库单-关联源头订单号编号FSrcBillNo |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String srcBillNo; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-生产车间FWorkShopId1 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String workShopId1; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-应收数量FMustQty |
|||
*/ |
|||
@TableField(exist = false) |
|||
private BigDecimal mustQty; |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-入库类型FInStockType,默认: 1 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String inStockType; |
|||
|
|||
/** |
|||
* 对应明细:生产入库单-库存状态FStockStatusId,默认: 10000 |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String stockStatusId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-ERP仓库FStockId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String stockId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-保管者类型FKeeperTypeId,默认(BD_KeeperOrg) |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String keeperTypeId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-保管者FKeeperId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String keeperId; |
|||
|
|||
|
|||
/** |
|||
* 对应表头:采购入库单-业务类型FBusinessType:默认(CG) |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String businessType; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:采购入库单-采购员FPurchaserId |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String purchaserId; |
|||
|
|||
|
|||
/** |
|||
* 对应明细:生产入库单-含税价FTaxPrice |
|||
*/ |
|||
@TableField(exist = false) |
|||
private String taxPrice; |
|||
|
|||
|
|||
/** |
|||
* 自定义表单字段 |
|||
*/ |
|||
@TableField(typeHandler = FastjsonSortTypeHandler.class) |
|||
private JSONObject erp_data = new JSONObject(); |
|||
|
|||
|
|||
} |
@ -0,0 +1,181 @@ |
|||
package org.nl.wms.pm_manage.form_data.service.dao.dao; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.baomidou.mybatisplus.extension.activerecord.Model; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 表单信息表(PmFormData)实体类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2025-06-27 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@TableName("pm_form_data") |
|||
public class PmFormData extends Model<PmFormData> { |
|||
|
|||
private static final long serialVersionUID = -7739291296662381393L; |
|||
//@TableId(type = IdType.ASSIGN_ID)
|
|||
|
|||
|
|||
/** |
|||
* 主键id |
|||
*/ |
|||
@TableId(value = "id", type = IdType.NONE) |
|||
private String id; |
|||
|
|||
|
|||
/** |
|||
* 编号 |
|||
*/ |
|||
private String code; |
|||
|
|||
|
|||
/** |
|||
* 单据状态 |
|||
*/ |
|||
private String status; |
|||
|
|||
|
|||
/** |
|||
* 单据类型 |
|||
*/ |
|||
private String form_type; |
|||
|
|||
|
|||
/** |
|||
* 源单单据日期 |
|||
*/ |
|||
private String source_form_date; |
|||
|
|||
|
|||
/** |
|||
* 物料code |
|||
*/ |
|||
private String material_code; |
|||
|
|||
|
|||
/** |
|||
* 批次号 |
|||
*/ |
|||
private String pcsn; |
|||
|
|||
|
|||
/** |
|||
* 计划数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
|
|||
|
|||
/** |
|||
* 数量 |
|||
*/ |
|||
private BigDecimal qty; |
|||
|
|||
|
|||
/** |
|||
* 分配数量 |
|||
*/ |
|||
private BigDecimal assign_qty; |
|||
|
|||
|
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal actual_qty; |
|||
|
|||
|
|||
/** |
|||
* 单据累计数量 |
|||
*/ |
|||
private BigDecimal total_qty; |
|||
|
|||
|
|||
/** |
|||
* 数量单位 |
|||
*/ |
|||
private String unit_id; |
|||
|
|||
|
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
private String unit_name; |
|||
|
|||
|
|||
/** |
|||
* 载具信息 |
|||
*/ |
|||
private String vehicle_code; |
|||
|
|||
|
|||
/** |
|||
* 载具组盘id |
|||
*/ |
|||
private String vehicle_id; |
|||
|
|||
|
|||
/** |
|||
* 自定义表单字段 |
|||
*/ |
|||
private String form_data; |
|||
|
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT) |
|||
private String create_time; |
|||
|
|||
|
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_name; |
|||
|
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
@TableField(fill = FieldFill.INSERT_UPDATE) |
|||
private String update_time; |
|||
|
|||
|
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private String update_name; |
|||
|
|||
|
|||
/** |
|||
* 说明 |
|||
*/ |
|||
private String remark; |
|||
|
|||
|
|||
/** |
|||
* 是否完结 |
|||
*/ |
|||
private Integer is_finish; |
|||
|
|||
|
|||
/** |
|||
* 获取主键值 |
|||
* |
|||
* @return 主键值 |
|||
*/ |
|||
@Override |
|||
protected Serializable pkVal() { |
|||
return this.id; |
|||
} |
|||
|
|||
} |
|||
|
|||
|
|||
|
@ -0,0 +1,123 @@ |
|||
package org.nl.wms.pm_manage.form_data.service.dao.dto; |
|||
|
|||
import lombok.AllArgsConstructor; |
|||
import lombok.Builder; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
|
|||
|
|||
/** |
|||
* {@code @Description:} 表单信息表(PmFormData)数据传输类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2025-06-27 |
|||
*/ |
|||
@Data |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PmFormDataDto implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7739291296662381396L; |
|||
|
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
/** |
|||
* 编号 |
|||
*/ |
|||
private String code; |
|||
/** |
|||
* 单据状态 |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 单据类型 |
|||
*/ |
|||
private String form_type; |
|||
/** |
|||
* 源单单据日期 |
|||
*/ |
|||
private String source_form_date; |
|||
/** |
|||
* 物料code |
|||
*/ |
|||
private String material_code; |
|||
/** |
|||
* 批次号 |
|||
*/ |
|||
private String pcsn; |
|||
/** |
|||
* 计划数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
/** |
|||
* 数量 |
|||
*/ |
|||
private BigDecimal qty; |
|||
/** |
|||
* 分配数量 |
|||
*/ |
|||
private BigDecimal assign_qty; |
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal actual_qty; |
|||
/** |
|||
* 单据累计数量 |
|||
*/ |
|||
private BigDecimal total_qty; |
|||
/** |
|||
* 数量单位 |
|||
*/ |
|||
private String unit_id; |
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
private String unit_name; |
|||
/** |
|||
* 载具信息 |
|||
*/ |
|||
private String vehicle_code; |
|||
/** |
|||
* 载具组盘id |
|||
*/ |
|||
private String vehicle_id; |
|||
/** |
|||
* 自定义表单字段 |
|||
*/ |
|||
private String form_data; |
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_time; |
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_name; |
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String update_time; |
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private String update_name; |
|||
/** |
|||
* 说明 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 是否完结 |
|||
*/ |
|||
private Integer is_finish; |
|||
|
|||
} |
|||
|
|||
|
|||
|
@ -0,0 +1,115 @@ |
|||
package org.nl.wms.pm_manage.form_data.service.dao.dto; |
|||
|
|||
|
|||
import lombok.*; |
|||
import org.nl.common.domain.query.BaseQuery; |
|||
import org.nl.wms.pm_manage.form_data.service.dao.dao.PmFormData; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* {@code @Description:} 表单信息表(PmFormData)查询参数类 |
|||
* {@code @Author:} gbx |
|||
* |
|||
* @since 2025-06-27 |
|||
*/ |
|||
@Data |
|||
@Builder |
|||
@ToString |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
@EqualsAndHashCode(callSuper = false) |
|||
public class PmFormDataParam extends BaseQuery<PmFormData> { |
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
/** |
|||
* 编号 |
|||
*/ |
|||
private String code; |
|||
/** |
|||
* 单据状态 |
|||
*/ |
|||
private String status; |
|||
/** |
|||
* 单据类型 |
|||
*/ |
|||
private String form_type; |
|||
/** |
|||
* 源单单据日期 |
|||
*/ |
|||
private String source_form_date; |
|||
/** |
|||
* 物料code |
|||
*/ |
|||
private String material_code; |
|||
/** |
|||
* 批次号 |
|||
*/ |
|||
private String pcsn; |
|||
/** |
|||
* 计划数量 |
|||
*/ |
|||
private BigDecimal plan_qty; |
|||
/** |
|||
* 数量 |
|||
*/ |
|||
private BigDecimal qty; |
|||
/** |
|||
* 分配数量 |
|||
*/ |
|||
private BigDecimal assign_qty; |
|||
/** |
|||
* 实际数量 |
|||
*/ |
|||
private BigDecimal actual_qty; |
|||
/** |
|||
* 单据累计数量 |
|||
*/ |
|||
private BigDecimal total_qty; |
|||
/** |
|||
* 数量单位 |
|||
*/ |
|||
private String unit_id; |
|||
/** |
|||
* 单位名称 |
|||
*/ |
|||
private String unit_name; |
|||
/** |
|||
* 载具信息 |
|||
*/ |
|||
private String vehicle_code; |
|||
/** |
|||
* 载具组盘id |
|||
*/ |
|||
private String vehicle_id; |
|||
/** |
|||
* 自定义表单字段 |
|||
*/ |
|||
private String form_data; |
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_time; |
|||
/** |
|||
* 创建id |
|||
*/ |
|||
private String create_name; |
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private String update_time; |
|||
/** |
|||
* 修改人 |
|||
*/ |
|||
private String update_name; |
|||
/** |
|||
* 说明 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 是否完结 |
|||
*/ |
|||
private Integer is_finish; |
|||
} |
Loading…
Reference in new issue