| | |
| | | import cn.gistack.sm.sjztods.feign.IXsfsQktjClient; |
| | | import cn.gistack.sm.sjztods.vo.SkxsQkTjVO; |
| | | import cn.gistack.sm.sjztods.vo.XsfsQktjVO; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.xxl.job.core.biz.model.ReturnT; |
| | | import com.xxl.job.core.handler.annotation.XxlJob; |
| | | import com.xxl.job.core.log.XxlJobLogger; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | public ReturnT<String> execute(String param) { |
| | | XxlJobLogger.log("执行时间:"+ new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(DateUtil.now())); |
| | | XsfsQktjVO xsfsQktjVO = new XsfsQktjVO(); |
| | | String todayDate = ""; |
| | | if (StringUtil.isNotBlank(param)){ |
| | | JSONObject jsonParam = JSON.parseObject(param); |
| | | String date = jsonParam.getString("date"); |
| | | todayDate = date; |
| | | }else{ |
| | | //设置今日时间 |
| | | todayDate = new SimpleDateFormat("yyyy-MM-dd").format(DateUtil.now()); |
| | | } |
| | | |
| | | //设置今日时间 |
| | | String todayDate = new SimpleDateFormat("yyyy-MM-dd").format(DateUtil.now()); |
| | | xsfsQktjVO.setQueryTime(todayDate); |
| | | |
| | | xsfsQktjClient.saveRegionData(xsfsQktjVO); |