|
@ -2,7 +2,6 @@ package com.yihu.jw.web.quota;
|
|
|
|
|
|
import com.yihu.jw.entity.hospital.consult.WlyyHospitalSysDictDO;
|
|
|
import com.yihu.jw.entity.hospital.prescription.WlyyOutpatientDO;
|
|
|
import com.yihu.jw.entity.job.QuartzJobConfig;
|
|
|
import com.yihu.jw.hospital.dict.WlyyHospitalSysDictDao;
|
|
|
import com.yihu.jw.im.service.ImService;
|
|
|
import com.yihu.jw.internet.service.DataGeneratorService;
|
|
@ -28,6 +27,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.sound.midi.Soundbank;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.UUID;
|
|
@ -194,20 +194,25 @@ public class JobController extends BaseController {
|
|
|
} else {
|
|
|
logger.info("pay_status_notice_job job exist");
|
|
|
}
|
|
|
case "out_patient_remind_job":
|
|
|
case "RemindOutpatientJob":
|
|
|
//互联网医院 待结算消息推送
|
|
|
if (!quartzHelper.isExistJob("out_patient_remind_job")) {
|
|
|
List<WlyyHospitalSysDictDO> wlyyHospitalSysDictDOS = wlyyHospitalSysDictDao.findByDictName("out_patient_remind_job");
|
|
|
if (!quartzHelper.isExistJob("RemindOutpatientJob")) {
|
|
|
System.out.println("taskID"+taskId);
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDOS = wlyyHospitalSysDictDao.findById("RemindOutpatientJob");
|
|
|
String trigger = "";
|
|
|
if (wlyyHospitalSysDictDOS.size()>0){
|
|
|
trigger = wlyyHospitalSysDictDOS.get(0).getDictValue();
|
|
|
System.out.println("dict查询完毕");
|
|
|
System.out.println(wlyyHospitalSysDictDOS.getId());
|
|
|
if (null!=wlyyHospitalSysDictDOS){
|
|
|
trigger = wlyyHospitalSysDictDOS.getDictValue();
|
|
|
System.out.println(trigger);
|
|
|
}else {
|
|
|
trigger = SystemConf.getInstance().getSystemProperties().getProperty("out_patient_remind_job");
|
|
|
System.out.println("RemindOutpatientJob"+trigger);
|
|
|
trigger = SystemConf.getInstance().getSystemProperties().getProperty("RemindOutpatientJob");
|
|
|
}
|
|
|
quartzHelper.addJob(OutPatientRemindJob.class, trigger, "out_patient_remind_job", new HashMap<String, Object>());
|
|
|
logger.info("out_patient_remind_job job success");
|
|
|
quartzHelper.addJob(RemindOutpatientJob.class, trigger, "RemindOutpatientJob", new HashMap<String, Object>());
|
|
|
logger.info("RemindOutpatientJob job success");
|
|
|
} else {
|
|
|
logger.info("out_patient_remind_job job exist");
|
|
|
logger.info("RemindOutpatientJob job exist");
|
|
|
}
|
|
|
|
|
|
break;
|