|
@@ -13,7 +13,7 @@ if [ -n "$2" ] ;then
|
|
start_time=`date -d "-1 day $current_day" +%Y%m%d`000000
|
|
start_time=`date -d "-1 day $current_day" +%Y%m%d`000000
|
|
end_time=`date -d "0 day $current_day" +%Y%m%d`000000
|
|
end_time=`date -d "0 day $current_day" +%Y%m%d`000000
|
|
|
|
|
|
- energy_start_time=`date -d "-2 day $current_day" +%Y%m%d`160000
|
|
|
|
|
|
+ energy_start_time=`date -d "-2 day $current_day" +%Y%m%d`000000
|
|
energy_end_time=`date -d "-1 day $current_day" +%Y%m%d`160000
|
|
energy_end_time=`date -d "-1 day $current_day" +%Y%m%d`160000
|
|
else
|
|
else
|
|
echo "====没有输入数据的日期,取当前时间的前一天===="
|
|
echo "====没有输入数据的日期,取当前时间的前一天===="
|
|
@@ -39,7 +39,7 @@ echo "energy_end_time:" $energy_end_time
|
|
|
|
|
|
## 能源数据
|
|
## 能源数据
|
|
energy_hbase_to_mysql(){
|
|
energy_hbase_to_mysql(){
|
|
- /usr/local/bin/python3 /opt/app/python_transfer/start_mysql.py 10101 --start_time $energy_start_time --end_time $energy_end_time
|
|
|
|
|
|
+ /usr/local/bin/python3 /opt/app/python_transfer/start_mysql.py 10101 --start_time $start_time --end_time $end_time
|
|
}
|
|
}
|
|
|
|
|
|
## CO2
|
|
## CO2
|