Explorar o código

交易明细 附件重复问题

turborao hai 1 semana
pai
achega
a1d9a19b26

+ 2 - 1
code/jyyy/nckd-jimin-jyyy-fi/src/main/java/nckd/jimin/jyyy/fi/webapi/TransDetailApiPlugin.java

@@ -417,6 +417,7 @@ public class TransDetailApiPlugin implements Serializable {
         String receiptNo = transDetail.getString(BeiTransdetailConstantInfo.RECEIPTNO);
         if(!EmptyUtils.isEmpty(elecreceipt)){
             elecreceiptDyn = elecreceipt;
+            return "";
         }else {
             // 创建动态对象,用于存储交易明细数据
             elecreceiptDyn = BusinessDataServiceHelper.newDynamicObject(BeiElecreceiptConstantInfo.ENTITYID);
@@ -466,7 +467,7 @@ public class TransDetailApiPlugin implements Serializable {
          * 地址格式:address="ftp:\\\\172.16.3.232\\Files\\12Qwee.pdf";
          * 格式 :ftp://172.16.68.44:21/Files/CMB//791904936510302_20250422-20250422_365B261684797_C04474R0007ZOYZ.jpg
          */
-        if(EmptyUtils.isNotEmpty(electricAddress)){
+        if(EmptyUtils.isEmpty(elecreceipt) && EmptyUtils.isNotEmpty(electricAddress)){
             String address = electricAddress;
             address = address.replace("//", "/");
             address = address.replace("\\", "/");