|
@ -1574,7 +1574,7 @@ public class DoctorController extends BaseController {
|
|
|
if (StringUtils.isNotEmpty(isAll) && isAll.equals("1")) {
|
|
|
int result = doctorInfoService.updateTeamHealthDoctorsAll(newDoctorCode, getUID());
|
|
|
redisTemplate.opsForValue().set("jianguanshifenpei:" + getUID(),"0");
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 20, TimeUnit.MINUTES);
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 10, TimeUnit.MINUTES);
|
|
|
if (result == 1) {
|
|
|
return write(200, "分配健管师成功");
|
|
|
} else if (result == 2) {
|
|
@ -1587,11 +1587,11 @@ public class DoctorController extends BaseController {
|
|
|
doctorInfoService.updateTeamHealthDoctors(newDoctorCode, oldDoctorCode, patients, getUID());
|
|
|
}
|
|
|
redisTemplate.opsForValue().set("jianguanshifenpei:" + getUID(),"0");
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 20, TimeUnit.MINUTES);
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 10, TimeUnit.MINUTES);
|
|
|
return write(200, "更新成功");
|
|
|
} catch (Exception e) {
|
|
|
redisTemplate.opsForValue().set("jianguanshifenpei:" + getUID(), "0");
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 20, TimeUnit.MINUTES);
|
|
|
redisTemplate.expire("jianguanshifenpei:" + getUID(), 10, TimeUnit.MINUTES);
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "更新失败");
|
|
|
}
|
|
@ -1621,11 +1621,11 @@ public class DoctorController extends BaseController {
|
|
|
}
|
|
|
doctorInfoService.updateTeamDoctors(newDoctorCode, oldDoctorCode, patients, getUID());
|
|
|
redisTemplate.opsForValue().set("quankeyishengfenpei:" + getUID(), "0");
|
|
|
redisTemplate.expire("quankeyishengfenpei:" + getUID(), 20, TimeUnit.MINUTES);
|
|
|
redisTemplate.expire("quankeyishengfenpei:" + getUID(), 10, TimeUnit.MINUTES);
|
|
|
return write(200, "更新成功");
|
|
|
} catch (Exception e) {
|
|
|
redisTemplate.opsForValue().set("quankeyishengfenpei:" + getUID(), "0");
|
|
|
redisTemplate.expire("quankeyishengfenpei:" + getUID(), 20, TimeUnit.MINUTES);
|
|
|
redisTemplate.expire("quankeyishengfenpei:" + getUID(), 10, TimeUnit.MINUTES);
|
|
|
e.printStackTrace();
|
|
|
return error(-1, "更新失败");
|
|
|
}
|