From 330dad2bcb7a4fb2a43c0e486653e1e5b404301e Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Mon, 28 Oct 2024 10:40:30 +0800 Subject: [PATCH 1/5] =?UTF-8?q?try=20catch=20=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/InspectionInfoServiceImpl.java | 6 ++- .../impl/RescueDriverInfoServiceImpl.java | 44 ++++++++++--------- 2 files changed, 29 insertions(+), 21 deletions(-) diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java index 2e68139d..6f7c0163 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java @@ -205,8 +205,12 @@ public class InspectionInfoServiceImpl extends ServiceImpl userCarList = new ArrayList<>(); + ShopUserCar userCar = new ShopUserCar(); + userCar.setCarNo(rescueInfo.getLicenseNum()); + userCar.setCarModel(rescueInfo.getCarType()); + userCar.setCarBrand(rescueInfo.getCarBrand()); + userCar.setUserId(user.getId()); + userCarList.add(userCar); - // 收集客户车辆信息 - List userCarList = new ArrayList<>(); - ShopUserCar userCar = new ShopUserCar(); - userCar.setCarNo(rescueInfo.getLicenseNum()); - userCar.setCarModel(rescueInfo.getCarType()); - userCar.setCarBrand(rescueInfo.getCarBrand()); - userCar.setUserId(user.getId()); - userCarList.add(userCar); + customerInfo.setUserCarList(userCarList); - customerInfo.setUserCarList(userCarList); + // 设置客户来源 + CustomerMain customerMain = new CustomerMain(); + customerMain.setDataFrom("02"); + customerMainService.saveOrUpdate(customerMain); - // 设置客户来源 - CustomerMain customerMain = new CustomerMain(); - customerMain.setDataFrom("02"); - customerMainService.saveOrUpdate(customerMain); + // 调用插入客户信息的方法 + customerInfoService.insertPartnerCustomerInfo(customerInfo); + }catch (Exception ignored){ + + } - // 调用插入客户信息的方法 - customerInfoService.insertPartnerCustomerInfo(customerInfo); //所在顶级机构 From e7bd033a7804fee7785a2bf40641c3923ed851ac Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Mon, 28 Oct 2024 11:30:45 +0800 Subject: [PATCH 2/5] =?UTF-8?q?try=20catch=20=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inspection/service/impl/InspectionInfoServiceImpl.java | 1 - .../partner/service/impl/PartnerCustomerInfoServiceImpl.java | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java index 6f7c0163..b03566c8 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java @@ -200,7 +200,6 @@ public class InspectionInfoServiceImpl extends ServiceImpl Date: Mon, 28 Oct 2024 11:38:00 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E5=85=A5=E5=BA=93=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/mapper/stockOperate/DlRepairSoMapper.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dl-module-repair/src/main/resources/mapper/stockOperate/DlRepairSoMapper.xml b/dl-module-repair/src/main/resources/mapper/stockOperate/DlRepairSoMapper.xml index 06abc89b..3f1476ad 100644 --- a/dl-module-repair/src/main/resources/mapper/stockOperate/DlRepairSoMapper.xml +++ b/dl-module-repair/src/main/resources/mapper/stockOperate/DlRepairSoMapper.xml @@ -43,6 +43,7 @@ so.so_status, so.remark, so.corp_id, + so.main_id, so.corp_name, so.dept_id, so.create_time, @@ -67,7 +68,7 @@ and so.so_status = #{map.soStatus} - and so.so_status != '06' + and (so.so_status != '06' or so.so_status is null) and (so.create_time between #{map.searchTimeArray[0]} and #{map.searchTimeArray[1]}) @@ -84,6 +85,9 @@ and (so.user_id = #{map.userId}) + + and so.main_id = #{map.mainId} + order by so.create_time desc