|
@@ -9,15 +9,15 @@ if [ -n "$1" ] ;then
|
|
echo $startSec
|
|
echo $startSec
|
|
current_day=`date -d "@$startSec" "+%Y-%m-%d"`
|
|
current_day=`date -d "@$startSec" "+%Y-%m-%d"`
|
|
one_day_ago=`date -d "$current_day yesterday" +%Y%m%d`
|
|
one_day_ago=`date -d "$current_day yesterday" +%Y%m%d`
|
|
- start_time=`date -d "0 day $current_day" +%Y%m%d`000000
|
|
|
|
- end_time=`date -d "1 day $current_day" +%Y%m%d`000000
|
|
|
|
|
|
+ start_time=`date -d "-1 day $current_day" +%Y%m%d`160000
|
|
|
|
+ end_time=`date -d "-2 day $current_day" +%Y%m%d`160000
|
|
else
|
|
else
|
|
echo "====没有输入数据的日期,取当前时间的前一天===="
|
|
echo "====没有输入数据的日期,取当前时间的前一天===="
|
|
- start_time=`date -d "-1 day" +"%Y%m%d"`140000
|
|
|
|
- end_time=`date -d "-2 day" +"%Y%m%d"`140000
|
|
|
|
|
|
+ start_time=`date -d "-1 day" +"%Y%m%d"`160000
|
|
|
|
+ end_time=`date -d "-2 day" +"%Y%m%d"`160000
|
|
fi
|
|
fi
|
|
|
|
|
|
echo $start_time
|
|
echo $start_time
|
|
echo $end_time
|
|
echo $end_time
|
|
|
|
|
|
-#/usr/local/bin/python3 /opt/app/python_transfer/start_mysql.py --start_time $start_time --end_time $end_time
|
|
|
|
|
|
+/usr/local/bin/python3 /opt/app/python_transfer/start_mysql.py 10101 --start_time $start_time --end_time $end_time
|