|
@ -84,7 +84,7 @@ public class DoctorTeamGuidanceController extends WeixinBaseController {
|
|
|
@RequestParam int pageNo,
|
|
|
@RequestParam int pageSize) {
|
|
|
try {
|
|
|
List list = doctorTeamGuidanceService.getTeamGuidanceList(teamId, pageNo-1, pageSize);
|
|
|
List list = doctorTeamGuidanceService.getTeamGuidanceList(teamId, pageNo - 1, pageSize);
|
|
|
return write(200, "获取团队模板列表成功!", "templateList", list);
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, e.getMessage());
|
|
@ -183,6 +183,7 @@ public class DoctorTeamGuidanceController extends WeixinBaseController {
|
|
|
/**
|
|
|
* 删除团队所属的团队模板
|
|
|
*
|
|
|
* @param deleteAll 0否 1是
|
|
|
* @param teamId
|
|
|
* @param guidanceCode
|
|
|
* @return
|
|
@ -191,12 +192,15 @@ public class DoctorTeamGuidanceController extends WeixinBaseController {
|
|
|
@ResponseBody
|
|
|
@ApiOperation("删除团队所属的团队模板")
|
|
|
public String deleteTeamGuidance(
|
|
|
@ApiParam(value = "是否删除存在该模板的所有团队")
|
|
|
@RequestParam int deleteAll,
|
|
|
@ApiParam(value = "团队ID")
|
|
|
@RequestParam int teamId,
|
|
|
@RequestParam(required = false) Integer teamId,
|
|
|
@ApiParam(value = "团队模板编码")
|
|
|
@RequestParam String guidanceCode) {
|
|
|
try {
|
|
|
doctorTeamGuidanceService.deleteTeamGuidance(teamId, guidanceCode);
|
|
|
String doctor = getUID();
|
|
|
doctorTeamGuidanceService.deleteTeamGuidance(doctor,deleteAll, teamId, guidanceCode);
|
|
|
return write(200, "删除模板成功!");
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, e.getMessage());
|
|
@ -229,7 +233,7 @@ public class DoctorTeamGuidanceController extends WeixinBaseController {
|
|
|
try {
|
|
|
String accessToken = getAccessToken();
|
|
|
String doctor = getUID();
|
|
|
doctorTeamGuidanceService.sendTeamGuidance(accessToken,doctor,patient,content, guidanceCode,images,teamId);
|
|
|
doctorTeamGuidanceService.sendTeamGuidance(accessToken, doctor, patient, content, guidanceCode, images, teamId);
|
|
|
return write(200, "发送成功!");
|
|
|
} catch (Exception e) {
|
|
|
return invalidUserException(e, -1, e.getMessage());
|