| | |
| | | package com.fzzy.api.timer; |
| | | |
| | | import com.fzzy.api.data.ApiParam; |
| | | import com.fzzy.otherview.whhpjl.pr.WhjlShareApi2013PR2; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang.time.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @Description 武汉军粮省平台 |
| | |
| | | |
| | | log.info("------->>>>>>>>>>武汉黄陂军粮,系统定时统计共享接口省质检报告"); |
| | | |
| | | Date endTime = new Date(); |
| | | Date startTime = DateUtils.addDays(endTime, -1); |
| | | ApiParam param1 = new ApiParam(); |
| | | param1.setStart(startTime); |
| | | param1.setEnd(endTime); |
| | | //获取共享数据 |
| | | whjlShareApi2013PR2.pullData(null); |
| | | whjlShareApi2013PR2.pullData(param1); |
| | | |
| | | //同步至库区数据库 |
| | | whjlShareApi2013PR2.sysDataToDept(); |
| | | whjlShareApi2013PR2.sysDataToDept(param1); |
| | | } |
| | | |
| | | } |