Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MyEMS
MyEMS能源管理系统
提交
5287975e
M
MyEMS能源管理系统
项目概览
MyEMS
/
MyEMS能源管理系统
通知
46
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
MyEMS能源管理系统
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5287975e
编写于
2月 06, 2024
作者:
nengyuangzhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fixed PEP8 warnings
上级
a500ff82
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
5 deletion
+5
-5
myems-api/reports/combinedequipmentbatch.py
myems-api/reports/combinedequipmentbatch.py
+2
-2
myems-api/reports/equipmentbatch.py
myems-api/reports/equipmentbatch.py
+2
-2
myems-api/reports/shopfloorbatch.py
myems-api/reports/shopfloorbatch.py
+1
-1
未找到文件。
myems-api/reports/combinedequipmentbatch.py
浏览文件 @
5287975e
...
...
@@ -146,10 +146,10 @@ class Reporting:
space_dict
[
node
.
id
]
=
node
.
name
cursor_system_db
.
execute
(
" SELECT ce.id, ce.name AS combined_equipment_name, "
"ce.uuid AS combined_equipment_uuid, s.name AS space_name, "
"
ce.uuid AS combined_equipment_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, ce.description "
" FROM tbl_spaces s, tbl_spaces_combined_equipments sce, "
" tbl_combined_equipments ce, tbl_cost_centers cc "
"
tbl_combined_equipments ce, tbl_cost_centers cc "
" WHERE s.id IN ( "
+
', '
.
join
(
map
(
str
,
space_dict
.
keys
()))
+
") "
" AND sce.space_id = s.id AND sce.combined_equipment_id = ce.id "
" AND ce.cost_center_id = cc.id "
,
)
...
...
myems-api/reports/equipmentbatch.py
浏览文件 @
5287975e
...
...
@@ -147,10 +147,10 @@ class Reporting:
space_dict
[
node
.
id
]
=
node
.
name
cursor_system_db
.
execute
(
" SELECT e.id, e.name AS equipment_name, "
"e.uuid AS equipment_uuid, s.name AS space_name, "
"
e.uuid AS equipment_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, e.description "
" FROM tbl_spaces s, tbl_spaces_equipments se, "
" tbl_equipments e, tbl_cost_centers cc "
"
tbl_equipments e, tbl_cost_centers cc "
" WHERE s.id IN ( "
+
', '
.
join
(
map
(
str
,
space_dict
.
keys
()))
+
") "
" AND se.space_id = s.id AND se.equipment_id = e.id "
" AND e.cost_center_id = cc.id "
,
)
...
...
myems-api/reports/shopfloorbatch.py
浏览文件 @
5287975e
...
...
@@ -147,7 +147,7 @@ class Reporting:
space_dict
[
node
.
id
]
=
node
.
name
cursor_system_db
.
execute
(
" SELECT shopfloor.id, shopfloor.name AS shopfloor_name, "
"shopfloor.uuid AS shopfloor_uuid, s.name AS space_name, "
"
shopfloor.uuid AS shopfloor_uuid, s.name AS space_name, "
" cc.name AS cost_center_name, shopfloor.description "
" FROM tbl_spaces s, tbl_spaces_shopfloors ss,"
" tbl_shopfloors shopfloor, tbl_cost_centers cc "
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录