|
@@ -207,18 +207,9 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
|
|
|
# 發送通知給負責業務、Kevin、Sam
|
|
|
email_list = ['sam@hhh.com.tw','kevin.h@hhh.com.tw']
|
|
|
|
|
|
- # 取得執行單位Email清單
|
|
|
- q1 = "SELECT DISTINCT(execute_man) \
|
|
|
- FROM execute_detail \
|
|
|
- WHERE exf_id=" + exf_id
|
|
|
-
|
|
|
- q1_result_count = len(list(db.query(q1)))
|
|
|
-
|
|
|
- if q1_result_count > 0: # 有執行單位Email清單
|
|
|
- for r1 in db.query(q1):
|
|
|
- if r1['execute_man']:
|
|
|
- print('執行單位: ' + r1['execute_man'])
|
|
|
- email_list.append(r1['execute_man'])
|
|
|
+ # 負責業務
|
|
|
+ print('負責業務: ' + r['sales_man'])
|
|
|
+ email_list.append(r['sales_man'])
|
|
|
else:
|
|
|
print ('修改後狀態: ' + is_close + ',不需通知')
|
|
|
return
|