|
@ -3,6 +3,7 @@ package com.yihu.wlyy.web.quota;
|
|
|
import com.yihu.wlyy.job.FollowupPlanJob;
|
|
|
import com.yihu.wlyy.job.QuartzHelper;
|
|
|
import com.yihu.wlyy.job.SFExpressJob;
|
|
|
import com.yihu.wlyy.job.ZyDictJob;
|
|
|
import com.yihu.wlyy.job.consult.ConsultCleanerJob;
|
|
|
import com.yihu.wlyy.job.consult.FamousConsultTimesJob;
|
|
|
import com.yihu.wlyy.service.app.disease.PatientDiseaseService;
|
|
@ -22,6 +23,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
import static com.yihu.wlyy.job.consult.ConsultCleanerJob.ConsultTerminatorJobKey;
|
|
|
|
|
@ -119,6 +121,7 @@ public class JobController extends BaseController {
|
|
|
return invalidUserException(e, -1, "启动失败:" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 生成过去某几天的某一个指标的数据
|
|
|
*
|
|
@ -135,12 +138,13 @@ public class JobController extends BaseController {
|
|
|
return invalidUserException(e, -1, "启动失败:" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* 启动任务
|
|
|
*
|
|
|
* @param id id
|
|
|
* @return
|
|
|
*/
|
|
|
|
|
|
/**
|
|
|
* 启动任务
|
|
|
*
|
|
|
* @param id id
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "startById", method = RequestMethod.GET)
|
|
|
public String startById(String id) {
|
|
|
try {
|
|
@ -185,6 +189,7 @@ public class JobController extends BaseController {
|
|
|
return invalidUserException(e, -1, "启动失败:" + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 启动所有任务
|
|
|
*
|
|
@ -324,7 +329,9 @@ public class JobController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/******************************************** 随访计划任务 **********************************************************************/
|
|
|
/********************************************
|
|
|
* 随访计划任务
|
|
|
**********************************************************************/
|
|
|
@RequestMapping(value = "/followup/planJob", method = RequestMethod.POST)
|
|
|
@ApiOperation("随访计划消息发送任务")
|
|
|
public String addFollowPlanJob() {
|
|
@ -342,10 +349,13 @@ public class JobController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//******************************长处方 end********************************
|
|
|
|
|
|
/**
|
|
|
* 遍历顺丰快递下单失败的记录,重新下单
|
|
|
*@author huangwenjie
|
|
|
*@date 2017/8/12 15:35
|
|
|
*
|
|
|
* @author huangwenjie
|
|
|
* @date 2017/8/12 15:35
|
|
|
*/
|
|
|
@RequestMapping(value = "/reOrderExpress", method = RequestMethod.POST)
|
|
|
@ApiOperation("添加超时咨询自动关闭任务")
|
|
@ -359,4 +369,26 @@ public class JobController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 智业字典同步
|
|
|
*
|
|
|
* @Author chenweida
|
|
|
* @params method
|
|
|
* []
|
|
|
* @Date 2017/8/14 11:07
|
|
|
* @Description:
|
|
|
*/
|
|
|
@RequestMapping(value = "/zydictStartJob", method = RequestMethod.POST)
|
|
|
@ApiOperation("智业字典同步")
|
|
|
public String zydictStartJob() {
|
|
|
|
|
|
try {
|
|
|
quartzHelper.startNow(ZyDictJob.class, UUID.randomUUID().toString(), null);
|
|
|
return write(200, "");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
//******************************长处方 end********************************
|
|
|
}
|