|
@ -0,0 +1,50 @@
|
|
|
package com.yihu.wlyy.web;
|
|
|
|
|
|
import com.yihu.wlyy.service.imm.ChildVaccinImmuneService;
|
|
|
import com.yihu.wlyy.service.specialist.SpecialistService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* Created by zhangdan on 2018/10/16.
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/job/imm/", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "计免免疫")
|
|
|
public class JMController extends BaseController{
|
|
|
|
|
|
@Autowired
|
|
|
private ChildVaccinImmuneService childVaccinImmuneService;
|
|
|
|
|
|
@RequestMapping(value = "getChildImmuneVaccinEveryDay", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("每天获取可预约疫苗test")
|
|
|
public String getChildImmuneVaccinEveryDay (){
|
|
|
|
|
|
try{
|
|
|
int res = childVaccinImmuneService.getChildImmuneVaccinEveryDay();
|
|
|
return write(200,"获取成功!","data",res);
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "alertJobTest", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
@ApiOperation("job提醒居民预约测试")
|
|
|
public String alertJobTest (){
|
|
|
|
|
|
try{
|
|
|
int res = childVaccinImmuneService.alertBefore();
|
|
|
return write(200,"获取成功!","data",res);
|
|
|
}catch (Exception e){
|
|
|
error(e);
|
|
|
return error(-1, e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|