From 5b73f899c41957496ee0e4257a8e8bd38fc51d37 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 24 九月 2026 14:50:10 +0800
Subject: [PATCH] 天津-智科电子 1.协同办公-协同审批:待审批节点,第三人账号不可进行修改 2.营销管理-销售台账:勾选单个导出会出现整个导出的情况,但只能显示父项、不能显示子项 3.营销管理-销售台账:点击下拉没有价格,点击详情有价格

---
 src/main/java/com/ruoyi/projectManagement/service/impl/handle/ShippingAddressHandleService.java |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/ruoyi/projectManagement/service/impl/handle/ShippingAddressHandleService.java b/src/main/java/com/ruoyi/projectManagement/service/impl/handle/ShippingAddressHandleService.java
index 6dba016..73acb78 100644
--- a/src/main/java/com/ruoyi/projectManagement/service/impl/handle/ShippingAddressHandleService.java
+++ b/src/main/java/com/ruoyi/projectManagement/service/impl/handle/ShippingAddressHandleService.java
@@ -1,6 +1,7 @@
 package com.ruoyi.projectManagement.service.impl.handle;
 
 import cn.hutool.core.bean.BeanUtil;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 import com.ruoyi.projectManagement.dto.ShippingAddressDto;
 import com.ruoyi.projectManagement.mapper.ShippingAddressMapper;
 import com.ruoyi.projectManagement.pojo.ShippingAddress;
@@ -8,8 +9,8 @@
 import org.springframework.stereotype.Component;
 import org.springframework.transaction.annotation.Transactional;
 
-import javax.annotation.Nullable;
-import javax.validation.constraints.NotNull;
+import jakarta.annotation.Nullable;
+import jakarta.validation.constraints.NotNull;
 
 /**
  * @author buhuazhen
@@ -33,4 +34,14 @@
             shippingAddressMapper.updateById(shippingAddress);
         }
     }
+
+
+    public ShippingAddressDto getByInfoId(@NotNull Long id) {
+        LambdaQueryWrapper<ShippingAddress> queryWrapper = new LambdaQueryWrapper<ShippingAddress>();
+        queryWrapper.eq(ShippingAddress::getProjectManagementInfoId, id);
+        queryWrapper.eq(ShippingAddress::getIsDelete, 0);
+        queryWrapper.last("limit 1");
+        ShippingAddress shippingAddress = shippingAddressMapper.selectOne(queryWrapper);
+        return BeanUtil.copyProperties(shippingAddress, ShippingAddressDto.class);
+    }
 }

--
Gitblit v1.9.3