|
@@ -49,7 +49,7 @@ class FinancialSeal extends Base{
|
|
|
$row = $this->model->findOrEmpty($params['id']);
|
|
|
if($row->isEmpty()) return error('数据不存在');
|
|
|
$getLastMonth= date("Y-m",strtotime("-1 month"));
|
|
|
- if($row['fz_date']!=$getLastMonth && $params['status']==0) return error('非上月数据不可解封');
|
|
|
+ if($row['fz_date']!=$getLastMonth && $params['status']==0) return error('非上月数据不可解封');
|
|
|
if($params['status']==1){
|
|
|
$montah = date('Y-m',strtotime('-1 month',strtotime($row['fz_date'])));
|
|
|
$lasMonth= $this->model->where('fz_date',$montah)->where('company_code',$row->company_code)->findOrEmpty();
|