Browse Source

可输入日期

wudianlong 2 years ago
parent
commit
8a86668c28
1 changed files with 2 additions and 2 deletions
  1. 2 2
      energy/dayTask/py_mysql.sh

+ 2 - 2
energy/dayTask/py_mysql.sh

@@ -2,9 +2,9 @@
 
 #. /opt/app/bi-app/energy/dayTask/config.sh
 
-if [ -n "$2" ] ;then
+if [ -n "$1" ] ;then
     echo "如果是输入的日期按照取输入日期"
-    do_date=$2
+    do_date=$1
     startSec=`date -d "$do_date" "+%s"`
     echo $startSec
     current_day=`date -d "@$startSec" "+%Y-%m-%d"`