|
|
|
@ -564,11 +564,12 @@ public class FontController {
|
|
|
|
|
* 通过申请医生id,获取医生名字,
|
|
|
|
|
* 通过病案deptcode,获取医生对应的科室
|
|
|
|
|
*/
|
|
|
|
|
@RequestMapping("/getDoctorNameAndDoctorRoom")
|
|
|
|
|
@RequestMapping(value = "/getDoctorNameAndDoctorRoom",produces = "text/plain;charset=UTF-8")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public String getDoctorNameAndDoctorRoom(String userId,String deptcode) throws Exception{
|
|
|
|
|
Power_User name = power_userMapper.selectForDoctorName(userId);
|
|
|
|
|
Power_User room = power_userMapper.selectForDoctorRoom(deptcode);
|
|
|
|
|
System.out.println(userId+"userId"+deptcode+"deptcode");
|
|
|
|
|
String name = power_userMapper.selectForDoctorName(userId);
|
|
|
|
|
String room= power_userMapper.selectForDoctorRoom(deptcode);
|
|
|
|
|
String result = room+","+name;
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
@ -594,6 +595,18 @@ public class FontController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @MethodName sendMessage
|
|
|
|
|
* @Description: 发送信息接口
|
|
|
|
|
* @Param applyType 申请类型
|
|
|
|
|
* @Param count 新的待审批份数
|
|
|
|
|
* @Returnt Msg
|
|
|
|
|
* @Author: 曾文和
|
|
|
|
|
* @CreateDate: 2020-04-24
|
|
|
|
|
* @UpdateUser: 曾文和
|
|
|
|
|
* @UpdateDate: 2020-04-24
|
|
|
|
|
* @UpdateRemark: 更新说明
|
|
|
|
|
* @Version:
|
|
|
|
|
*
|
|
|
|
|
* 从高明更新至湛江,2021/11/20
|
|
|
|
|
* 修改为向特定用户发送信息
|
|
|
|
|
* 特定用户科主任,病案室
|
|
|
|
@ -616,8 +629,8 @@ public class FontController {
|
|
|
|
|
return Msg.fail("消息内容不能为空");
|
|
|
|
|
}
|
|
|
|
|
WsPool.sendMessageToAll(message.getSysFlag() + "_" + message.getUserId(), message.getTitle() + STR_SPLIT + message.getContent() + STR_SPLIT + message.getTypeFlag());
|
|
|
|
|
//修改为向特定用户发送信息
|
|
|
|
|
// WsPool.sendMessageToUser();
|
|
|
|
|
|
|
|
|
|
return Msg.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|