|
@ -1,19 +1,17 @@
|
|
|
package com.yihu.wlyy.web.doctor.discussion;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
import com.yihu.wlyy.entity.consult.Consult;
|
|
|
import com.yihu.wlyy.entity.consult.ConsultTeam;
|
|
|
import com.yihu.wlyy.entity.discussion.WlyyTalkGroup;
|
|
|
import com.yihu.wlyy.entity.discussion.WlyyTalkGroupMember;
|
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.repository.doctor.DoctorDao;
|
|
|
import com.yihu.wlyy.service.app.consult.ConsultService;
|
|
|
import com.yihu.wlyy.service.app.consult.ConsultTeamService;
|
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
|
import com.yihu.wlyy.service.common.account.PatientService;
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@ -27,9 +25,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.talk.TalkGroupService;
|
|
|
import com.yihu.wlyy.service.common.account.DoctorService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import java.util.*;
|
|
|
|
|
|
@Controller
|
|
|
@RequestMapping(value = "/doctor/talkgroup", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
@ -205,6 +201,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "创建讨论组失败!");
|
|
|
}
|
|
|
}
|
|
@ -369,6 +366,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
return error(-1, "创建讨论组失败!");
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "创建讨论组失败");
|
|
|
}
|
|
|
}
|
|
@ -408,6 +406,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", group);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -494,6 +493,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "添加讨论组成员成功!", "data", memberJson);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "添加讨论组成员失败!");
|
|
|
}
|
|
|
}
|
|
@ -572,6 +572,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "添加成员成功");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "添加成员失败!");
|
|
|
}
|
|
|
}
|
|
@ -595,6 +596,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
talkGroupService.deleteTalkMember(groupCode, memberCode);
|
|
|
return write(200, "移除成员成功!");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "移除讨论组成员失败!");
|
|
|
}
|
|
|
}
|
|
@ -664,6 +666,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "获取医生讨论组成功!", "data", jsonArray);
|
|
|
} catch (Exception ex) {
|
|
|
error(ex);
|
|
|
return error(-1, "获取医生讨论组列表失败!");
|
|
|
}
|
|
|
}
|
|
@ -684,6 +687,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "查询成功", "data", new JSONArray(data));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -753,6 +757,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
}
|
|
|
return write(200, "查询成功", "data", json);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
@ -796,6 +801,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "获取讨论组成员列表成功!", "data", result);
|
|
|
} catch (Exception ex) {
|
|
|
error(ex);
|
|
|
return error(-1, "获取讨论组成员列表失败!");
|
|
|
}
|
|
|
}
|
|
@ -814,6 +820,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
JSONArray groups = talkGroupService.getTalkGroupHistories(getUID(), patient);
|
|
|
return write(200, "获取讨论组历史记录成功!", "data", groups);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "获取讨论组历史记录失败!");
|
|
|
}
|
|
|
}
|
|
@ -852,6 +859,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "查询成功!", "data", jsonArray);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|
|
@ -870,6 +878,7 @@ public class DoctorDiscussionGroupController extends BaseController {
|
|
|
|
|
|
return write(200, "查询成功!", "data", count);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败!");
|
|
|
}
|
|
|
}
|