|
|
@@ -38,7 +38,7 @@ class ExpendController extends BaseController
|
|
|
|
|
|
$where = ['mainId' => $this->mainId];
|
|
|
$where['payTime'] = ['between', [$currentStartTime, $currentEndTime]];
|
|
|
- $where['delStaffId'] = 0; //过滤掉已删除的
|
|
|
+ $where['delStatus'] = 0; //过滤掉已删除的
|
|
|
$list = ExpendClass::getAllByCondition($where, null, '*', null);
|
|
|
$arr = [];
|
|
|
$cat = [];
|
|
|
@@ -93,7 +93,7 @@ class ExpendController extends BaseController
|
|
|
{
|
|
|
ini_set('memory_limit', '2045M');
|
|
|
set_time_limit(0);
|
|
|
- $where = ['mainId' => $this->mainId, 'bx' => 0, 'delStaffId' => 0];
|
|
|
+ $where = ['mainId' => $this->mainId, 'bx' => 0, 'delStatus' => 0];
|
|
|
$list = ExpendClass::getAllByCondition($where, null, '*', null);
|
|
|
$arr = [];
|
|
|
if (!empty($list)) {
|
|
|
@@ -207,7 +207,7 @@ class ExpendController extends BaseController
|
|
|
$where['bx'] = $bx;
|
|
|
}
|
|
|
if (true) { //过滤掉已删除的
|
|
|
- $where['delStaffId'] = 0;
|
|
|
+ $where['delStatus'] = 0;
|
|
|
}
|
|
|
$searchTime = isset($get['searchTime']) && !empty($get['searchTime']) ? $get['searchTime'] : 'thisYear';
|
|
|
$startTime = $get['startTime'] ?? '';
|
|
|
@@ -392,6 +392,7 @@ class ExpendController extends BaseController
|
|
|
}
|
|
|
$expend->delStaffId = $staffId;
|
|
|
$expend->delStaffName = $staff->name;
|
|
|
+ $expend->delStatus = 1;
|
|
|
$rs = $expend->save();
|
|
|
if ($rs) {
|
|
|
util::complete();
|