| 
					
				 | 
			
			
				@ -7,11 +7,13 @@ import com.yihu.jw.internet.service.InternetCommonService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.internet.service.InternetService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.internet.service.ykyy.YkyyInternetService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.job.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.job.ykyy.UnSettledHISPrescriptionJob; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.job.ykyy.YkyyDataUploadJob; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.web.ObjEnvelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.service.quota.JobService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.util.SystemConf; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.web.BaseController; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.wechat.service.WxTemplateService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import io.swagger.annotations.ApiOperation; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.slf4j.LoggerFactory; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -53,6 +55,8 @@ public class JobController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private InternetCommonService internetCommonService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private WxTemplateService wxTemplateService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public JobController(JobService jobService, QuartzHelper quartzHelper) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -60,6 +64,21 @@ public class JobController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        this.quartzHelper = quartzHelper; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 测试方法 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @RequestMapping(value = "unSettledHISPrescription", method = RequestMethod.GET) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String unSettledHISPrescription() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wxTemplateService.unSettledHISPrescription(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return success("成功!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            error(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return invalidUserException(e, -1, "失败:" + e.getMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @RequestMapping(value = "removeJob", method = RequestMethod.GET) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String removeJob(String taskId) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -145,6 +164,17 @@ public class JobController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        logger.info("data_common_upload_job  job exist"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                case "unsettled_prescription_notice_job" : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    //互联网医院 待结算消息推送 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    if (!quartzHelper.isExistJob("unsettled_prescription_notice_job")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        String trigger = SystemConf.getInstance().getSystemProperties().getProperty("unsettled_prescription_notice_job"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        quartzHelper.addJob(UnSettledHISPrescriptionJob.class, trigger, "unsettled_prescription_notice_job", new HashMap<String, Object>()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        logger.info("unsettled_prescription_notice_job  job success"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        logger.info("unsettled_prescription_notice_job  job exist"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                default : 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 |