Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-collect-api
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyi.chen
data-collect-api
Commits
731b9ea2
Commit
731b9ea2
authored
Apr 02, 2024
by
wenyi.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0402需求变动
parent
49dff0f9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
app/api/controller/Norm.php
+9
-9
app/api/controller/NormReceives.php
+0
-1
No files found.
app/api/controller/Norm.php
View file @
731b9ea2
...
@@ -39,15 +39,15 @@ class Norm
...
@@ -39,15 +39,15 @@ class Norm
$normExtendBus
=
new
CommonBus
(
'NormExtendBus'
);
$normExtendBus
=
new
CommonBus
(
'NormExtendBus'
);
$res
=
$normExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'id'
]]);
$res
=
$normExtendBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'id'
]]);
$result
[
$index
][
'custom'
]
=
$res
;
$result
[
$index
][
'custom'
]
=
$res
;
// 领取进度
//
// 领取进度
$NormListBus
=
new
CommonBus
(
'NormListBus'
);
// 通过公共业务初始化指标类
//
$NormListBus = new CommonBus('NormListBus'); // 通过公共业务初始化指标类
$totalDegree
=
$NormListBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'id'
]]);
//
$totalDegree = $NormListBus->getConditionalQueryAll(['norm_id'=>$value['id']]);
$NormReceivesBus
=
new
CommonBus
(
'NormReceivesBus'
);
// 通过公共业务初始化指标类
//
$NormReceivesBus = new CommonBus('NormReceivesBus'); // 通过公共业务初始化指标类
$receivedTimes
=
$NormReceivesBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'id'
]]);
//
$receivedTimes = $NormReceivesBus->getConditionalQueryAll(['norm_id'=>$value['id']]);
$result
[
'data'
][
$index
][
'receivedQuantity'
]
=
count
(
$receivedTimes
)
.
'/'
.
count
(
$totalDegree
)
*
$normRes
[
'num'
];
// $result['data'
]['receivedQuantity']=count($receivedTimes).'/'.count($totalDegree)*$normRes['num'];
$NormCollectsBus
=
new
CommonBus
(
'NormCollectsBus'
);
// 通过公共业务初始化指标类
//
$NormCollectsBus = new CommonBus('NormCollectsBus'); // 通过公共业务初始化指标类
$collectsTimes
=
$NormCollectsBus
->
getConditionalQueryAll
([
'norm_id'
=>
$value
[
'id'
]]);
//
$collectsTimes = $NormCollectsBus->getConditionalQueryAll(['norm_id'=>$value['id']]);
$result
[
'data'
][
$index
][
'collectsQuantity'
]
=
count
(
$collectsTimes
)
.
'/'
.
count
(
$totalDegree
)
*
$normRes
[
'num'
];
// $result['data'
]['collectsQuantity']=count($collectsTimes).'/'.count($totalDegree)*$normRes['num'];
}
}
}
else
{
}
else
{
//查询全部数据
//查询全部数据
...
...
app/api/controller/NormReceives.php
View file @
731b9ea2
...
@@ -27,7 +27,6 @@ class NormReceives extends AuthBase
...
@@ -27,7 +27,6 @@ class NormReceives extends AuthBase
$data
[
'status'
]
=
input
(
"param.status"
);
$data
[
'status'
]
=
input
(
"param.status"
);
$data
[
'user_id'
]
=
input
(
"param.user_id"
);
$data
[
'user_id'
]
=
input
(
"param.user_id"
);
$data
[
'order'
]
=
input
(
"param.order"
)
?
input
(
"param.order"
)
:
'desc'
;
$data
[
'order'
]
=
input
(
"param.order"
)
?
input
(
"param.order"
)
:
'desc'
;
// $data['user_id'] = $this->userId;
// $data['user_id'] = $this->userId;
$data
[
'admin'
]
=
input
(
"param.admin"
)
?
input
(
"param.admin"
)
:
0
;
$data
[
'admin'
]
=
input
(
"param.admin"
)
?
input
(
"param.admin"
)
:
0
;
if
(
$data
[
'admin'
]
==
0
){
if
(
$data
[
'admin'
]
==
0
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment