This commit is contained in:
512song committed 2023-10-15 14:18:29 +08:00
1 parent 0ed1b60a16
commit 0da5d5e2cd
2 files changed
+251 -96

No files matched your search

+57 -96
View File
@@ -1507,27 +1507,12 @@
},
{
"cell_type": "code",
"execution_count": 158,
"execution_count": null,
"id": "25283932-c03a-4a34-a59d-314fc64d8fbd",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-13T10:46:27.564722Z",
"iopub.status.busy": "2023-10-13T10:46:27.564257Z",
"iopub.status.idle": "2023-10-13T10:46:28.420646Z",
"shell.execute_reply": "2023-10-13T10:46:28.420116Z",
"shell.execute_reply.started": "2023-10-13T10:46:27.564686Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"ok\n"
]
}
],
"outputs": [],
"source": [
"import openpyxl\n",
"import json\n",
@@ -1602,28 +1587,12 @@
},
{
"cell_type": "code",
"execution_count": 160,
"execution_count": null,
"id": "e26b88fc-c75b-4c1e-82ea-5017370afa9b",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-13T10:46:43.012204Z",
"iopub.status.busy": "2023-10-13T10:46:43.011994Z",
"iopub.status.idle": "2023-10-13T10:46:43.424110Z",
"shell.execute_reply": "2023-10-13T10:46:43.423577Z",
"shell.execute_reply.started": "2023-10-13T10:46:43.012190Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"5395\n",
"5395\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import time\n",
@@ -1682,16 +1651,9 @@
},
{
"cell_type": "code",
"execution_count": 161,
"execution_count": null,
"id": "0a6ea33d-c112-4ed8-9366-3376e55a5731",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-13T10:46:56.465928Z",
"iopub.status.busy": "2023-10-13T10:46:56.465473Z",
"iopub.status.idle": "2023-10-13T10:46:58.050547Z",
"shell.execute_reply": "2023-10-13T10:46:58.050043Z",
"shell.execute_reply.started": "2023-10-13T10:46:56.465892Z"
},
"tags": []
},
"outputs": [],
@@ -1746,16 +1708,9 @@
},
{
"cell_type": "code",
"execution_count": 162,
"execution_count": null,
"id": "589a5d44-605d-41a1-a981-7ec7258305ed",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-13T10:47:08.088774Z",
"iopub.status.busy": "2023-10-13T10:47:08.088563Z",
"iopub.status.idle": "2023-10-13T10:47:08.185316Z",
"shell.execute_reply": "2023-10-13T10:47:08.184845Z",
"shell.execute_reply.started": "2023-10-13T10:47:08.088760Z"
},
"tags": []
},
"outputs": [],
@@ -1811,16 +1766,9 @@
},
{
"cell_type": "code",
"execution_count": 111,
"execution_count": null,
"id": "2f7c9847-f283-4a09-b385-2c7559be7c7e",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-08T07:33:01.133632Z",
"iopub.status.busy": "2023-10-08T07:33:01.133414Z",
"iopub.status.idle": "2023-10-08T07:33:01.179672Z",
"shell.execute_reply": "2023-10-08T07:33:01.179189Z",
"shell.execute_reply.started": "2023-10-08T07:33:01.133617Z"
},
"tags": []
},
"outputs": [],
@@ -1866,46 +1814,12 @@
},
{
"cell_type": "code",
"execution_count": 163,
"execution_count": null,
"id": "e47c361d-a047-4932-b24e-fdcf65cb8a73",
"metadata": {
"execution": {
"iopub.execute_input": "2023-10-13T10:47:27.530948Z",
"iopub.status.busy": "2023-10-13T10:47:27.530491Z",
"iopub.status.idle": "2023-10-13T10:47:27.735957Z",
"shell.execute_reply": "2023-10-13T10:47:27.735471Z",
"shell.execute_reply.started": "2023-10-13T10:47:27.530913Z"
},
"tags": []
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"党委党校(培训中心)未测试人员名单(截至20231013)生产成功!\n",
"研究院未测试人员名单(截至20231013)生产成功!\n",
"原油储运部未测试人员名单(截至20231013)生产成功!\n",
"烯烃部未测试人员名单(截至20231013)生产成功!\n",
"化验计量部未测试人员名单(截至20231013)生产成功!\n",
"水务部未测试人员名单(截至20231013)生产成功!\n",
"消防支队未测试人员名单(截至20231013)生产成功!\n",
"公司机关未测试人员名单(截至20231013)生产成功!\n",
"装备研究院未测试人员名单(截至20231013)生产成功!\n",
"聚醚部未测试人员名单(截至20231013)生产成功!\n",
"电仪部未测试人员名单(截至20231013)生产成功!\n",
"运输销售部未测试人员名单(截至20231013)生产成功!\n",
"行政事务中心未测试人员名单(截至20231013)生产成功!\n",
"南港乙烯项目管理部未测试人员名单(截至20231013)生产成功!\n",
"热电部未测试人员名单(截至20231013)生产成功!\n",
"化工部未测试人员名单(截至20231013)生产成功!\n",
"南港烯烃部未测试人员名单(截至20231013)生产成功!\n",
"信息档案管理中心未测试人员名单(截至20231013)生产成功!\n",
"物资采购中心未测试人员名单(截至20231013)生产成功!\n",
"炼油部未测试人员名单(截至20231013)生产成功!\n"
]
}
],
"outputs": [],
"source": [
"import json\n",
"import openpyxl\n",
@@ -1944,10 +1858,57 @@
" "
]
},
{
"cell_type": "markdown",
"id": "6246f8b0-d9fc-4c9a-8ffa-07bd8dcdc3ed",
"metadata": {},
"source": [
"## 统计未体测人员明细表"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "756df8f2-70ab-4f7f-9cc7-66c57fd47548",
"id": "b7f62515-c45d-4d10-8e94-b5f9a9a98e3f",
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"import json\n",
"import openpyxl\n",
"\n",
"filename = 'data/result_天津2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict1 = json.load(fl)\n",
"\n",
"filename = 'data/天津石化人员名单2023.json'\n",
"with open(filename,'r') as fl:\n",
" dict2 = json.load(fl)\n",
"\n",
"list1 = []\n",
"\n",
"i = 1\n",
"for k, v in dict2.items():\n",
" \n",
" if k not in dict1.keys():\n",
" list2 = [i,k,v['name'],unit,v['sub_unit']]\n",
" i+=1\n",
" list1.append(list2)\n",
"filename = f'data/天津石化未测试人员名单.xlsx'\n",
"title = ['序号','员工编号','姓名','部门','车间(科室)']\n",
"wb = openpyxl.Workbook()\n",
"sheet = wb.active\n",
"sheet.append(title)\n",
"for row in list1:\n",
" sheet.append(row) \n",
"wb.save(filename)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "0f3c5384-04b0-432a-8800-c7af57ee1131",
"metadata": {},
"outputs": [],
"source": []