|
@@ -17,6 +17,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -69,7 +70,14 @@ public class OtherTipProcess {
|
|
|
* @param res
|
|
|
*/
|
|
|
public void processPacs(List<OtherTipPacsNeoDTO> otherTipTransfusionNeoDTOList, IndicationDTO res) {
|
|
|
-
|
|
|
+ if (ListUtil.isNotEmpty(otherTipTransfusionNeoDTOList)) {
|
|
|
+ // 去重
|
|
|
+ Set<String> msgList = otherTipTransfusionNeoDTOList.stream().map(r -> r.getMsg()).collect(Collectors.toSet());
|
|
|
+ for (String s : msgList) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherTipPacsMsg(s);
|
|
|
+ res.getOtherList().add(billMsg);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/**
|