Commit e118582a authored by ZWT's avatar ZWT

nocommit

parent 53331189
......@@ -27,7 +27,7 @@ public class WellTechDailyJob implements XJob {
* @param xContext x上下文
* @return {@link XServiceResult}
*/
@XCronTrigger(value = XCronTrigger.PRE_10S)
@XCronTrigger(value = TaskConstant.EVERY_DAY_ZERO)
@Override
public XServiceResult execute(XContext xContext) {
xContext.getLogger().info("------ WellTechDailyJob start:{}", System.currentTimeMillis());
......
......@@ -196,6 +196,7 @@ public class PlantPredictedPowerCloudServiceImpl implements IPlantPredictedPower
String data = jsonObject.getString("data");
List<WellheadDailyProductionSituationJob> list = JSON.parseArray(data, WellheadDailyProductionSituationJob.class);
if (CollUtil.isEmpty(list)) {
context.getLogger().info("------ WellTechDailyJob 未发现数据: {}", DateUtil.yesterday().toString("yyyy-MM-dd"));
return XServiceResult.OK;
}
List<String> collect = list.stream()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment