소스 검색

统计修改

lyr 8 년 전
부모
커밋
30f5855005
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/main/java/com/yihu/wlyy/service/app/scheduling/DoctorWorkTimeService.java

+ 4 - 1
src/main/java/com/yihu/wlyy/service/app/scheduling/DoctorWorkTimeService.java

@ -480,7 +480,10 @@ public class DoctorWorkTimeService extends BaseService {
                JSONObject json = isDoctorWorkingToday(doc.getCode());
                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.setConsultDate(date);
                    timesRemain.setTimesRemain(json.getInt("times"));