| | |
| | | package com.ruoyi.production.pojo; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | import com.ruoyi.production.dto.MaterialInfoDto; |
| | | import com.ruoyi.production.dto.PlateMakingDto; |
| | | import com.ruoyi.production.dto.ProcessContentDto; |
| | | import com.ruoyi.production.dto.ProductOrderDto; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | /** |
| | | * 印刷定印单 |
| | |
| | | */ |
| | | @TableField(value = "client_name") |
| | | private String clientName; |
| | | |
| | | |
| | | public ProductOrderDto convertProductOrderDto(@NotNull ProductOrderDto dto) { |
| | | dto.setCutSize(this.getCutSize()); |
| | | dto.setSmallBoxQty(this.getSmallBoxQty()); |
| | | dto.setMediumBoxQty(this.getMediumBoxQty()); |
| | | // 色数 为工序开数第一个 |
| | | if(CollUtil.isNotEmpty(this.processContent)){ |
| | | ProcessContentDto processContentDto = BeanUtil.toBean( |
| | | processContent.get(0), |
| | | ProcessContentDto.class |
| | | ); |
| | | dto.setPrintColorCount(processContentDto.getOpenCount()); |
| | | } |
| | | // 备注已经填充到了 ProductOrderDto中无需关心 |
| | | return dto; |
| | | } |
| | | } |