liutao 1 месяц назад
Родитель
Сommit
7ba5fcd925

+ 2 - 3
src/main/java/com/sunxung/factoring/service/smb/impl/SmbContractInfoServiceImpl.java

@@ -117,11 +117,10 @@ public class SmbContractInfoServiceImpl extends ServiceImpl<SmbContractInfoMappe
             }
             Set<String> keySet = map.keySet();
             for (String key : keySet) {
-                Integer index = Integer.valueOf(key.replace("file_", ""));
-                if(index == 0){
+                if(key.equals(fileStorageDO.getOriginalName())){
                     smbMasterFileId = map.get(key);
                     contractSignBizJson.setType310SdossId(smbMasterFileId);
-                }else if(index == 1){
+                }else if(key.equals(storageDO.getOriginalName())){
                     smbGuaFileId = map.get(key);
                     contractSignBizJson.setType104SdossId(smbGuaFileId);