| | |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springblade.mdm.flow.constants.FlowConstant; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | @Data |
| | | @Schema(description = "任务计划") |
| | |
| | | @Schema(description = "计划开工时间") |
| | | private LocalDate planStartTime; |
| | | |
| | | @Schema(description = "偏离单号") |
| | | private String deviation; |
| | | @Schema(description = "是否临时流程,值:Y/N") |
| | | private String isTempFlow; |
| | | |
| | | @Schema(description = "任务派工记录表id") |
| | | private Long taskDispatchId; |
| | | |
| | | @Schema(description = "人员职责表id,界面上零件号匹配不上用户指定的") |
| | | private Long producePlanId; |
| | | @Schema(description = "工序唯一码(MES推送)") |
| | | private String operationId; |
| | | @Schema(description = "工单号(MES推送)") |
| | | private String orderNumber; |
| | | @Schema(description = "派工人(手动才有)") |
| | | private String dispatchBy; |
| | | |
| | | @Schema(description = "创建人id") |
| | | private Long createUser; |
| | | /** |
| | | * 是否 未 程序补充流程(临时流程) |
| | | * @return 是否 |
| | | */ |
| | | public boolean isTemporaryFlow(){ |
| | | return FlowConstant.Y.equals(isTempFlow); |
| | | } |
| | | |
| | | /** |
| | | * 是否偏离单 |
| | | * @return 是否 |
| | | */ |
| | | public boolean isDeviationFlow(){ |
| | | return StringUtils.isNotBlank(deviation); |
| | | } |
| | | } |