This commit is contained in:
wangjinlei
2021-07-15 10:22:44 +08:00
parent 234745046d
commit 8ea54fdcc2
7 changed files with 12 additions and 176 deletions

View File

@@ -167,9 +167,6 @@ class Staff extends Controller {
*/
public function getStaffArticles(){
$data = $this->request->post();
// $data['staff_id'] = 8;
// $data['date'] = '202104';
// $staff_info = $this->staff_obj->where('staff_id',$data['staff_id'])->find();
$journals = $this->journal_obj->where('staff_id',$data['staff_id'])->select();
if ($data['date'] != date('Ym')) {
$c_time = strtotime("-1 month", strtotime($data['date'] . '26 00:00:00'));
@@ -392,8 +389,6 @@ class Staff extends Controller {
//获取实时期刊提成情况
if (date('d') > 25) {
// $ch_time = strtotime(date('Y-m').'-26 00:00:00');
// $where['ctime'] = array('>',$ch_time);
//返回log数据
$log_res = $this->staff_log_obj->where('staff_id', $staff_info['staff_id'])->where('date', date('Ym'))->where('state', 0)->find();
if ($log_res) {