| 
					
				 | 
			
			
				@ -71,12 +71,11 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = "queryDoctorListNotStopped") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "服务人员列表(可接单状态的医生列表)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String queryDoctorListWithNotStopped( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "patient", value = "服务对象code", required = true) @RequestParam(value = "patient") String patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "hospital", value = "机构code", required = true) @RequestParam(value = "hospital") String hospital, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @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) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = patientDoorCoachOrderService.queryDoctorListWithNotStopped(patient,hospital,page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = patientDoorCoachOrderService.queryDoctorListWithNotStopped(hospital,page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return error(-1,result.getString(ResponseContant.resultMsg)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -102,7 +101,7 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "dispathcherName", value = "调度员姓名") @RequestParam(value = "dispathcherName", required = true) String dispathcherName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctor", value = "医生code") @RequestParam(value = "doctor", required = true) String doctor, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorName", value = "医生姓名") @RequestParam(value = "doctorName", required = true) String doctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorJobName", value = "医生职称") @RequestParam(value = "doctorJobName", required = true) String doctorJobName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorJobName", value = "医生职称") @RequestParam(value = "doctorJobName", required = false) String doctorJobName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = patientDoorCoachOrderService.sendOrderToDoctor(orderId, remark,dispatcher,dispathcherName, doctor, doctorName ,doctorJobName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -124,7 +123,7 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "dispathcherName", value = "当前医生姓名") @RequestParam(value = "dispathcherName", required = true) String dispathcherName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctor", value = "医生code") @RequestParam(value = "doctor", required = true) String doctor, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorName", value = "医生姓名") @RequestParam(value = "doctorName", required = true) String doctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorJobName", value = "医生职称") @RequestParam(value = "doctorJobName", required = true) String doctorJobName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorJobName", value = "医生职称") @RequestParam(value = "doctorJobName", required = false) String doctorJobName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = patientDoorCoachOrderService.transferOrder(orderId, remark,dispatcher,dispathcherName, doctor, doctorName ,doctorJobName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -141,9 +140,9 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "接单") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String acceptOrder( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "工单id", name = "orderId", required = true) @RequestParam(value = "orderId", required = true) String orderId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医生职称code", name = "jobCode", required = false) @RequestParam(value = "jobCode", required = true) String jobCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医生职称", name = "jobCodeName", required = false) @RequestParam(value = "jobCodeName", required = true) String jobCodeName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医院级别", name = "hospitalLevel", required = false) @RequestParam(value = "hospitalLevel", required = false) int hospitalLevel) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医生职称code", name = "jobCode", required = false) @RequestParam(value = "jobCode", required = false) String jobCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医生职称", name = "jobCodeName", required = false) @RequestParam(value = "jobCodeName", required = false) String jobCodeName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "医院级别", name = "hospitalLevel", required = false) @RequestParam(value = "hospitalLevel",defaultValue = "4",required = false) int hospitalLevel) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            doctorDoorCoachOrderService.acceptOrder(orderId,jobCode,jobCodeName,hospitalLevel); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return write(200, "操作成功"); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -220,12 +219,12 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @PostMapping("updateDoorConclusion") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation("编辑保存服务工单小结") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String updateDoorConclusion( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务附件,至少一张,至多3张", name = "orderId",required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "工单id", name = "orderId",required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "orderId", required = true) String orderId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务附件,至少一张,至多3张", name = "conclusionImg",required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "conclusionImg", required = true) String conclusionImg, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务小结", name = "conclusion",required = true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "conclusion", required = true) String conclusion, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务附件,至少一张,至多3张", name = "conclusionImg",required = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "conclusionImg", required = false) String conclusionImg, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务小结", name = "conclusion",required = false) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "conclusion", required = false) String conclusion, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "服务小结是否登记,1跳过登记;2-登记", name = "conclusionStatus") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "conclusionStatus", required = false,defaultValue = "2") Integer conclusionStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -267,9 +266,9 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String saveOrderFinishByDoctor( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "工单id", name = "orderId") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "orderId", required = true) String orderId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "居民确认结束服务方式", name = "finishWay") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "确认结束服务方式 1-电子签名,2-手持身份证拍照", name = "finishWay") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "finishWay", required = false) Integer finishWay, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "居民确认结束服务照片", name = "finishImg") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(value = "确认结束服务照片", name = "finishImg") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "finishImg", required = false) String finishImg) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return write(200, "获取成功", "data", doctorDoorCoachOrderService.saveOrderFinishByDoctor(orderId, finishWay, finishImg)); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -417,14 +416,14 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = "queryDoctorList") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "服务人员列表(医生列表)") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String queryDoctorList( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "town", value = "调度员所在的机构code") @RequestParam(value = "town", required = false) String town, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "hospital", value = "调度员所在的机构code") @RequestParam(value = "hospital", required = false) String hospital, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctorName", value = "医生姓名") @RequestParam(value = "doctorName", required = false) String doctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "status", value = "医生接单状态,状态为全部时不传") @RequestParam(value = "status", required = false) String status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "patient", value = "居民code") @RequestParam(value = "patient", required = false) String patient, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @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) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = doctorDoorCoachOrderService.queryDoctorList(patient,town, doctorName, status, page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            JSONObject result = doctorDoorCoachOrderService.queryDoctorList(patient,hospital, doctorName, status, page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (result.getIntValue(ResponseContant.resultFlag) == ResponseContant.fail) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                return error(-1,result.getString(ResponseContant.resultMsg)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -509,7 +508,7 @@ public class DoctorDoorCoachOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping("/getDispatchOrderSwitch") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "获取医生分派订单开关状态") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String getDispatchOrderSwitch( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctor", value = "医生codedoctor") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @ApiParam(name = "doctor", value = "医生id") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "doctor", required = true) String doctor) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String status = doctorDoorCoachOrderService.findDispatchStatusByDoctor(doctor); 
			 |