|
@@ -78,7 +78,7 @@ public class AmountSynDayServiceImpl implements AmountSynByDayService, Initializ
|
|
|
|
|
|
boolean exists = jobAndTriggerService.isExists(entity);
|
|
|
if(!exists) {
|
|
|
- String cron = "0 */1 * * * ?";
|
|
|
+ String cron = "0 */30 * * * ?";
|
|
|
log.info("水量每天同步:" + cron);
|
|
|
entity.setCronExpression(cron);
|
|
|
entity.setJobClassName(AmountSyncByDayJob.class.getName());
|
|
@@ -193,7 +193,7 @@ public class AmountSynDayServiceImpl implements AmountSynByDayService, Initializ
|
|
|
BigDecimal readingOld = amountWaterUsedAmountByDay.getLastreading();//上期止度
|
|
|
|
|
|
if (StringUtils.isNotBlank(amountSynRespDto.getReading())) {
|
|
|
- BigDecimal readingNew = new BigDecimal(amountSynRespDto.getReading()).setScale(0, BigDecimal.ROUND_DOWN);//本期止度
|
|
|
+ BigDecimal readingNew = new BigDecimal(amountSynRespDto.getReading()).setScale(2, BigDecimal.ROUND_DOWN);//本期止度
|
|
|
|
|
|
BigDecimal payAmount ;//结算水量
|
|
|
|
|
@@ -244,5 +244,4 @@ public class AmountSynDayServiceImpl implements AmountSynByDayService, Initializ
|
|
|
}
|
|
|
log.info("每天水量同步结束:" + LocalDateTime.now());
|
|
|
}
|
|
|
-
|
|
|
}
|