|
|
@@ -57,6 +57,7 @@ db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cm
|
|
|
# 正式機 DB
|
|
|
# db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
|
|
|
|
|
|
+'''
|
|
|
print ('發送執行項目通知(無預定完成日期) start...')
|
|
|
|
|
|
# 所有合約(無預定完成日期) (CRM)
|
|
|
@@ -153,7 +154,7 @@ for email in crm_list:
|
|
|
hhh_send_mail(email, html)
|
|
|
|
|
|
print ('發送執行項目通知(無預定完成日期) end...')
|
|
|
-
|
|
|
+'''
|
|
|
|
|
|
print ('\n發送執行項目通知(無預定完成日期) (執行單位) start...')
|
|
|
|
|
|
@@ -169,6 +170,8 @@ print ('\n發送執行項目通知(無預定完成日期) (執行單位) start..
|
|
|
execute_man_list = ['hhh_edit@hhh.com.tw','hhh_mk@hhh.com.tw','hhh_web@hhh.com.tw','hhh_video@hhh.com.tw','agent@hhh.com.tw','hhh_admin@hhh.com.tw','hhh_sales@hhh.com.tw']
|
|
|
|
|
|
for execute_man in execute_man_list:
|
|
|
+ print ("execute_man: " + execute_man)
|
|
|
+
|
|
|
# 所有合約(無預定完成日期) (CRM)
|
|
|
q4 = "SELECT DISTINCT(ef.exf_id) \
|
|
|
FROM execute_detail ed \
|
|
|
@@ -195,7 +198,13 @@ for execute_man in execute_man_list:
|
|
|
<body>
|
|
|
"""
|
|
|
|
|
|
+ q4_result_count = len(list(db.query(q4)))
|
|
|
q5_result_count = len(list(db.query(q5)))
|
|
|
+
|
|
|
+ print ("q4_result_count: " + q4_result_count)
|
|
|
+ print ("q5_result_count: " + q5_result_count)
|
|
|
+
|
|
|
+ exit()
|
|
|
|
|
|
if q5_result_count > 0: # 有無預定完成日期執行項目
|
|
|
# html += "<div style='color:blue;'><b>逾期執行項目: 共" + str(q2_result_count) + "筆</b><br><br></div>"
|