摘要:
where条件查询,时间范围查询 $condition = [ ['type', 'IN', '1,2,3'], ['allocate_id', '=', 0], ['member_id', '=', 0], ['card_code', '>=', $start_code], ['card_code 阅读全文
摘要:
如统计已激活设备数量和未激活设备数量 $condition = [ ['member_id', '=', $member_id] ]; $field = [ 'COUNT(IF(active_member_id > 0, 1, null)) as actived_num', 'COUNT(IF(ac 阅读全文