Forráskód Böngészése

推理入参赋初始值

zhaops 5 éve
szülő
commit
c8ac2ea9a1

+ 3 - 3
aipt-service/src/main/java/com/diagbot/facade/TransferFacade.java

@@ -86,7 +86,7 @@ public class TransferFacade {
      */
     public List<Lis> addLisUniqueName(List<Lis> lis, String hosCode) {
         if (ListUtil.isEmpty(lis)) {
-            return null;
+            return Lists.newLinkedList();
         }
         List<Lis> retLis = Lists.newLinkedList();
         //化验项转公表内容,参数处理
@@ -140,7 +140,7 @@ public class TransferFacade {
      */
     public List<Pacs> addPacsUniqueName(List<Pacs> pacs, String hosCode) {
         if (ListUtil.isEmpty(pacs)) {
-            return null;
+            return Lists.newLinkedList();
         }
         Map<String, Pacs> pacsOriginalMap = EntityUtil.makeEntityMap(pacs, "name");
         List<Pacs> convertPacs = Lists.newLinkedList();
@@ -201,7 +201,7 @@ public class TransferFacade {
      */
     public List<Item> addItemUniqueName(List<Item> items, Integer type, String hosCode) {
         if (ListUtil.isEmpty(items)) {
-            return null;
+            return Lists.newLinkedList();
         }
         Map<String, Item> itemOriginalMap = EntityUtil.makeEntityMap(items, "name");
         List<Item> convertItems = Lists.newLinkedList();