From 44feda727351ca16222e773edce037ce4e7a47cf Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Tue, 22 Oct 2024 15:57:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E4=BB=B6=E9=A2=86=E9=80=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=9C=80=E5=90=8E=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DlRepairSoServiceImpl.java | 25 +++++++++++++++++++ .../module/tickets/entity/DlTicketWares.java | 3 +++ .../mapper/tickets/DlTicketWaresMapper.xml | 6 +++-- 3 files changed, 32 insertions(+), 2 deletions(-) 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}, '%') )