|
@ -10,6 +10,7 @@ import com.yihu.jw.care.job.message.PatientSendUnreadJob;
|
|
|
import com.yihu.jw.care.service.BirthdayReminderService;
|
|
|
import com.yihu.jw.care.service.JobService;
|
|
|
import com.yihu.jw.care.service.WlyysimFlowVoiceService;
|
|
|
import com.yihu.jw.care.service.data.SaveDataPushService;
|
|
|
import com.yihu.jw.care.service.device.InitializeDataJobService;
|
|
|
import com.yihu.jw.care.service.device.WechatPushService;
|
|
|
import com.yihu.jw.care.service.hz.HzInterfaceService;
|
|
@ -22,10 +23,7 @@ import io.swagger.annotations.ApiParam;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
@ -53,7 +51,8 @@ public class JobController extends BaseController {
|
|
|
private InitializeDataJobService initializeDataJobService;
|
|
|
@Autowired
|
|
|
private HzInterfaceService hzInterfaceService;
|
|
|
|
|
|
@Autowired
|
|
|
private SaveDataPushService saveDataPushService;
|
|
|
@Autowired
|
|
|
private ZhaohuiDailyService zhaohuiDailyService;
|
|
|
|
|
@ -394,6 +393,18 @@ public class JobController extends BaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@ApiOperation("自动生成假数据,每月一条")
|
|
|
@GetMapping(value = "/autoCreateDataPush")
|
|
|
public String autoCreateDataPush(){
|
|
|
try {
|
|
|
saveDataPushService.autoCreateDataPush();
|
|
|
return write(200,"成功");
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1,e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//@RequestMapping(value = "/deletePushData",method = RequestMethod.POST)
|
|
|
public String deletePushData(){
|
|
|
try {
|