fix(手工打印取样标签):新增字段
This commit is contained in:
parent
36b5ec7afd
commit
ae9c8e8a83
@ -46,4 +46,14 @@ public class QmsPrintSamplingLabelRequestDTO {
|
||||
* 打印机名称
|
||||
*/
|
||||
private String printerName;
|
||||
|
||||
/**
|
||||
* 工单
|
||||
*/
|
||||
private String shopOrder;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
}
|
||||
|
||||
@ -15,6 +15,8 @@ import com.foreverwin.nlv.print.feign.RemotePrintService;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@ -84,6 +86,9 @@ public class QmsPrintSamplingLabelServiceImpl extends ServiceImpl<QmsPrintSampli
|
||||
printRequestObj.put("qmsItem", qmsPrintSamplingLabelRequestDTO.getItem());
|
||||
printRequestObj.put("qmsOperation", qmsPrintSamplingLabelRequestDTO.getOperation());
|
||||
printRequestObj.put("qmsResrce", qmsPrintSamplingLabelRequestDTO.getResrce());
|
||||
printRequestObj.put("qmsShopOrder", qmsPrintSamplingLabelRequestDTO.getShopOrder());
|
||||
printRequestObj.put("qmsNowTime", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
|
||||
printRequestObj.put("qmsRemark", qmsPrintSamplingLabelRequestDTO.getRemark());
|
||||
|
||||
// 开个独立的线程,避免阻塞
|
||||
try {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user