1e28f6915e6b4f6475cbe8fcc282b4a34dbdddef.svn-base 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package cn.com.goldenwater.dcproj.controller.ducha;
  2. import cn.com.goldenwater.core.web.BaseResponse;
  3. import cn.com.goldenwater.dcproj.param.BisInspRsvrPblmMendParam;
  4. import cn.com.goldenwater.dcproj.service.BisInspRsvrPblmMendService;
  5. import io.swagger.annotations.Api;
  6. import io.swagger.annotations.ApiOperation;
  7. import org.apache.commons.lang3.StringUtils;
  8. import org.slf4j.Logger;
  9. import org.slf4j.LoggerFactory;
  10. import org.springframework.beans.factory.annotation.Autowired;
  11. import org.springframework.scheduling.annotation.EnableScheduling;
  12. import org.springframework.scheduling.annotation.Scheduled;
  13. import org.springframework.web.bind.annotation.GetMapping;
  14. import org.springframework.web.bind.annotation.RequestBody;
  15. import org.springframework.web.bind.annotation.RequestMapping;
  16. import org.springframework.web.bind.annotation.RestController;
  17. @Api(value = "四川省整改问题下载", tags = "四川省整改问题下载")
  18. @RestController
  19. @RequestMapping("/cd/data/down/load")
  20. @EnableScheduling
  21. public class ScDataDownLoadController {
  22. private Logger logger = LoggerFactory.getLogger(getClass());
  23. @Autowired
  24. private BisInspRsvrPblmMendService bisInspRsvrPblmMendService;
  25. /**
  26. * 定时导入小水库问题数据
  27. * @throws Exception
  28. */
  29. /* @Scheduled(cron = "0 0/2 * * * ? ")*/
  30. /*@Scheduled(cron = "0 0 0-4 1/1 * ?")*/
  31. /* @Scheduled(cron = "0 0 0/4 * * ?")*/
  32. public void getQuanguo(){
  33. bisInspRsvrPblmMendService.getQuanguo();
  34. }
  35. /**
  36. * 定时更新省级复核情况
  37. */
  38. @Scheduled(cron = "0 0 23 * * ?")
  39. public void updRevwInfo(){
  40. bisInspRsvrPblmMendService.updRevwInfo();
  41. }
  42. }