| | |
| | | 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; |
| | |
| | | |
| | | @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(); |
| | | } |
| | | } |