This commit is contained in:
Vinjor 2024-10-27 16:12:09 +08:00
parent 32015dd9db
commit 6a03253d26

View File

@ -67,7 +67,6 @@ import java.io.FileOutputStream;
import java.io.InputStream; import java.io.InputStream;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
import java.util.*; import java.util.*;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@ -173,23 +172,23 @@ public class DlRepairTicketsServiceImpl extends ServiceImpl<DlRepairTicketsMappe
if (ObjectUtil.isEmpty(ticketsRespVO.getAdviserId())) { if (ObjectUtil.isEmpty(ticketsRespVO.getAdviserId())) {
throw exception0(500, "服务顾问为空"); throw exception0(500, "服务顾问为空");
} }
ticketsRespVO.getItemList().forEach(item -> { // ticketsRespVO.getItemList().forEach(item -> {
if (ObjectUtil.isEmpty(item.getRepairIds()) || ObjectUtil.isEmpty(item.getSaleId())) { // if (ObjectUtil.isEmpty(item.getRepairIds()) || ObjectUtil.isEmpty(item.getSaleId())) {
String message = ""; // String message = "";
switch (item.getItemType()) { // switch (item.getItemType()) {
case "01": // case "01":
message += "项目:"; // message += "项目:";
break; // break;
case "02": // case "02":
message += "配件:"; // message += "配件:";
break; // break;
case "03": // case "03":
message += "其他:"; // message += "其他:";
} // }
message += (item.getItemName() + (ObjectUtil.isEmpty(item.getRepairIds()) ? "施工人员" : "销售人员") + "为空"); // message += (item.getItemName() + (ObjectUtil.isEmpty(item.getRepairIds()) ? "施工人员" : "销售人员") + "为空");
throw exception0(500, message); // throw exception0(500, message);
} // }
}); // });
// 门店信息 // 门店信息
Long deptId = SecurityFrameworkUtils.getLoginUserDeptId(); Long deptId = SecurityFrameworkUtils.getLoginUserDeptId();