fix(工序出站打印接口):打印数量可传输
This commit is contained in:
parent
3839919b9d
commit
86bc8442fa
@ -321,6 +321,14 @@ public class PrintServiceImpl implements PrintService {
|
|||||||
for (PrintRequest pr : printRequests) {
|
for (PrintRequest pr : printRequests) {
|
||||||
//为便于异常时,获取到实际的模板,此时再次赋值
|
//为便于异常时,获取到实际的模板,此时再次赋值
|
||||||
String printerName = pr.getPrintName();
|
String printerName = pr.getPrintName();
|
||||||
|
// 打印数量逻辑
|
||||||
|
if (baseData.containsKey("printNum") && baseData.get("printNum") != null && !Objects.equals("0", baseData.get("printNum"))) {
|
||||||
|
try {
|
||||||
|
pr.setLabelQty(Integer.parseInt(baseData.get("printNum").toString()));
|
||||||
|
} catch (Exception e) {
|
||||||
|
throw BusinessException.build("打印数量["+baseData.get("printNum")+"]不是数值!");
|
||||||
|
}
|
||||||
|
}
|
||||||
Integer labelQty = pr.getLabelQty();
|
Integer labelQty = pr.getLabelQty();
|
||||||
List<Map<String, Object>> printDataList = pr.getPrintData();
|
List<Map<String, Object>> printDataList = pr.getPrintData();
|
||||||
// 处理质检等级转换
|
// 处理质检等级转换
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user