切换导航条
此项目
正在载入...
登录
周海龙
/
mail-serve
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
差异文件
浏览文件
作者
邓超
9 months ago
提交
f6c69c1dc4608fab7dd332dcaabe5135487d2ac9
2 个父辈
5239a4d7
207d2da8
Merge remote-tracking branch 'origin/master'
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
20 行增加
和
5 行删除
controller/Job.php
model/sendJobStatusSql.php
controller/Job.php
查看文件 @
f6c69c1
...
...
@@ -112,20 +112,24 @@ class Job extends Base {
$page
=
app
()
->
request
(
'page'
,
1
,
'intval'
);
$limit
=
app
()
->
request
(
'limit'
,
20
,
'intval'
);
$jobId
=
app
()
->
request
(
'id'
,
0
,
'intval'
);
$status
=
app
()
->
request
(
'status'
);
if
(
!
$jobId
)
{
app
()
->
e
(
'send_job_id_null_error'
);
}
$where
=
dbWhere
([
$whereArray
=
[
'job_id'
=>
$jobId
]);
];
if
(
$status
||
$status
===
0
)
{
$whereArray
[
'status'
]
=
$status
;
}
$where
=
dbWhere
(
$whereArray
);
$lists
=
db
()
->
all
(
sendJobStatusSql
::
detail
(
$where
,
$page
,
$limit
));
return
listsPage
(
$lists
,
db
()
->
count
(
sendJobStatusSql
::
count
(
$jobId
))
,
1
,
20
);
db
()
->
count
(
sendJobStatusSql
::
detailCount
(
$where
))
,
$page
,
$limit
);
}
...
...
model/sendJobStatusSql.php
查看文件 @
f6c69c1
...
...
@@ -56,4 +56,15 @@ class sendJobStatusSql {
}
/**
* 详情页统计
* @param string $where
* @return string
* @author:dc
* @time 2023/4/11 16:13
*/
public
static
function
detailCount
(
string
$where
)
:
string
{
return
"select count(`id`) from `"
.
static
::
$table
.
"` where "
.
$where
;
}
}
...
...
请
注册
或
登录
后发表评论