|
@ -1472,9 +1472,17 @@ public class DoctorController extends BaseController {
|
|
|
@ResponseBody
|
|
|
public String updateTeamHealthDoctors(String newDoctorCode,
|
|
|
@RequestParam(required = false) String oldDoctorCode,
|
|
|
String patients) {
|
|
|
@RequestParam(required = false) String patients,
|
|
|
@RequestParam(required = false) String isAll) {
|
|
|
try {
|
|
|
doctorInfoService.updateTeamHealthDoctors(newDoctorCode, oldDoctorCode, patients);
|
|
|
if (StringUtils.isNotEmpty(isAll) && isAll.equals("1")) {
|
|
|
doctorInfoService.updateTeamHealthDoctorsAll(newDoctorCode, getUID());
|
|
|
} else {
|
|
|
if (StringUtils.isEmpty(patients)) {
|
|
|
return error(-1, "居民不能为空");
|
|
|
}
|
|
|
doctorInfoService.updateTeamHealthDoctors(newDoctorCode, oldDoctorCode, patients);
|
|
|
}
|
|
|
return write(200, "更新成功");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|