|
@@ -79,6 +79,8 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
b = get_dic("taskType")[data[0][3]]
|
|
|
std=data[0][5]
|
|
|
singlelogs=baseFunction.TuplefindInList33(logs,i[0],1,8)#未处理的警告信息
|
|
|
+
|
|
|
+ singlelogstext=baseFunction.TuplefindInList33(logs,i[0],1,2)#未处理的警告信息
|
|
|
singlelogsall=baseFunction.TuplefindInList33(logsall, i[0], 1, 2) #所有警告信息
|
|
|
singlelogsall1=baseFunction.TuplefindInList11(logsall1, i[0], 1) #所有和这个id相关的提示信息
|
|
|
jjdw=baseFunction.TuplefindInList3(flightsts,i[0],0,3)
|
|
@@ -135,7 +137,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
|
|
|
if ETA_40 < now and BAY_A == "" and "机位未出提醒" not in str(singlelogsall):
|
|
|
WarningInsert(database,i[0],"[机位未出提醒]请确认%s/%s机位情况!"%(a,b),"机位警告")
|
|
|
- elif BAY_A != "" and "机位未出提醒" in str(singlelogsall):
|
|
|
+ elif BAY_A != "" and "机位未出提醒" in str(singlelogstext):
|
|
|
mesg="[机位未出提醒]请确认%s/%s机位情况!"%(a,b)
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
@@ -191,7 +193,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
WarningInsert(database,i[0],"请注意安排%s %s长短停值守,如无需则忽略!" % (a,c),"长短停值守提示")
|
|
|
if ETA_40 < now and BAY_A == "" and "机位未出提醒" not in str(singlelogsall):
|
|
|
WarningInsert(database,i[0],"[机位未出提醒]请确认%s/%s机位情况!"%(a,b),"机位警告")
|
|
|
- elif BAY_A != "" and "机位未出提醒" in str(singlelogsall):
|
|
|
+ elif BAY_A != "" and "机位未出提醒" in str(singlelogstext):
|
|
|
mesg="[机位未出提醒]请确认%s/%s机位情况!"%(a,b)
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
@@ -241,7 +243,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
|
|
|
if ETA_40 < now and BAY_A == "" and "机位未出提醒" not in str(singlelogsall):
|
|
|
WarningInsert(database,i[0],"[机位未出提醒]请确认%s/%s机位情况!"%(a,b),"机位警告")
|
|
|
- elif BAY_A != "" and "机位未出提醒" in str(singlelogsall):
|
|
|
+ elif BAY_A != "" and "机位未出提醒" in str(singlelogstext):
|
|
|
mesg="[机位未出提醒]请确认%s/%s机位情况!"%(a,b)
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
@@ -300,8 +302,8 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
if mesg not in str(singlelogsall):
|
|
|
WarningInsert(database, i[0], mesg, "任务接收监控")
|
|
|
else:
|
|
|
- mesg = "请确认%s/%s/%s/%s人员任务接收情况!" % (a, b, c, l)
|
|
|
- if mesg in str(singlelogsall):
|
|
|
+ mesg = "请确认%s/%s/%s/%s人员任务接收情况!" % (a, b, c, l.replace("√",""))
|
|
|
+ if mesg in str(singlelogstext):
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
|
|
|
@@ -324,8 +326,8 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
if mesg not in str(singlelogsall):
|
|
|
WarningInsert(database, i[0], mesg, "任务接收监控")
|
|
|
else:
|
|
|
- mesg = "请确认%s/%s/%s/%s人员二送任务接收情况!" % (a, b, c, l)
|
|
|
- if mesg in str(singlelogsall):
|
|
|
+ mesg = "请确认%s/%s/%s/%s人员二送任务接收情况!" % (a, b, c, l.replace("√",""))
|
|
|
+ if mesg in str(singlelogstext):
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
|
|
|
@@ -335,7 +337,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
WarningInsert(database, i[0], mesg, "任务安排监控")
|
|
|
elif wxry != "":
|
|
|
mesg = "请及时安排%s/%s/%s保障人员并派工!" % (a, b, c)
|
|
|
- if mesg in str(singlelogsall):
|
|
|
+ if mesg in str(singlelogstext):
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
|
if fxry == "" and pgtime < now:
|
|
@@ -344,7 +346,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
WarningInsert(database, i[0], mesg, "任务安排监控")
|
|
|
elif fxry != "":
|
|
|
mesg = "请及时安排%s/%s/%s放行人员并派工!" % (a, b, c)
|
|
|
- if mesg in str(singlelogsall):
|
|
|
+ if mesg in str(singlelogstext):
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
|
|
|
@@ -354,7 +356,7 @@ def checkFlightAlert(database:flightDB, singlePeopleNotice):
|
|
|
WarningInsert(database, i[0], mesg, "任务安排监控")
|
|
|
elif ecsj != "" and b != "航前" :
|
|
|
mesg = "请及时安排%s/%s/%s二送保障人员并派工!" % (a, b, c)
|
|
|
- if mesg in str(singlelogsall):
|
|
|
+ if mesg in str(singlelogstext):
|
|
|
newdic = {"处理人": "'系统确认状态'", "处理时间": "'%s'" % now}
|
|
|
database.lazyUpdateItem('logs', newdic, "航班编号='%s' and 警告信息='%s'" % (i[0],mesg))
|
|
|
|