Parcourir la source

可输入日期

wudianlong il y a 2 ans
Parent
commit
8a86668c28
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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"`