|  | @@ -41,7 +41,8 @@ public class MzChargeDetailController {
 | 
	
		
			
				|  |  |      private MzReceiptSerialService mzReceiptSerialService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private YpZdDictService ypZdDictService;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private MzPatientMiService mzPatientMiService;
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 查询费用列表
 | 
	
		
			
				|  |  |       *
 | 
	
	
		
			
				|  | @@ -59,14 +60,22 @@ public class MzChargeDetailController {
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |              PageViewVo pageViewVo = new PageViewVo();
 | 
	
		
			
				|  |  |              MzChargeDetail mzChargeDetail = mzChargeDetailPageDto.getMzChargeDetail();
 | 
	
		
			
				|  |  | -            List<MzChargeDetail> mzChargeDetails;
 | 
	
		
			
				|  |  | +            List<MzChargeDetail> mzChargeDetails=new ArrayList<>();
 | 
	
		
			
				|  |  |              if (PayMarkEnum.NO_CHARGE.code.equals(mzChargeDetail.getPayMark())) {
 | 
	
		
			
				|  |  | -                if (StringUtils.isBlank(mzChargeDetail.getPatientId())) {
 | 
	
		
			
				|  |  | -                    resultMap.put("code", -1);
 | 
	
		
			
				|  |  | -                    // resultMap.put("message", "查询待缴费列表时,病人编号不能为空");
 | 
	
		
			
				|  |  | -                    return resultMap;
 | 
	
		
			
				|  |  | +                if (StringUtils.isNotBlank(mzChargeDetail.getPatientId())) {
 | 
	
		
			
				|  |  | +                    mzChargeDetails.addAll( mzChargeDetailService.unPaidToFullChargeDetail(mzChargeDetail.getPatientId()));
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                if(StringUtils.isNotBlank(mzChargeDetail.getName())){
 | 
	
		
			
				|  |  | +                    List<MzPatientMi> mzPatientMis=mzPatientMiService.queryByName(mzChargeDetail.getName());
 | 
	
		
			
				|  |  | +                    if(mzPatientMis!=null && mzPatientMis.size()>0){
 | 
	
		
			
				|  |  | +                        for (MzPatientMi m:mzPatientMis){
 | 
	
		
			
				|  |  | +                            if(m!=null && StringUtils.isNotBlank(m.getPatientId())){
 | 
	
		
			
				|  |  | +                                mzChargeDetails.addAll(mzChargeDetailService.unPaidToFullChargeDetail(m.getPatientId()));
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                mzChargeDetails = mzChargeDetailService.unPaidToFullChargeDetail(mzChargeDetail.getPatientId());
 | 
	
		
			
				|  |  | +                //if(StringUtils.isNotBlank(mzChargeDetail.get()))
 | 
	
		
			
				|  |  |                  pageViewVo.setPageSize(100);
 | 
	
		
			
				|  |  |                  pageViewVo.setTotal(mzChargeDetails.size());
 | 
	
		
			
				|  |  |              } else {
 |