From 741918a903e17b2ec7522556d2c043b8d35dd8a1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 15 六月 2026 17:42:58 +0800
Subject: [PATCH] 生产取消bom,不合格管理定制化
---
src/main/java/com/ruoyi/production/bean/dto/ProductionProductMainDto.java | 45 ++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 40 insertions(+), 5 deletions(-)
diff --git a/src/main/java/com/ruoyi/production/bean/dto/ProductionProductMainDto.java b/src/main/java/com/ruoyi/production/bean/dto/ProductionProductMainDto.java
index 1721e81..a758f7e 100644
--- a/src/main/java/com/ruoyi/production/bean/dto/ProductionProductMainDto.java
+++ b/src/main/java/com/ruoyi/production/bean/dto/ProductionProductMainDto.java
@@ -1,5 +1,6 @@
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;
@@ -12,13 +13,13 @@
@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 = "鐢熶骇鎶ュ伐琛╥d")
+ @Schema(description = "鎶ュ伐ID")
private Long productMainId;
@Schema(description = "绉熸埛ID")
@@ -42,13 +43,13 @@
@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 = "鎺掍骇鏃ユ湡")
@@ -63,6 +64,40 @@
@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 = "寮�濮嬫姤宸ヨ褰旾D锛堢粨鏉熸姤宸ユ椂浼犲叆锛�")
+ private Long startRecordId;
+
+ /**
+ * 鑾峰彇缁撴潫鎶ュ伐鎵�闇�鐨勫紑濮嬭褰旾D锛屼紭鍏堝彇 startRecordId锛屽叾娆″彇缁ф壙鐨� id
+ */
+ public Long resolveStartRecordId() {
+ if (startRecordId != null) {
+ return startRecordId;
+ }
+ return super.getId();
+ }
}
--
Gitblit v1.9.3