|  | @ -37,6 +37,7 @@ import com.yihu.jw.restmodel.hospital.prescription.WlyyPrescriptionVO;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.*;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.hospital.BaseHospitalRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.rm.iot.IotRequestMapping;
 | 
	
		
			
				|  |  | import com.yihu.jw.wlyy.service.WlyyBusinessService;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
	
		
			
				|  | @ -267,6 +268,24 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |                                           @RequestParam(value = "consultDeptFlag", required = false)String consultDeptFlag) {
 | 
	
		
			
				|  |  |         return success(prescriptionService.findDeptByHospital(orgCode,dept,consultDeptFlag));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findDeptDescByDeptCodeAndOrgCode)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "查询科室介绍", notes = "查询科室介绍")
 | 
	
		
			
				|  |  |     public MixEnvelop findDeptDesc(@ApiParam(name = "orgCode", value = "机构code")
 | 
	
		
			
				|  |  |                                           @RequestParam(value = "orgCode", required = true)String orgCode,
 | 
	
		
			
				|  |  |                                           @ApiParam(name = "deptCode", value = "部门code")
 | 
	
		
			
				|  |  |                                           @RequestParam(value = "deptCode", required = true)String deptCode) {
 | 
	
		
			
				|  |  |         return prescriptionService.findDeptDesc(orgCode,deptCode);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findDeptByOrgCode)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "查询机构下所有科室", notes = "查询机构下所有科室")
 | 
	
		
			
				|  |  |     public MixEnvelop findDeptByOrgCode(@ApiParam(name = "orgCode", value = "机构code")
 | 
	
		
			
				|  |  |                                    @RequestParam(value = "orgCode", required = true)String orgCode) {
 | 
	
		
			
				|  |  |         return prescriptionService.findDeptByOrgCode(orgCode);
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |     @GetMapping(value = BaseHospitalRequestMapping.Prescription.findDeptByKeyWord)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "查询有所有已开放的科室", notes = "查询有所有已开放的科室")
 | 
	
	
		
			
				|  | @ -1274,9 +1293,11 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |             @ApiParam(name = "patientId", value = "居民Ccode", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(required = true)String patientId,
 | 
	
		
			
				|  |  |             @ApiParam(name = "hospitalId", value = "医院Ccode", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(required = true)String hospitalId) throws Exception {
 | 
	
		
			
				|  |  |             @RequestParam(required = true)String hospitalId,
 | 
	
		
			
				|  |  |             @ApiParam(name = "wxPayType", value = "微信交易类型 公众号支付:JSAPI  原生扫码支付:NATIVE", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(required = true)String wxPayType) throws Exception {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getSuccess("ok",businessOrderService.yktMedicalCardTopUp(mzhm,jkje,type,paymentType,patientId,wxId,hospitalId));
 | 
	
		
			
				|  |  |             return ObjEnvelop.getSuccess("ok",businessOrderService.yktMedicalCardTopUp(mzhm,jkje,type,paymentType,patientId,wxId,hospitalId,wxPayType));
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError(e.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
	
		
			
				|  | @ -1300,7 +1321,25 @@ public class PrescriptionEndpoint extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError(e.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 查询支付info
 | 
	
		
			
				|  |  |      * @param relationCode
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      * @throws Exception
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @PostMapping(value= BaseHospitalRequestMapping.Prescription.selectOrderListStatus)
 | 
	
		
			
				|  |  |     @ApiOperation("查询支付info")
 | 
	
		
			
				|  |  |     public ObjEnvelop selectOrderListStatus(
 | 
	
		
			
				|  |  |             @ApiParam(name = "relationCode", value = "relationCode", required = true)
 | 
	
		
			
				|  |  |             @RequestParam(required = true)String relationCode) throws Exception {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getSuccess("ok",businessOrderService.selectListStatus(relationCode));
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             return ObjEnvelop.getError(e.getMessage());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 易联众统一退款
 |