|
@@ -102,6 +102,8 @@ db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cm
|
|
|
|
|
|
@app.get("/is_close_changed_notice")
|
|
|
async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
|
|
|
+ subject = '[合約狀態修改]:' + r['company'] + ' (合約編號:' + r['num'] + ')_' + datetime.now().strftime("%Y-%m-%d %H:%M")
|
|
|
+
|
|
|
# 取得合約資料
|
|
|
q = "SELECT * \
|
|
|
FROM execute_form \
|
|
@@ -120,17 +122,15 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
|
|
|
</head>
|
|
|
<body>
|
|
|
"""
|
|
|
-
|
|
|
- html += "<div>" + exf_id + "." + r['num'] + ", " + is_close + "</div>";
|
|
|
-
|
|
|
+
|
|
|
if is_close == 'D':
|
|
|
- html += "D: 續約"
|
|
|
+ html += '<div>本合約狀態已修改為 <span style="color:red;">續約</span></div>';
|
|
|
elif is_close == 'E':
|
|
|
- html += "E: 不續約延期"
|
|
|
+ html += '<div>本合約狀態已修改為 <span style="color:red;">不續約延期</span></div>';
|
|
|
elif is_close == 'F':
|
|
|
- html += "F: 不續約需下線"
|
|
|
+ html += '<div>本合約狀態已修改為 <span style="color:red;">不續約需下線</span></div>';
|
|
|
elif is_close == 'G':
|
|
|
- html += "G: 已到期未續約"
|
|
|
+ html += '<div>本合約狀態已修改為 <span style="color:red;">已到期未續約</span></div>';
|
|
|
|
|
|
html += """
|
|
|
</body>
|