diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java index 6f867bbe..1f1dd665 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/stockOperate/service/impl/DlRepairSoServiceImpl.java @@ -6,6 +6,7 @@ import cn.hutool.core.util.ObjectUtil; import cn.iocoder.yudao.common.RepairErrorCodeConstants; import cn.iocoder.yudao.common.SoStatusEnum; import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; +import cn.iocoder.yudao.module.base.service.RepairWorkerService; import cn.iocoder.yudao.module.company.entity.Company; import cn.iocoder.yudao.module.company.service.CompanyService; import cn.iocoder.yudao.module.project.entity.RepairWares; @@ -85,6 +86,10 @@ public class DlRepairSoServiceImpl extends ServiceImpl flag = list.stream().filter(item -> !item.getWaresStatus().equals("01")).collect(Collectors.toList()); dlTicketWares.setStatus(CollectionUtil.isEmpty(flag) ? "03" : "04"); ticketWaresService.updateById(dlTicketWares); + + // 查主表记录 + DlRepairSo newSo = baseMapper.selectById(id); + // 通知仓库 + repairWorkerService.sentMessage(Long.valueOf(newSo.getCreator()), newSo.getUserName() + "已确认领料单:" + newSo.getSoNo()); } /** @@ -351,6 +371,11 @@ public class DlRepairSoServiceImpl extends ServiceImpl + @@ -24,7 +25,8 @@ dtw.repair_id as repair_id, dtw.repair_name as repair_name, dtw.adviser_id as adviser_id, - dtw.adviser_name as adviser_name + dtw.adviser_name as adviser_name, + dtw.license_number from dl_ticket_wares dtw left join dl_repair_tickets drt on dtw.ticket_id = drt.id @@ -39,7 +41,7 @@ or drt.ticket_no like concat('%', #{map.query}, '%') or - drt.car_no like concat('%', #{map.query}, '%') + dtw.license_number like concat('%', #{map.query}, '%') )