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
b8768f47
Commit
b8768f47
authored
Apr 02, 2024
by
wenyi.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0402需求变动
parent
731b9ea2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
1 deletions
+9
-1
app/api/business/NormListBus.php
+3
-0
app/api/business/NormReceivesBus.php
+3
-0
app/api/controller/NormList.php
+2
-1
app/api/controller/NormReceives.php
+1
-0
No files found.
app/api/business/NormListBus.php
View file @
b8768f47
...
@@ -34,6 +34,9 @@ class NormListBus extends BaseBus
...
@@ -34,6 +34,9 @@ class NormListBus extends BaseBus
if
(
!
empty
(
$data
[
'task_id'
]))
{
if
(
!
empty
(
$data
[
'task_id'
]))
{
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
$where
[]
=
[
'task_id'
,
'='
,
$data
[
'task_id'
]];
}
}
if
(
!
empty
(
$data
[
'norm_id'
]))
{
$where
[]
=
[
'norm_id'
,
'='
,
$data
[
'norm_id'
]];
}
if
(
!
empty
(
$data
[
'name'
]))
{
if
(
!
empty
(
$data
[
'name'
]))
{
$where
[]
=
[
'norm_list.name'
,
'like'
,
"%
{
$data
[
'name'
]
}
%"
];
$where
[]
=
[
'norm_list.name'
,
'like'
,
"%
{
$data
[
'name'
]
}
%"
];
}
}
...
...
app/api/business/NormReceivesBus.php
View file @
b8768f47
...
@@ -40,6 +40,9 @@ class NormReceivesBus extends BaseBus
...
@@ -40,6 +40,9 @@ class NormReceivesBus extends BaseBus
if
(
!
empty
(
$data
[
'user_id'
]))
{
if
(
!
empty
(
$data
[
'user_id'
]))
{
$where
[]
=
[
'user_id'
,
'='
,
$data
[
'user_id'
]];
$where
[]
=
[
'user_id'
,
'='
,
$data
[
'user_id'
]];
}
}
if
(
!
empty
(
$data
[
'norm_id'
]))
{
$where
[]
=
[
'norm_id'
,
'='
,
$data
[
'norm_id'
]];
}
if
(
!
empty
(
$data
[
'status'
])
||
$data
[
'status'
]
==
0
)
{
if
(
!
empty
(
$data
[
'status'
])
||
$data
[
'status'
]
==
0
)
{
$where
[]
=
[
'status'
,
'in'
,
"
{
$data
[
'status'
]
}
"
];
$where
[]
=
[
'status'
,
'in'
,
"
{
$data
[
'status'
]
}
"
];
}
}
...
...
app/api/controller/NormList.php
View file @
b8768f47
...
@@ -8,7 +8,7 @@ namespace app\api\controller;
...
@@ -8,7 +8,7 @@ namespace app\api\controller;
use
app\common\business\CommonBus
as
CommonBus
;
use
app\common\business\CommonBus
as
CommonBus
;
use
app\common\model\redis\RedisModel
;
use
app\common\model\redis\RedisModel
;
class
NormList
extends
AuthBase
class
NormList
extends
AuthBase
{
{
/**
/**
* 当前可领取的指标列表
* 当前可领取的指标列表
...
@@ -23,6 +23,7 @@ class NormList extends AuthBase
...
@@ -23,6 +23,7 @@ class NormList extends AuthBase
$data
[
'page'
]
=
input
(
"param.page"
,
0
,
"intval"
);
$data
[
'page'
]
=
input
(
"param.page"
,
0
,
"intval"
);
$data
[
'limit'
]
=
input
(
"param.limit"
,
0
,
"intval"
);
$data
[
'limit'
]
=
input
(
"param.limit"
,
0
,
"intval"
);
$data
[
'name'
]
=
input
(
"param.name"
);
$data
[
'name'
]
=
input
(
"param.name"
);
$data
[
'norm_id'
]
=
input
(
"param.norm_id"
);
$data
[
'num'
]
=
1
;
$data
[
'num'
]
=
1
;
// 分页数据
// 分页数据
$NormReceivesBus
=
new
\app\api\business\CommonBus
(
'NormReceivesBus'
);
// 通过公共业务初始化用户待领取指标类
$NormReceivesBus
=
new
\app\api\business\CommonBus
(
'NormReceivesBus'
);
// 通过公共业务初始化用户待领取指标类
...
...
app/api/controller/NormReceives.php
View file @
b8768f47
...
@@ -26,6 +26,7 @@ class NormReceives extends AuthBase
...
@@ -26,6 +26,7 @@ class NormReceives extends AuthBase
$data
[
'task_id'
]
=
input
(
"param.task_id"
);
$data
[
'task_id'
]
=
input
(
"param.task_id"
);
$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
[
'norm_id'
]
=
input
(
"param.norm_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
;
...
...
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