| 
															
																@ -827,11 +827,20 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @return 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @throws Exception 
															 | 
															
															 | 
															
																     * @throws Exception 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public JSONObject updateDoorConclusion(Integer emergency_reason,Integer treatment_status,String orderId,String conclusion,String conclusion_img) throws Exception { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public JSONObject updateDoorConclusion(Integer emergency_reason,Integer treatment_status,String orderId,String conclusion,String conclusion_img,String doctor) throws Exception { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject result = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject result = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        ObjectMapper objectMapper = new ObjectMapper(); 
															 | 
															
															 | 
															
																        ObjectMapper objectMapper = new ObjectMapper(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd")); 
															 | 
															
															 | 
															
																        objectMapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd")); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId); 
															 | 
															
															 | 
															
																        SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (StringUtils.isNotBlank(doctor)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            if (doctorDO!=null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setDoctor(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setDoctorName(doctorDO.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setUpdateUser(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setUpdateUserName(doctorDO.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (one==null){ 
															 | 
															
															 | 
															
																        if (one==null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String failMsg = "工单不存在" ; 
															 | 
															
															 | 
															
																            String failMsg = "工单不存在" ; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            result.put("resultFlag", 0); 
															 | 
															
															 | 
															
																            result.put("resultFlag", 0); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -877,9 +886,18 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 跳过登记服务小结 
															 | 
															
															 | 
															
																     * 跳过登记服务小结 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * @param orderId 
															 | 
															
															 | 
															
																     * @param orderId 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public JSONObject cancelConclusion(String orderId) throws Exception { 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public JSONObject cancelConclusion(String orderId,String doctor) throws Exception { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        JSONObject result = new JSONObject(); 
															 | 
															
															 | 
															
																        JSONObject result = new JSONObject(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId); 
															 | 
															
															 | 
															
																        SecurityMonitoringOrderDO one = securityMonitoringOrderDao.findOne(orderId); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (StringUtils.isNotBlank(doctor)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            BaseDoctorDO doctorDO = baseDoctorDao.findById(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            if (doctorDO!=null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setDoctor(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setDoctorName(doctorDO.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setUpdateUser(doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                one.setUpdateUserName(doctorDO.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        if (one==null){ 
															 | 
															
															 | 
															
																        if (one==null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String failMsg = "工单不存在" ; 
															 | 
															
															 | 
															
																            String failMsg = "工单不存在" ; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            result.put("resultFlag", 0); 
															 | 
															
															 | 
															
																            result.put("resultFlag", 0); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -890,7 +908,10 @@ public class SecurityMonitoringOrderService extends BaseJpaService<SecurityMonit 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String failMsg = "咨询结束失败 无法结束工单"; 
															 | 
															
															 | 
															
																            String failMsg = "咨询结束失败 无法结束工单"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            throw new Exception(failMsg); 
															 | 
															
															 | 
															
																            throw new Exception(failMsg); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        securityMonitoringOrderDao.updateConclusionStatus(orderId); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        one.setStatus(0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        one.setUpdateTime(new Date()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        securityMonitoringOrderDao.save(one); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return getSecurityOrderDetail(orderId,null); 
															 | 
															
															 | 
															
																        return getSecurityOrderDetail(orderId,null); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 |