|  | @ -89,10 +89,11 @@ public class PatientLifeCareEndpoint  extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |     public PageEnvelop page(
 |  |     public PageEnvelop page(
 | 
												
													
														
															|  |             @ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient,
 |  |             @ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient,
 | 
												
													
														
															|  |             @ApiParam(name = "status", value = "工单状态,状态为全部时不传") @RequestParam(value = "status", required = false) Integer status,
 |  |             @ApiParam(name = "status", value = "工单状态,状态为全部时不传") @RequestParam(value = "status", required = false) Integer status,
 | 
												
													
														
															|  | 
 |  |             @ApiParam(name = "fedCode", value = "生活工单服务项") @RequestParam(value = "fedCode", required = false) String fedCode,
 | 
												
													
														
															|  |             @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1") @RequestParam(value = "page") int page,
 |  |             @ApiParam(name = "page", value = "分页大小", required = true, defaultValue = "1") @RequestParam(value = "page") int page,
 | 
												
													
														
															|  |             @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15") @RequestParam(value = "size") int size) {
 |  |             @ApiParam(name = "size", value = "页码", required = true, defaultValue = "15") @RequestParam(value = "size") int size) {
 | 
												
													
														
															|  |         try {
 |  |         try {
 | 
												
													
														
															|  |             JSONObject result = lifeCareOrderService.queryInfoList(patient, status, page, size);
 |  | 
 | 
												
													
														
															|  | 
 |  |             JSONObject result = lifeCareOrderService.queryInfoList(patient, status,fedCode, page, size);
 | 
												
													
														
															|  |             if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 |  |             if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 | 
												
													
														
															|  |                 return PageEnvelop.getError(result.getString(ResponseContant.resultMsg), -1);
 |  |                 return PageEnvelop.getError(result.getString(ResponseContant.resultMsg), -1);
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
											
												
													
														
															|  | @ -106,9 +107,10 @@ public class PatientLifeCareEndpoint  extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |     @GetMapping(value = "infoCount")
 |  |     @GetMapping(value = "infoCount")
 | 
												
													
														
															|  |     @ApiOperation(value = "查询工单数量")
 |  |     @ApiOperation(value = "查询工单数量")
 | 
												
													
														
															|  |     public ObjEnvelop infoCount(
 |  |     public ObjEnvelop infoCount(
 | 
												
													
														
															|  |             @ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient) {
 |  | 
 | 
												
													
														
															|  | 
 |  |             @ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = true) String patient,
 | 
												
													
														
															|  | 
 |  |             @ApiParam(name = "fedCode", value = "生活工单服务项") @RequestParam(value = "fedCode", required = false) String fedCode) {
 | 
												
													
														
															|  |         try {
 |  |         try {
 | 
												
													
														
															|  |             JSONObject allResult = lifeCareOrderService.queryInfoList(patient, null, 1, 5);
 |  | 
 | 
												
													
														
															|  | 
 |  |             JSONObject allResult = lifeCareOrderService.queryInfoList(patient, null,fedCode, 1, 5);
 | 
												
													
														
															|  |             if (allResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 |  |             if (allResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 | 
												
													
														
															|  |                 return ObjEnvelop.getError(allResult.getString(ResponseContant.resultMsg), -1);
 |  |                 return ObjEnvelop.getError(allResult.getString(ResponseContant.resultMsg), -1);
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
											
												
													
														
															|  | @ -116,14 +118,14 @@ public class PatientLifeCareEndpoint  extends EnvelopRestEndpoint {
 | 
												
													
														
															|  |             JSONObject object = new JSONObject();
 |  |             JSONObject object = new JSONObject();
 | 
												
													
														
															|  |             object.put("allCount",allCount);
 |  |             object.put("allCount",allCount);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |             JSONObject qxResult = lifeCareOrderService.queryInfoList(patient, -1, 1, 5);
 |  | 
 | 
												
													
														
															|  | 
 |  |             JSONObject qxResult = lifeCareOrderService.queryInfoList(patient, -1, fedCode,1, 5);
 | 
												
													
														
															|  |             if (qxResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 |  |             if (qxResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 | 
												
													
														
															|  |                 return ObjEnvelop.getError(qxResult.getString(ResponseContant.resultMsg), -1);
 |  |                 return ObjEnvelop.getError(qxResult.getString(ResponseContant.resultMsg), -1);
 | 
												
													
														
															|  |             }
 |  |             }
 | 
												
													
														
															|  |             int qxCount = qxResult.getIntValue(ResponseContant.count);
 |  |             int qxCount = qxResult.getIntValue(ResponseContant.count);
 | 
												
													
														
															|  |             object.put("qxCount",qxCount);
 |  |             object.put("qxCount",qxCount);
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |             JSONObject wcResult = lifeCareOrderService.queryInfoList(patient, 2, 1, 5);
 |  | 
 | 
												
													
														
															|  | 
 |  |             JSONObject wcResult = lifeCareOrderService.queryInfoList(patient, 2, fedCode,1, 5);
 | 
												
													
														
															|  |             if (wcResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 |  |             if (wcResult.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) {
 | 
												
													
														
															|  |                 return ObjEnvelop.getError(wcResult.getString(ResponseContant.resultMsg), -1);
 |  |                 return ObjEnvelop.getError(wcResult.getString(ResponseContant.resultMsg), -1);
 | 
												
													
														
															|  |             }
 |  |             }
 |