| | |
| | | package com.ruoyi.production.bean.dto; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import com.ruoyi.production.pojo.ProductionOrderRoutingOperationParam; |
| | | import com.ruoyi.production.pojo.ProductionProductMain; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | |
| | | |
| | | @EqualsAndHashCode(callSuper = true) |
| | | @Data |
| | | @Schema(name = "ProductionProductMainDto", description = "生产报工查询对象") |
| | | @Schema(name = "ProductionProductMainDto", description = "生产报工查询参数") |
| | | public class ProductionProductMainDto extends ProductionProductMain { |
| | | |
| | | @Schema(description = "产品工艺路线明细ID") |
| | | @Schema(description = "产品工艺路线工序ID") |
| | | private Long productProcessRouteItemId; |
| | | |
| | | @Schema(description = "生产报工表id") |
| | | @Schema(description = "报工ID") |
| | | private Long productMainId; |
| | | |
| | | @Schema(description = "租户ID") |
| | |
| | | @Schema(description = "产品名称") |
| | | private String productName; |
| | | |
| | | @Schema(description = "产品型号名称") |
| | | @Schema(description = "产品规格型号") |
| | | private String productModelName; |
| | | |
| | | @Schema(description = "单位") |
| | | private String unit; |
| | | |
| | | @Schema(description = "销售合同编号") |
| | | @Schema(description = "销售合同号") |
| | | private String salesContractNo; |
| | | |
| | | @Schema(description = "排产日期") |
| | |
| | | @Schema(description = "工序") |
| | | private String process; |
| | | |
| | | @Schema(description = "工资定额") |
| | | private BigDecimal workHours; |
| | | |
| | | @Schema(description = "工资") |
| | | private BigDecimal wages; |
| | | |
| | | @Schema(description = "工序参数列表") |
| | | private List<ProductionOrderRoutingOperationParam> productionOperationParamList; |
| | | |
| | | @Schema(description = "当前用户ID,用于权限过滤") |
| | | private Long currentUserId; |
| | | |
| | | @Override |
| | | @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
| | | public void setId(Long id) { |
| | | super.setId(id); |
| | | } |
| | | |
| | | @Override |
| | | @JsonProperty(access = JsonProperty.Access.READ_ONLY) |
| | | public Long getId() { |
| | | return super.getId(); |
| | | } |
| | | |
| | | @Schema(description = "开始报工记录ID(结束报工时传入)") |
| | | private Long startRecordId; |
| | | |
| | | /** |
| | | * 获取结束报工所需的开始记录ID,优先取 startRecordId,其次取继承的 id |
| | | */ |
| | | public Long resolveStartRecordId() { |
| | | if (startRecordId != null) { |
| | | return startRecordId; |
| | | } |
| | | return super.getId(); |
| | | } |
| | | } |