|  | @ -0,0 +1,49 @@
 | 
	
		
			
				|  |  | package com.yihu.jw.care.endpoint.booking;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | import com.yihu.jw.care.service.booking.BaseBookingServiceService;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.Envelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.MixEnvelop;
 | 
	
		
			
				|  |  | import com.yihu.jw.restmodel.web.endpoint.EnvelopRestEndpoint;
 | 
	
		
			
				|  |  | import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  | import io.swagger.annotations.ApiParam;
 | 
	
		
			
				|  |  | import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.GetMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  | import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | /***
 | 
	
		
			
				|  |  |  * @ClassName: BaseBookingServiceEndpoint
 | 
	
		
			
				|  |  |  * @Description:
 | 
	
		
			
				|  |  |  * @Auther: shi kejing
 | 
	
		
			
				|  |  |  * @Date: 2021/8/12 10:31
 | 
	
		
			
				|  |  |  */
 | 
	
		
			
				|  |  | @RestController
 | 
	
		
			
				|  |  | @RequestMapping("bookingService" )
 | 
	
		
			
				|  |  | @Api(tags = "预订服务弹框", description = "预订服务弹框")
 | 
	
		
			
				|  |  | public class BaseBookingServiceEndpoint  extends EnvelopRestEndpoint {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private BaseBookingServiceService serviceService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @ApiOperation("是否需要弹框")
 | 
	
		
			
				|  |  |     @GetMapping(value= "findByPatient")
 | 
	
		
			
				|  |  |     public Envelop findByPatient(@ApiParam(name = "patient", value = "patient", required = true) @RequestParam(value = "patient", required = true)String patient){
 | 
	
		
			
				|  |  |         return success("获取成功!",serviceService.findByPatient(patient));
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @ApiOperation("保存,不在弹框")
 | 
	
		
			
				|  |  |     @GetMapping(value= "saveByPatient")
 | 
	
		
			
				|  |  |     public Envelop saveByPatient(@ApiParam(name = "patient", value = "patient", required = true) @RequestParam(value = "patient", required = true)String patient){
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             serviceService.saveByPatient(patient);
 | 
	
		
			
				|  |  |             return success("保存成功!");
 | 
	
		
			
				|  |  |         }catch (Exception e){
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             return success("保存失败!");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | }
 |