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.
		
		
		
		
			
				
					73 lines
				
				2.2 KiB
			
		
		
			
		
	
	
					73 lines
				
				2.2 KiB
			| 
											2 years ago
										 | package com.ynxbd.common.dao.his;
 | ||
|  | 
 | ||
|  | 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.HashMap;
 | ||
|  | import java.util.List;
 | ||
|  | import java.util.Map;
 | ||
|  | 
 | ||
|  | public class HisMedicalTestDao {
 | ||
|  | 
 | ||
|  |     /**
 | ||
|  |      * [测试]查询处方
 | ||
|  |      *
 | ||
|  |      * @param patientId 患者id
 | ||
|  |      * @return 待付费项目
 | ||
|  |      */
 | ||
|  |     public static List<HisRecipe> devUnPayList(String patientId, int days) {
 | ||
|  |         List<HisRecipe> resultList = new ArrayList<>();
 | ||
|  | 
 | ||
|  |         JsonResult jsonResult = HisHelper.getMdJsonResult(HisEnum.AP_Query_UnPay_Invoice, params -> {
 | ||
|  |             params.put("PatientID", patientId);
 | ||
|  |             params.put("IsLastWeekFlag", days <= 7 ? "1" : "");
 | ||
|  |             params.put("CallNo",HisHelper.CALL_NO);
 | ||
|  |         });
 | ||
|  | 
 | ||
|  |         if (!jsonResult.success()) { // 失败
 | ||
|  |             return resultList;
 | ||
|  |         }
 | ||
|  | 
 | ||
|  |         List<HisRecipe> hisRecipeList = jsonResult.getDataMapList(HisRecipe.class, "Recipe");
 | ||
|  |         if (hisRecipeList != null) {
 | ||
|  |             resultList = hisRecipeList;
 | ||
|  |         }
 | ||
|  |         return resultList;
 | ||
|  |     }
 | ||
|  | 
 | ||
|  | 
 | ||
|  | 
 | ||
|  |     /**
 | ||
|  |      * 根据患者id查询已缴费项目
 | ||
|  |      *
 | ||
|  |      * @param patientId 患者id
 | ||
|  |      * @param begDate   开始日期
 | ||
|  |      * @param endDate   结束日期
 | ||
|  |      * @return 已缴费项目
 | ||
|  |      */
 | ||
|  |     public static List<HisRecipe> devPaidRecipeList(String patientId, String begDate, String endDate) {
 | ||
|  |         List<HisRecipe> resultList = new ArrayList<>();
 | ||
|  | 
 | ||
|  |         Map<String, Object> params = new HashMap<>();
 | ||
|  |         params.put("PatientID", patientId);
 | ||
|  |         params.put("RecipeID", "");
 | ||
|  |         params.put("StartTime", begDate);
 | ||
|  |         params.put("EndTime", endDate);
 | ||
|  |         JsonResult jsonResult = HisHelper.getMdJsonResult(HisEnum.AP_Query_OutpatientFee, params);
 | ||
|  | 
 | ||
|  |         if (!jsonResult.success()) { // 请求失败
 | ||
|  |             return resultList;
 | ||
|  |         }
 | ||
|  | 
 | ||
|  |         List<HisRecipe> hisRecipe = jsonResult.getDataMapList(HisRecipe.class, "Recipe");
 | ||
|  |         if (hisRecipe != null) {
 | ||
|  |             resultList = hisRecipe;
 | ||
|  |         }
 | ||
|  |         return resultList;
 | ||
|  |     }
 | ||
|  | 
 | ||
|  | }
 |