瀏覽代碼

修复授权牌寄送记录报错问题

JiangChongBo 2 年之前
父節點
當前提交
8908797f95

+ 1 - 1
src/main/java/com/caimei/mapper/cmMapper/LogisticsMapper.java

@@ -25,7 +25,7 @@ public interface LogisticsMapper {
 
 
     void sendCertificate(CertificateLogisticsPo logistics);
     void sendCertificate(CertificateLogisticsPo logistics);
 
 
-    CertificateLogisticsVo getCertificateLogistics(Integer authId);
+    List<CertificateLogisticsVo> getCertificateLogistics(Integer authId);
 
 
     List<LogisticsCompanyVo> getLogisticsCompanyList(Integer companyId);
     List<LogisticsCompanyVo> getLogisticsCompanyList(Integer companyId);
 }
 }

+ 5 - 1
src/main/java/com/caimei/service/auth/impl/LogisticsServiceImpl.java

@@ -68,7 +68,11 @@ public class LogisticsServiceImpl implements LogisticsService {
 
 
     @Override
     @Override
     public ResponseJson certificateLogistics(Integer authId) {
     public ResponseJson certificateLogistics(Integer authId) {
-        CertificateLogisticsVo certificateLogistics = logisticsMapper.getCertificateLogistics(authId);
+        List<CertificateLogisticsVo> certificateLogisticsList = logisticsMapper.getCertificateLogistics(authId);
+        CertificateLogisticsVo certificateLogistics=null;
+        if(null != certificateLogisticsList && certificateLogisticsList.size()>0){
+            certificateLogistics=certificateLogisticsList.get(0);
+        }
         if (null != certificateLogistics) {
         if (null != certificateLogistics) {
             String remarksImage = certificateLogistics.getRemarksImage();
             String remarksImage = certificateLogistics.getRemarksImage();
             if (StringUtils.isNotEmpty(remarksImage)) {
             if (StringUtils.isNotEmpty(remarksImage)) {