|
@ -1,5 +1,6 @@
|
|
package com.yihu.wlyy.web.doctor.team;
|
|
package com.yihu.wlyy.web.doctor.team;
|
|
|
|
|
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.profile.Doctor;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
import com.yihu.wlyy.entity.doctor.team.sign.SignPatientLabelInfo;
|
|
@ -76,6 +77,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(method = RequestMethod.POST)
|
|
@RequestMapping(method = RequestMethod.POST)
|
|
@ApiOperation(value = "创建团队")
|
|
@ApiOperation(value = "创建团队")
|
|
|
|
@ObserverRequired
|
|
public String createTeam(@RequestParam("team_name") String teamName,
|
|
public String createTeam(@RequestParam("team_name") String teamName,
|
|
@RequestParam("leader_id") String leaderCode,
|
|
@RequestParam("leader_id") String leaderCode,
|
|
@RequestParam("org_code") String orgCode) {
|
|
@RequestParam("org_code") String orgCode) {
|
|
@ -93,6 +95,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/remove", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/remove", method = RequestMethod.POST)
|
|
@ApiOperation(value = "删除团队信息")
|
|
@ApiOperation(value = "删除团队信息")
|
|
|
|
@ObserverRequired
|
|
public String deleteTeam(@RequestParam("teamId") long teamId) {
|
|
public String deleteTeam(@RequestParam("teamId") long teamId) {
|
|
try {
|
|
try {
|
|
teamService.deleteTeam(teamId);
|
|
teamService.deleteTeam(teamId);
|
|
@ -106,6 +109,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/{team_id}/name", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/{team_id}/name", method = RequestMethod.POST)
|
|
@ApiOperation(value = "更新团队名称")
|
|
@ApiOperation(value = "更新团队名称")
|
|
|
|
@ObserverRequired
|
|
public String updateTeamName(@PathVariable("team_id") long teamId,
|
|
public String updateTeamName(@PathVariable("team_id") long teamId,
|
|
@RequestParam("team_name") String teamName) {
|
|
@RequestParam("team_name") String teamName) {
|
|
try {
|
|
try {
|
|
@ -120,6 +124,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/{team_id}/leader", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/{team_id}/leader", method = RequestMethod.POST)
|
|
@ApiOperation(value = "更新团队领导")
|
|
@ApiOperation(value = "更新团队领导")
|
|
|
|
@ObserverRequired
|
|
public String updateTeamLeader(@PathVariable("team_id") long teamId,
|
|
public String updateTeamLeader(@PathVariable("team_id") long teamId,
|
|
@RequestParam("doctor_code") String doctorCode) {
|
|
@RequestParam("doctor_code") String doctorCode) {
|
|
try {
|
|
try {
|
|
@ -147,6 +152,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/{team_id}/members", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/{team_id}/members", method = RequestMethod.POST)
|
|
@ApiOperation(value = "添加团队成员,批量添加使用逗号分隔列表")
|
|
@ApiOperation(value = "添加团队成员,批量添加使用逗号分隔列表")
|
|
|
|
@ObserverRequired
|
|
public String addMember(@PathVariable("team_id") long teamId,
|
|
public String addMember(@PathVariable("team_id") long teamId,
|
|
@RequestParam("doctor_code") String doctorCodeList) {
|
|
@RequestParam("doctor_code") String doctorCodeList) {
|
|
try {
|
|
try {
|
|
@ -211,6 +217,7 @@ public class AdminTeamController extends BaseController {
|
|
|
|
|
|
@RequestMapping(value = "/{team_id}/members/{doctor_code}/remove", method = RequestMethod.POST)
|
|
@RequestMapping(value = "/{team_id}/members/{doctor_code}/remove", method = RequestMethod.POST)
|
|
@ApiOperation(value = "移除成员")
|
|
@ApiOperation(value = "移除成员")
|
|
|
|
@ObserverRequired
|
|
public String removeMember(@PathVariable("team_id") long teamId,
|
|
public String removeMember(@PathVariable("team_id") long teamId,
|
|
@PathVariable("doctor_code") String doctorCode) {
|
|
@PathVariable("doctor_code") String doctorCode) {
|
|
|
|
|