自制件打印,查询到多笔数据,返回一条数据;

master
zpl 3 years ago
parent 78d8b00a65
commit 670da5b1f2

@ -112,7 +112,7 @@ public class PrintLogServiceImpl extends ServiceImpl<PrintLogMapper, PrintLog> i
String site = CommonMethods.getSite();
List<LabelPrintDto> sfcPrintInfoBySfc = printLogMapper.findSfcPrintInfoBySfc(sfc, site);
if (sfcPrintInfoBySfc.size() < 1){
throw BusinessException.build("未找到数据【未生成库存】");
throw BusinessException.build("未找到生产的库存数据");
}
return sfcPrintInfoBySfc.get(0);
}

Loading…
Cancel
Save