|
@@ -21,7 +21,7 @@ class InformationController extends RestBaseController |
|
@@ -21,7 +21,7 @@ class InformationController extends RestBaseController |
21
|
{
|
21
|
{
|
22
|
|
22
|
|
23
|
/**
|
23
|
/**
|
24
|
- * @title 甲方领导消息审批列表
|
24
|
+ * @title 甲方领导消息审批列表(月检,培训演习)
|
25
|
* @description 接口说明
|
25
|
* @description 接口说明
|
26
|
* @author 开发者
|
26
|
* @author 开发者
|
27
|
* @url /api/home/information/informationAList
|
27
|
* @url /api/home/information/informationAList
|
|
@@ -29,11 +29,11 @@ class InformationController extends RestBaseController |
|
@@ -29,11 +29,11 @@ class InformationController extends RestBaseController |
29
|
*
|
29
|
*
|
30
|
* @header name:token require:1 default: desc:header
|
30
|
* @header name:token require:1 default: desc:header
|
31
|
* @param name:page type:inter require:1 default: other desc:分页页码
|
31
|
* @param name:page type:inter require:1 default: other desc:分页页码
|
32
|
- * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
32
|
+ * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
33
|
*
|
33
|
*
|
34
|
* @return data:列表@
|
34
|
* @return data:列表@
|
35
|
* @data id:列表id project_id:项目id project_name:项目名称 ins_m_time:月检时间 user_group:项目组
|
35
|
* @data id:列表id project_id:项目id project_name:项目名称 ins_m_time:月检时间 user_group:项目组
|
36
|
- * @return type:工作类型 (1:月检,2:维修改造,3:培训演习)
|
36
|
+ * @return type:工作类型 (1:月检,2:培训演习)
|
37
|
* @return page:当前页数
|
37
|
* @return page:当前页数
|
38
|
* @return total_page:总页数
|
38
|
* @return total_page:总页数
|
39
|
*/
|
39
|
*/
|
|
@@ -58,8 +58,6 @@ class InformationController extends RestBaseController |
|
@@ -58,8 +58,6 @@ class InformationController extends RestBaseController |
58
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
58
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
59
|
$res['data'] = $common->getCheckByCompanyBId($b_company_id['id'],$page);
|
59
|
$res['data'] = $common->getCheckByCompanyBId($b_company_id['id'],$page);
|
60
|
$res['total_page'] = $common->getCheckByCompanyBPage($b_company_id['id']);
|
60
|
$res['total_page'] = $common->getCheckByCompanyBPage($b_company_id['id']);
|
61
|
- }else if($type == 2){
|
|
|
62
|
- //维修改造
|
|
|
63
|
}else{
|
61
|
}else{
|
64
|
//培训演习
|
62
|
//培训演习
|
65
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
63
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
|
@@ -136,7 +134,7 @@ class InformationController extends RestBaseController |
|
@@ -136,7 +134,7 @@ class InformationController extends RestBaseController |
136
|
*
|
134
|
*
|
137
|
* @header name:token require:1 default: desc:header
|
135
|
* @header name:token require:1 default: desc:header
|
138
|
* @param name:id type:inter require:1 default: other desc:列表id
|
136
|
* @param name:id type:inter require:1 default: other desc:列表id
|
139
|
- * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
137
|
+ * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
140
|
*/
|
138
|
*/
|
141
|
public function confirmA(){
|
139
|
public function confirmA(){
|
142
|
if($this->request->isGet()){
|
140
|
if($this->request->isGet()){
|
|
@@ -157,8 +155,6 @@ class InformationController extends RestBaseController |
|
@@ -157,8 +155,6 @@ class InformationController extends RestBaseController |
157
|
//月检
|
155
|
//月检
|
158
|
$checkModel = new CheckModel();
|
156
|
$checkModel = new CheckModel();
|
159
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update(['a_leader'=>$this->userId,'status'=>2,'l_confirm_time'=>time()]);
|
157
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update(['a_leader'=>$this->userId,'status'=>2,'l_confirm_time'=>time()]);
|
160
|
- }else if($type == 2){
|
|
|
161
|
- //维修改造
|
|
|
162
|
}else{
|
158
|
}else{
|
163
|
//培新演习
|
159
|
//培新演习
|
164
|
$trainModel = new TrainModel();
|
160
|
$trainModel = new TrainModel();
|
|
@@ -229,7 +225,7 @@ class InformationController extends RestBaseController |
|
@@ -229,7 +225,7 @@ class InformationController extends RestBaseController |
229
|
*
|
225
|
*
|
230
|
* @header name:token require:1 default: desc:header
|
226
|
* @header name:token require:1 default: desc:header
|
231
|
* @param name:id type:inter require:1 default: other desc:列表id
|
227
|
* @param name:id type:inter require:1 default: other desc:列表id
|
232
|
- * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
228
|
+ * @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
233
|
*/
|
229
|
*/
|
234
|
public function rejectA(){
|
230
|
public function rejectA(){
|
235
|
if($this->request->isGet()){
|
231
|
if($this->request->isGet()){
|
|
@@ -255,8 +251,6 @@ class InformationController extends RestBaseController |
|
@@ -255,8 +251,6 @@ class InformationController extends RestBaseController |
255
|
'reject_time'=>time()
|
251
|
'reject_time'=>time()
|
256
|
];
|
252
|
];
|
257
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update($data);
|
253
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update($data);
|
258
|
- }else if($type == 2){
|
|
|
259
|
- //维修改造
|
|
|
260
|
}else{
|
254
|
}else{
|
261
|
//培新演习
|
255
|
//培新演习
|
262
|
$trainModel = new TrainModel();
|
256
|
$trainModel = new TrainModel();
|