|
|
@@ -146,18 +146,14 @@ class IssueWorkLogic extends BaseLogic
|
|
|
if($issue->isEmpty()){
|
|
|
throw new Exception('投诉不存在');
|
|
|
}
|
|
|
- if($issue['responsible'] != 3){
|
|
|
- throw new Exception('定责不可操作');
|
|
|
+ if($issue['issue_approval'] == 3){
|
|
|
+ throw new Exception('不可操作');
|
|
|
}
|
|
|
$issue->issue_approval = 4;
|
|
|
$issue->complaint_status = 2;
|
|
|
+ $issue->responsible = 3;
|
|
|
$issue->finished_time = time();
|
|
|
$issue->save();
|
|
|
-
|
|
|
- $return = ReturnWork::where('service_work_id',$issue->service_work_id)->findOrEmpty();
|
|
|
- if(!$return->isEmpty()){
|
|
|
- $return->return_status = 4;
|
|
|
- }
|
|
|
return [];
|
|
|
} catch (\Exception $e) {
|
|
|
self::setError($e->getMessage());
|