You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					
					
						
							36 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							36 lines
						
					
					
						
							1.1 KiB
						
					
					
				| package com.ynxbd.common.dao.his.dev;
 | |
| 
 | |
| import com.ynxbd.common.bean.HisRecipe;
 | |
| import com.ynxbd.common.helper.his.HisEnum;
 | |
| import com.ynxbd.common.helper.his.HisHelper;
 | |
| import com.ynxbd.common.result.JsonResult;
 | |
| 
 | |
| import java.util.ArrayList;
 | |
| import java.util.List;
 | |
| 
 | |
| public class DevHisRecipeDao {
 | |
|     /**
 | |
|      * 根据患者id查询待付费项目
 | |
|      *
 | |
|      * @param patientId 患者id
 | |
|      * @return 待付费项目
 | |
|      */
 | |
|     public List<HisRecipe> getDevUnPayRecipe(String patientId, int days) {
 | |
|         List<HisRecipe> resultList = new ArrayList<>();
 | |
| 
 | |
|         JsonResult jsonResult = HisHelper.getDevJsonResult(HisEnum.AP_Query_UnPay_Invoice, params -> {
 | |
|             params.put("PatientID", patientId);
 | |
|             params.put("IsLastWeekFlag", days <= 7 ? "1" : "");
 | |
|         });
 | |
| 
 | |
|         if (!jsonResult.success()) { // 失败
 | |
|             return resultList;
 | |
|         }
 | |
| 
 | |
|         List<HisRecipe> hisRecipe = jsonResult.getDataMapList(HisRecipe.class, "Recipe");
 | |
|         if (hisRecipe != null) {
 | |
|             resultList = hisRecipe;
 | |
|         }
 | |
|         return resultList;
 | |
|     }
 | |
| }
 | |
| 
 |