| 
					
				 | 
			
			
				@@ -1,8 +1,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package cn.hnthyy.thmz.service.impl.his.zd; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hnthyy.thmz.common.Constants; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hnthyy.thmz.entity.his.yp.YpZdDict; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hnthyy.thmz.entity.his.zd.MzZdYpYsh; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hnthyy.thmz.enums.UnitTypeEnum; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import cn.hnthyy.thmz.mapper.his.yp.YpZdDictMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hnthyy.thmz.mapper.his.zd.MzZdYpYshMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import cn.hnthyy.thmz.service.his.zd.MzZdYpYshService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import lombok.extern.slf4j.Slf4j; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -10,6 +12,7 @@ import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.math.BigDecimal; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.util.List; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 @Service 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18,7 +21,9 @@ public class MzZdYpYshServiceImpl implements MzZdYpYshService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @SuppressWarnings("all") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private MzZdYpYshMapper mzZdYpYshMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @SuppressWarnings("all") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private YpZdDictMapper ypZdDictMapper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public List<MzZdYpYsh> queryMzZdYpYshByCommonParamsAndGroupNo(String commonParams, String groupNo) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,6 +59,13 @@ public class MzZdYpYshServiceImpl implements MzZdYpYshService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     m.setDrugWinDesc("1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     log.info("设置药品记录描述出错,药品规格是{}", m.getSpecification()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                YpZdDict ypZdDict= ypZdDictMapper.selectYpZdDictByCodeAndSerial(m.getCode(),m.getSerial()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if(ypZdDict!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if(ypZdDict.getSelfpayProp() != null && ypZdDict.getSelfpayProp().compareTo(BigDecimal.ZERO) == 1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        m.setSelfpayProp(ypZdDict.getSelfpayProp().multiply(BigDecimal.valueOf(100)).setScale(0, BigDecimal.ROUND_HALF_UP)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    m.setYbComment(ypZdDict.getYbCommentNew()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return mzZdYpYshes; 
			 |