|
@ -480,7 +480,10 @@ public class DoctorWorkTimeService extends BaseService {
|
|
JSONObject json = isDoctorWorkingToday(doc.getCode());
|
|
JSONObject json = isDoctorWorkingToday(doc.getCode());
|
|
|
|
|
|
if (json.getString("status").equals("1")) {
|
|
if (json.getString("status").equals("1")) {
|
|
DoctorFamousConsultTimesRemain timesRemain = new DoctorFamousConsultTimesRemain();
|
|
|
|
|
|
DoctorFamousConsultTimesRemain timesRemain = timesRemainDao.findByDoctorAndConsultDate(doc.getCode(),date);
|
|
|
|
if(timesRemain == null) {
|
|
|
|
timesRemain = new DoctorFamousConsultTimesRemain();
|
|
|
|
}
|
|
timesRemain.setDoctor(doc.getCode());
|
|
timesRemain.setDoctor(doc.getCode());
|
|
timesRemain.setConsultDate(date);
|
|
timesRemain.setConsultDate(date);
|
|
timesRemain.setTimesRemain(json.getInt("times"));
|
|
timesRemain.setTimesRemain(json.getInt("times"));
|