From 6a03253d26fa7309e05d85156f667f18d45a9674 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Sun, 27 Oct 2024 16:12:09 +0800 Subject: [PATCH] 1 --- .../impl/DlRepairTicketsServiceImpl.java | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java index 189de200..fc7a20c9 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/tickets/service/impl/DlRepairTicketsServiceImpl.java @@ -67,7 +67,6 @@ import java.io.FileOutputStream; import java.io.InputStream; import java.math.BigDecimal; import java.time.LocalDateTime; -import java.time.format.DateTimeFormatter; import java.time.temporal.ChronoUnit; import java.util.*; import java.util.stream.Collectors; @@ -173,23 +172,23 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl { - if (ObjectUtil.isEmpty(item.getRepairIds()) || ObjectUtil.isEmpty(item.getSaleId())) { - String message = ""; - switch (item.getItemType()) { - case "01": - message += "项目:"; - break; - case "02": - message += "配件:"; - break; - case "03": - message += "其他:"; - } - message += (item.getItemName() + (ObjectUtil.isEmpty(item.getRepairIds()) ? "施工人员" : "销售人员") + "为空"); - throw exception0(500, message); - } - }); +// ticketsRespVO.getItemList().forEach(item -> { +// if (ObjectUtil.isEmpty(item.getRepairIds()) || ObjectUtil.isEmpty(item.getSaleId())) { +// String message = ""; +// switch (item.getItemType()) { +// case "01": +// message += "项目:"; +// break; +// case "02": +// message += "配件:"; +// break; +// case "03": +// message += "其他:"; +// } +// message += (item.getItemName() + (ObjectUtil.isEmpty(item.getRepairIds()) ? "施工人员" : "销售人员") + "为空"); +// throw exception0(500, message); +// } +// }); // 门店信息 Long deptId = SecurityFrameworkUtils.getLoginUserDeptId();