|
@ -49,7 +49,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patientInclude 病人是否加入讨论组
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/create",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/create", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String createTalkGroup(
|
|
|
@RequestParam(required = true) String name,
|
|
@ -57,6 +57,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
@RequestParam(required = true) String talkDoctor,
|
|
|
@RequestParam(required = true) String talkDoctorName,
|
|
|
@RequestParam(required = true) int doctorType,
|
|
|
@RequestParam(required = false) String consult,
|
|
|
@RequestParam(required = false) String patient,
|
|
|
@RequestParam(required = false) String patientName,
|
|
|
@RequestParam(required = false) String patientInclude) {
|
|
@ -96,7 +97,10 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
talkGroup.setCreator(doctor.getCode());
|
|
|
talkGroup.setCreatorName(doctor.getName());
|
|
|
talkGroup.setHospitalCode(doctor.getHospital());
|
|
|
talkGroup.setHospitalName(doctor.getHosptialName());
|
|
|
talkGroup.setHospitalName(doctor.getHospitalName());
|
|
|
if (StringUtils.isNotEmpty(consult)) {
|
|
|
talkGroup.setConsultCode(consult);
|
|
|
}
|
|
|
talkGroup.setPatient(patient);
|
|
|
talkGroup.setPatientName(patientName);
|
|
|
talkGroup.setCzrq(new Date());
|
|
@ -188,11 +192,12 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patientInclude 患者是否加入
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/create/members",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/create/members", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String createTalkGroupMany(@RequestParam(required = true) String name,
|
|
|
@RequestParam(required = true) int type,
|
|
|
@RequestParam(required = true) String members,
|
|
|
@RequestParam(required = false) String consult,
|
|
|
@RequestParam(required = false) String patient,
|
|
|
@RequestParam(required = false) String patientName,
|
|
|
@RequestParam(required = false) String patientInclude) {
|
|
@ -229,7 +234,10 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
talkGroup.setCreator(doctor.getCode());
|
|
|
talkGroup.setCreatorName(doctor.getName());
|
|
|
talkGroup.setHospitalCode(doctor.getHospital());
|
|
|
talkGroup.setHospitalName(doctor.getHosptialName());
|
|
|
talkGroup.setHospitalName(doctor.getHospitalName());
|
|
|
if (StringUtils.isNotEmpty(consult)) {
|
|
|
talkGroup.setConsultCode(consult);
|
|
|
}
|
|
|
talkGroup.setPatient(patient);
|
|
|
talkGroup.setPatientName(patientName);
|
|
|
talkGroup.setCzrq(new Date());
|
|
@ -318,6 +326,42 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取查询对应的求助
|
|
|
*
|
|
|
* @param cosnult
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/group/consult", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getConsultTalkGroup(@RequestParam(required = true) String cosnult) {
|
|
|
try {
|
|
|
WlyyTalkGroup group = talkGroupService.getConsultGroup(cosnult);
|
|
|
|
|
|
return write(200, "查询成功", "data", group);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 获取常用医生
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/common_doctors", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getCommonDoctors() {
|
|
|
try {
|
|
|
JSONArray result = talkGroupService.getCommonDoctors(getUID());
|
|
|
return write(200, "查询成功", "data", result);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 添加讨论组成员
|
|
|
*
|
|
@ -328,7 +372,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param doctorType 医生类型
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "addmember",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "addmember", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String addTalkMember(
|
|
|
@RequestParam(required = true) String groupCode,
|
|
@ -385,7 +429,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param members 讨论组成员[{"doctor":"xxx","doctorName":"xxx","doctorType":1}]
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/addmembers",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/addmembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String addMembers(String groupCode, String groupName, String members) {
|
|
|
try {
|
|
@ -460,7 +504,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param memberCode 讨论组成员标识
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "removemember",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "removemember", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String removeTalkMember(
|
|
|
@RequestParam(required = true) String groupCode,
|
|
@ -480,7 +524,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param members
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/removemembers",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/removemembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String removeMembers(String groupCode, String members) {
|
|
|
try {
|
|
@ -500,7 +544,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "mytalkgroups",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "mytalkgroups", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroup(
|
|
|
@RequestParam(required = false) String doctorName,
|
|
@ -546,7 +590,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param groups
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/group_sign",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/group_sign", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroupSign(String groups) {
|
|
|
try {
|
|
@ -563,7 +607,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "groupmembers",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "groupmembers", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupMembers(@RequestParam(required = true) String groupCode) {
|
|
|
try {
|
|
@ -606,7 +650,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param patient
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "histories",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "histories", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupHistory(@RequestParam(required = true) String patient) {
|
|
|
try {
|
|
@ -623,7 +667,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param member
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "related",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "related", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTalkGroupRelated(@RequestParam(required = true) String member, @RequestParam(required = false) String groupType) {
|
|
|
try {
|
|
@ -659,7 +703,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "count",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "count", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getMyTalkGroupCount() {
|
|
|
try {
|
|
@ -677,7 +721,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param doctorName
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/one_to_one_im",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/one_to_one_im", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getOneToOneIm(@RequestParam(required = false) String doctorName
|
|
|
, @RequestParam(required = false) Integer page
|
|
@ -712,7 +756,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param filter 搜索字段
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/doctor_im_search",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/doctor_im_search", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String imSearch(@RequestParam(required = true) String filter) {
|
|
|
try {
|
|
@ -735,7 +779,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param type 类型: 1居民 2医生
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/im_list",method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/im_list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getImList(@RequestParam(required = true) int type,
|
|
|
@RequestParam(required = true) int page,
|
|
@ -759,7 +803,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
* @param type 类型: 1居民 2医生
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/recent_im_list" ,method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@RequestMapping(value = "/recent_im_list", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getRecentImList(@RequestParam(required = true) int type) {
|
|
|
try {
|