|
|
|
@ -2257,6 +2257,11 @@ public class LabelDataProcessorServiceImpl implements LabelDataProcessorService |
|
|
|
log.info("IFS API返回记录数: {}", ifsBoxLabels != null ? ifsBoxLabels.size() : 0); |
|
|
|
|
|
|
|
if (ifsBoxLabels != null && !ifsBoxLabels.isEmpty()) { |
|
|
|
// 同一查询条件BoxLabel可能返回多行。外箱按QTY逐张打印,多行会把一张外箱拆成多张任务,只保留接口返回顺序的第一条。 |
|
|
|
if (ifsBoxLabels.size() > 1) { |
|
|
|
log.warn("IFS BoxLabel返回{}条数据,仅取第一条用于标签生成", ifsBoxLabels.size()); |
|
|
|
ifsBoxLabels = Collections.singletonList(ifsBoxLabels.getFirst()); |
|
|
|
} |
|
|
|
// 将IfsBoxLabel实体类转换为Map |
|
|
|
ObjectMapper objectMapper = new ObjectMapper(); |
|
|
|
// 日期字段转为标准字符串,避免默认序列化为时间戳数字 |
|
|
|
|