...
|
...
|
@@ -29,7 +29,6 @@ def GetConnect(): |
|
|
def get_employees_name_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = ''' select employee_name from employees e where e.company_id = 366 order by id desc'''
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -46,7 +45,6 @@ def get_employees_name_from_database(): |
|
|
def get_uid_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = ''' select uid from employees e where e.company_id = 366 order by id desc'''
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -62,7 +60,6 @@ def get_uid_from_database(): |
|
|
def get_employee_account_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select employee_account from employees where company_id = 366 order by id desc '''
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -79,7 +76,6 @@ def get_employee_account_from_database(): |
|
|
def get_task_status_1_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 1 and id = {} '''.format(get_loot_task_id())
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -96,7 +92,6 @@ def get_task_status_1_from_database(): |
|
|
def get_task_status_2_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 2 and id = {} '''.format(get_loot_task_id())
|
|
|
print(sql)
|
|
|
try:
|
...
|
...
|
@@ -112,7 +107,6 @@ def get_task_status_2_from_database(): |
|
|
def get_task_status_3_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks where company_id = 366 and task_type = 1 and task_status = 3 and id = {} '''.format(get_loot_task_id())
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -128,7 +122,6 @@ def get_task_status_3_from_database(): |
|
|
def get_task_status_7_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks where company_id = 366 and task_status = 7 and id = {}'''.format(get_loot_task_id())
|
|
|
print(sql)
|
|
|
try:
|
...
|
...
|
@@ -145,7 +138,6 @@ def get_task_status_7_from_database(): |
|
|
def get_task_status_4_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 4 and t.receiver_uid = '3248817613892608' and id = {}'''.format(get_loot_task_id())
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -162,7 +154,6 @@ def get_task_status_4_from_database(): |
|
|
def get_task_status_5_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 5 and id = {}'''.format(get_loot_task_id())
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
@@ -179,7 +170,6 @@ def get_task_status_5_from_database(): |
|
|
def get_task_status_6_from_database():
|
|
|
db = GetConnect()
|
|
|
cursor = db.cursor()
|
|
|
# sql= "select id from " + '''"''' + tbl + '''"'''+ ' ' + 'order by id desc '
|
|
|
sql = '''select task_status from tasks t where t.company_id = 366 and t.task_status = 6 and id = {}'''.format(get_loot_task_id())
|
|
|
# print(sql)
|
|
|
try:
|
...
|
...
|
|